TR_m4_NPC_Vildaryn_Terano
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
NoLore
doOnce
forcegreetOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Vildaryn_Terano
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 doOnce
11short forcegreetOnce
12short T_Local_NPC
13short T_Local_NoLore
14
15if ( MenuMode )
16 return
17endif
18
19if ( OnDeath )
20 if ( GetJournalIndex "TR_m4_wil_BelBetu1" == 10 )
21 Journal "TR_m4_wil_BelBetu1" 30
22 elseif ( GetJournalIndex "TR_m4_wil_BelBetu1" == 50 )
23 Journal "TR_m4_wil_BelBetu1" 60
24 "TR_m4_Bel-Betu"->ModDisposition -25
25 endif
26endif
27
28if ( GetJournalIndex "TR_m4_wil_BelBetu1" == 50 )
29 if ( GetPCCell "Sehutu, Sanctum of Souls" )
30 if ( forcegreetOnce == 0 )
31 if ( GetDistance player <= 375 )
32 SetHealth 60
33 ForceGreeting
34 set forcegreetOnce to 1
35 endif
36 endif
37
38 if ( doOnce == 0 )
39 if ( GetDistance player <= 1256 )
40 if ( player->SayDone )
41 player->Say "Vo\tr\misc\TR_Belbetu_Hlo12.wav" "Why would I waste an ounce of energy talking to someone as boring as you?"
42 set doOnce to 1
43 endif
44 endif
45 endif
46 endif
47endif
48
49if ( TR_Map == 4 )
50 return
51endif
52
53set TR_Map to 4
54
55End