TR_m7_HH_Alvynu_6_Guardian_sc
TR_Mainland.esm
Variables
2
Local Variables
control
controlQ
Source
1Begin TR_m7_HH_Alvynu_6_Guardian_sc
2
3short control
4short controlQ
5
6if ( CellChanged == 1 )
7 if ( "TR_m7_HH_Alvynu_6_TombState" == 1 )
8 if ( controlQ == 0 )
9 if ( GetDisabled == 1 )
10 Enable
11 endif
12 endif
13 elseif ( GetDisabled == 0 )
14 Disable
15 endif
16endif
17
18if ( control == 1 )
19 if ( MenuMode == 0 )
20 placeatme "T_Glb_Var_SummonFX" 1 1 1
21 set control to 2
22 set controlQ to 1
23 set "TR_m7_HH_Alvynu_6_SpiritsDealt" to ( "TR_m7_HH_Alvynu_6_SpiritsDealt" + 1 )
24 endif
25endif
26
27if ( controlQ == 1 )
28 if ( GetDisabled == 0 )
29 Disable
30 endif
31endif
32
33If ( OnDeath )
34 set "TR_m7_HH_Alvynu_6_SpiritsDealt" to ( "TR_m7_HH_Alvynu_6_SpiritsDealt" + 1 )
35endif
36
37End