TR_m1_TathoScript
TR_Mainland.esm
Variables
5
Local Variables
absolon
nolore
control
doonce
timer
Source
1begin TR_m1_TathoScript
2
3short absolon
4short nolore
5short control
6short doonce
7float timer
8
9if ( CellChanged == 1 )
10 if ( "TR_m1_FWMG_TathoState" == 0 )
11 Disable
12 elseif ( GetJournalIndex TR_m1_FW_MG07a == 10 )
13 set control to 1
14 endif
15endif
16
17if ( "TR_m1_FWMG_TathoState" == 1 )
18 PlaySound3D "Thunder2"
19 set "TR_m1_FWMG_TathoState" to 2
20elseif ( "TR_m1_FWMG_TathoState" == 2 )
21 if ( MenuMode == 0 )
22 set timer to ( timer + GetSecondsPassed )
23 if ( timer > 3 )
24 set "TR_m1_FWMG_TathoState" to 3
25 endif
26 endif
27elseif ( "TR_m1_FWMG_TathoState" == 3 )
28 Enable
29 PlaySound3D "conjuration hit"
30 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
31 set "TR_m1_FWMG_TathoState" to 4
32endif
33
34if ( GetDistance TR_m1_Absolon <= 8192 )
35 set absolon to 1
36endif
37
38if ( doonce == 0 )
39 if ( absolon == 1 )
40 if ( GetDistance player < 1000 )
41 ForceGreeting
42 set doonce to 1
43 endif
44 endif
45endif
46
47End