TR_m7_NPC_GolerRalvayn
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
TR_m3_AT_TG_Q6_Booze
Source
1Begin TR_m7_NPC_GolerRalvayn
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9; see TR_m7_NPC_HO_CouncilClub script
10short TR_m3_AT_TG_Q6_Booze
11
12if ( control == 1 )
13 return
14endif
15
16if ( OnDeath == 1 )
17 set control to 1
18 return
19endif
20
21if ( GetJournalIndex "TR_m7_HO_HouseForSale" >= 30 )
22 return
23elseif ( GetJournalIndex "TR_m7_HO_HouseForSale" >= 20 )
24
25 if ( getDisabled == 0 )
26 disable
27 return
28 elseif ( GetDistance player < 250 )
29 Journal "TR_m7_HO_HouseForSale" 30
30 return
31 endif
32
33elseif ( GetJournalIndex "TR_m7_HO_HouseForSale" >= 10 )
34 if ( GetJournalIndex "TR_m7_HO_HouseForSale_a" > 0 )
35
36 if ( getDisabled == 0 )
37 if ( GetJournalIndex "TR_m7_HO_HouseForSale_a" >= 100 )
38 disable
39 return
40 endif
41 elseif ( GetDistance player < 250 )
42 Journal "TR_m7_HO_HouseForSale" 30
43 return
44 endif
45
46 endif
47endif
48
49if ( TR_Map == 7 )
50 return
51endif
52
53set TR_Map to 7
54
55End