TR_m4_NPC_AlmereScript
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
T_Local_NPC
NoLore
control
controlQ
DayTarget
HourTarget
Source
1Begin TR_m4_NPC_AlmereScript
2
3short TR_Map
4short T_Local_NPC
5short NoLore
6short control
7short controlQ
8short DayTarget
9float HourTarget
10
11if ( GetJournalIndex "TR_m4_And_Soul" < 90 )
12 if ( OnDeath == 1 )
13 Journal "TR_m4_And_Soul" 110
14 endif
15endif
16
17if ( GetJournalIndex TR_m4_And_Soul >= 90 )
18 if ( DayTarget == 0 )
19 set DayTarget to ( DaysPassed + 1 )
20 set HourTarget to GameHour
21 elseif ( DayTarget == DaysPassed )
22 if ( HourTarget < GameHour )
23 set controlQ to 1
24 endif
25 elseif ( DayTarget < DaysPassed )
26 set controlQ to 1
27 endif
28endif
29
30if ( controlQ == 1 )
31 if ( GetDisabled == 0 )
32 if ( CellChanged == 1 )
33 disable
34 endif
35 endif
36endif
37
38set TR_Map to 4
39
40End