TR_m4_Cr_NirnboundSavior_scp
TR_Mainland.esm
Variables
4
Local Variables
doOnce
disableOnce
timerOn
timer
Source
1begin TR_m4_Cr_NirnboundSavior_scp
2
3short doOnce
4short disableOnce
5short timerOn
6float timer
7
8if ( MenuMode )
9 return
10endif
11
12if ( GetDisabled )
13 return
14endif
15
16if ( disableOnce == 1 )
17 disable
18 return
19endif
20if ( timerOn == 0 )
21 set timerOn to -1 ; delay one frame
22 return
23endif
24
25if ( GetDistance player <= 256 )
26 if ( doOnce == 0 )
27 ForceGreeting
28 set timer to 0
29 set timerOn to 1
30 Journal "TR_m4_wil_NirnBoundSaintC" 100
31 endif
32endif
33
34if ( timer >= 120 )
35 if ( GetHealth > 1 )
36 if ( doOnce == 1 )
37 ForceGreeting
38 PlaceAtMe "T_Glb_Var_SummonFX" 1 1 1
39 endif
40 endif
41endif
42
43if ( timerOn == 1 )
44 set timer to ( timer + GetSecondsPassed )
45endif
46
47end