TR_m4_TT_Uls_Edralo_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
lastDay
Source
1Begin TR_m4_TT_Uls_Edralo_sc
2
3; Script on NPC TR_m4_Uls Edralo for Bal Foyen Temple.
4
5short TR_Map
6short control
7short controlQ
8short NoLore
9short T_Local_NPC
10short lastDay
11
12if ( control >= 0 )
13 if ( player->GetPos Y > 5152 ) ; player in the kitchen
14 set control to -1
15 endif
16 if ( controlQ == 1 ) ; gave food to player
17 if ( lastDay < DaysPassed )
18 set controlQ to 0
19 endif
20 endif
21elseif ( control < 0 )
22 if ( player->GetPos Y < 5152 ) ; player not in the kitchen
23 set control to 1
24 endif
25endif
26
27if ( TR_Map != 4 )
28 set TR_Map to 4
29endif
30
31End