TR_m4_q_mm_AtribugSC
TR_Mainland.esm
Variables
3
Local Variables
control
DayTarget
HourTarget
Source
1Begin TR_m4_q_mm_AtribugSC
2
3short control
4short DayTarget
5float HourTarget
6
7if ( OnDeath )
8 Journal TR_m4_Arv_Metamorphosis 90
9endif
10
11if ( GetJournalIndex "TR_m4_Arv_Metamorphosis" == 100 ) ;Removes the shalk after it decides to leave the city
12 if ( DayTarget > DaysPassed )
13 return
14 elseif ( DayTarget == DaysPassed )
15 if ( GameHour <= HourTarget )
16 return
17 endif
18 endif
19
20 if ( DayTarget == 0 )
21 set DayTarget to ( DaysPassed + 1 )
22 set HourTarget to ( GameHour )
23 return
24 endif
25
26 if ( CellChanged )
27 Disable
28 endif
29
30endif
31
32
33if ( GetJournalIndex TR_m4_Arv_Metamorphosis >= 50 )
34 if ( GetJournalIndex TR_m4_Arv_Metamorphosis <= 70 )
35 Disable
36 endif
37elseif ( TR_m4_q_mm_AshvuDead )
38 Disable
39endif
40
41
42End