TR_m2_q_29_RefugeeSCN
TR_Mainland.esm
Variables
8
Local Variables
NoLore
doOnce
OnPCHitMe
walkabout
TR_Map
T_Local_NPC
T_Local_NoLore
timer
Source
1begin TR_m2_q_29_RefugeeSCN
2
3;quest NPC for quest TR_m2_FG_Irano1
4
5short NoLore
6short doOnce
7short OnPCHitMe
8short walkabout
9float timer
10short TR_Map
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( TR_Map != 2 )
15 set TR_Map to 2
16endif
17
18if ( GetJournalIndex "TR_m2_FG_Irano1" >= 60 ) ;dead
19 return
20elseif ( GetJournalIndex "TR_m2_FG_Irano1" == 0 )
21 if ( GetDisabled == 0 )
22 disable
23 endif
24elseif ( GetJournalIndex "TR_m2_FG_Irano1" >= 10 )
25 if ( GetDisabled == 1 )
26 enable
27 endif
28endif
29
30setFight 0 ;she won't ever fight back
31
32if ( OnPCHitMe == 1 )
33 set OnPCHitMe to 0
34 SetFight 0
35 StopCombat
36endif
37
38if ( OnDeath == 1 )
39 if ( ScriptRunning "TR_m2_q_29_OlmuTravel" == 1 )
40 StopScript "TR_m2_q_29_OlmuTravel"
41 endif
42 if ( GetJournalIndex "TR_m2_FG_Irano1" >= 10 )
43 if ( GetJournalIndex "TR_m2_FG_Irano1" < 60 )
44 if ( GetPCCell "Necrom" == 1 )
45 Journal "TR_m2_FG_Irano1" 60
46 elseif ( GetPCCell "Necrom" != 1 )
47 Journal "TR_m2_FG_Irano1" 65
48 endif
49 endif
50 endif
51endif
52
53;this is new
54;makes Olmu walk to the door in the refuge when she is leaving for the morning prayer
55
56if ( walkabout == 0 )
57 if ( GetPCCell "Necrom, Refuge of St. Aralor" == 1 )
58 if ( GetJournalIndex "TR_m2_FG_Irano1" >= 40 )
59 if ( GameHour >= 4.00 )
60 if ( GameHour <= 7.00 )
61 AiTravel -77 -723 39 0 ;TR_m2_MARK_Olmu
62 set walkabout to 1
63 sethello 0
64 endif
65 endif
66 endif
67 endif
68else
69 set timer to ( timer + GetSecondsPassed )
70 if ( timer > 25 )
71 set walkabout to 0
72 set timer to 0
73 endif
74endif
75
76
77end