TR_m4_NPC_Algus
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
NoLore
strikeControl
heebiesControl
teleportOnce
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m4_NPC_Algus
2; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
4; appropriate to the location the NPC is.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short strikeControl
11short heebiesControl
12short teleportOnce
13short T_Local_NPC
14short T_Local_NoLore
15
16if ( OnDeath )
17 set teleportOnce to -1
18 set TR_m4_UshuKur_D_Algus.disableOnce to -1
19endif
20
21if ( teleportOnce < 0 )
22 Return
23endif
24
25if ( controlQ == 1 )
26 if ( GetAIPackageDone )
27 set controlQ to 2
28 SetHello 30
29 AiWander 0 0 10 20 10 15 0 0 0
30 endif
31endif
32
33if ( TR_m4_FG_UshuFree == 2 )
34 if ( GetDisabled == 0 )
35 disable
36 endif
37endif
38
39if ( TR_m4_FG_UshuFree >= 3 )
40 if ( GetDisabled == 1 )
41 enable
42 endif
43endif
44
45if ( TR_Map == 4 )
46 return
47endif
48
49set TR_Map to 4
50
51End