TR_m3_OE_SaturiusGhSc
TR_Mainland.esm
Variables
1
Local Variables
control
Source
1Begin TR_m3_OE_SaturiusGhSc
2
3; Script on TR_m3_OE_SaturiusGhost for quest TR_m3_OE_CourtWizard.
4
5short control
6; 0 = disabled before the quest
7; 1 = enabled during the duel
8; 2 = dead or duel over -> disable
9
10if ( MenuMode )
11 return
12endif
13
14if ( OnDeath )
15 set control to 2
16endif
17
18if ( GetJournalIndex "TR_m3_OE_CourtWizard" >= 90 )
19 if ( control < 2 )
20 set control to 2
21 endif
22elseif ( GetJournalIndex "TR_m3_OE_CourtWizard" == 80 )
23 if ( GetJournalIndex "TR_m3_OE_CourtWizard_S" >= 50 )
24 if ( control < 1 )
25 set control to 1
26 endif
27 endif
28endif
29
30if ( control >= 2 )
31 if ( GetDisabled == 0 )
32 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
33 disable
34 endif
35elseif ( control == 1 )
36 if ( GetDisabled )
37 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
38 enable
39 aifollow TR_m3_Saturius 0 0 0 0
40 endif
41elseif ( GetDisabled == 0 )
42 disable
43endif
44
45end