]> vgcfreebox.myrthtech.pt Git - alentejosemlei.git/blob - nwn-asl-ai/asl_npc_onnspawn
1st version paper
[alentejosemlei.git] / nwn-asl-ai / asl_npc_onnspawn
1 // ============================================================================
2 // File Name: asl_npc_on_spawn
3 // Initialize Decoupled Agent Architecture, on Object OnSpawn event.
4 // ============================================================================
5 #include "nw_i0_generic"
6
7 void main()
8 {
9 // 1. Initialize Default Bioware Combat/Perception AI
10 SetListeningPatterns();
11 SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);
12
13 // 2. Setup LLM Strategy Defaults
14 int nStrategy = GetLocalInt(OBJECT_SELF, "LLM_STRATEGY");
15
16 if (nStrategy == 0) {
17 SetLocalInt(OBJECT_SELF, "LLM_STRATEGY", 1);
18 nStrategy = 1;
19 }
20
21 // 3. Strategy Specific Overrides
22 if (nStrategy == 3) {
23 // Maestros should wander randomly to look busy while they puppet
24 WalkWayPoints();
25 }
26
27 GenerateRandomDrop();
28 }