TR_m7_NPC_Estoril
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
timer
Source
1Begin TR_m7_NPC_Estoril
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8float timer
9
10if ( GetJournalIndex "TR_m7_HO_HouseForSale_a" >= 100 )
11 if ( CellChanged )
12 PositionCell 53 -179 -248 0 "Hlan Oek, Estoril's House"
13 endif
14 return
15endif
16
17if ( MenuMode == 1 )
18 return
19endif
20
21if ( OnDeath == 1 )
22 Journal "TR_m7_HO_HouseForSale_a" 200
23endif
24
25if ( timer >= 0 )
26 set timer to ( timer + GetSecondsPassed )
27else
28 Return
29endif
30
31if ( timer >= 7 )
32 say "vo\h\f\Fle_HF002.mp3" "Over here! Help!"
33 set timer to -1
34elseif ( timer >= 3 )
35elseif ( timer >= 2 )
36 if ( GetDistance player <= 10000 )
37 say "vo\h\f\Fle_HF001.mp3" "Someone! Help!"
38 if ( GetJournalIndex "TR_m7_HO_HouseForSale" == 0 )
39 Journal "TR_m7_HO_HouseForSale_a" 65
40 else
41 Journal "TR_m7_HO_HouseForSale_a" 60
42 endif
43 endif
44 set timer to ( timer + 1 )
45endif
46
47if ( TR_Map == 7 )
48 return
49endif
50
51set TR_Map to 7
52
53End