TR_m4_NPC_rowdy_rilmas
TR_Mainland.esm
Variables
13
Local Variables
doOnce
nolore
TR_Map
control
controlQ
controlA
thankOnce
controlEnd
T_Local_NPC
T_Local_NoLore
rilmas2var
controlD
barGreet
Source
1Begin TR_m4_NPC_rowdy_rilmas
2
3; Script on NPC "TR_m4_rowdy rilmas".
4
5short doOnce
6short nolore
7short TR_Map
8short control
9short controlQ
10short controlA ;used for the "stabbed a man" topic
11short thankOnce
12short controlEnd
13short T_Local_NPC
14short T_Local_NoLore
15short rilmas2var
16short controlD
17short barGreet
18
19if ( rilmas2var == 0 )
20 if ( GetJournalIndex "TR_m4_TG_Rilmas2" >= 150 )
21 if ( CellChanged == 1 )
22 if ( GetHealth > 0 )
23 "TR_m4_rowdy rilmas"->PositionCell -6796 11685 16500 0 "Bthuangthuv, Hall of False Keys" ; TR_m4_MARK_Rowdy_Rilmas
24 "TR_m4_rowdy rilmas"->AiWander 0 0 0 0 0 0 0
25 set rilmas2var to 1
26 endif
27 endif
28 endif
29endif
30
31
32if ( GetJournalIndex "TR_m4_TG_Shei3" == 10 )
33 if ( GetPCCell "Fort Ancylis, Prison" == 0 )
34 if ( thankOnce == 0 )
35 Say, "Vo\d\m\Flw_DM004.mp3", "Thank you..."
36 AiWander 0 20 0 0 20 30 0 0 0
37 ForceGreeting
38 set thankOnce to 1
39 endif
40 endif
41endif
42
43
44if ( doOnce == 0 )
45 if ( GetDistance, player <= 300 )
46 Say, "Vo\d\m\tHlo_DM047.mp3", "Don't come near me!"
47 set doOnce to 1
48 endif
49 if ( TR_Map == 4 )
50 return
51 endif
52 set TR_Map to 4
53endif
54
55end