TR_m3_MG_OE_Q5_Devourer_sc
TR_Mainland.esm
Variables
3
Local Variables
doonce
controlq
TimePassed
Source
1begin TR_m3_MG_OE_Q5_Devourer_sc
2
3short doonce
4short controlq
5float TimePassed
6
7
8if ( doonce == 0 )
9 startcombat player
10 set doonce to 1
11endif
12
13if ( OnDeath )
14 placeatme T_Glb_Var_SummonFX 1 0 0 ;For parity with the follower behavior, see the longer comment below for more information.
15 Disable
16 setdelete 1
17 if ( getjournalindex tr_m3_MG_OE_Q5 == 15 )
18 Journal tr_m3_MG_OE_Q5 20
19 set "TR_m3_ManielSylbenitte".control to 2 ;dialogue filtering
20 endif
21endif
22
23;I decided to use the same creature for the follower to avoid bloat. Below is the follower part of the script. See TR_m3_MG_OE_Q5_SummonedDaedra_SC and TR_m3_MG_OE_Q5_Reward_SC for more information.
24
25if ( TR_m3_MG_OE_Q5_DaedraSummoned == 1 )
26 set TimePassed to ( TimePassed + GetSecondsPassed )
27 if ( controlq == 0 )
28 placeatme T_Glb_Var_SummonFX 1 0 0
29 AIFollow player 0 0 0 0
30 set controlQ to 1
31 endif
32endif
33
34if ( TimePassed > 20 )
35 if ( menumode == 0 )
36 set TR_m3_MG_OE_Q5_DaedraSummoned to 0
37 playsound "Conjuration Hit"
38 AiWander 0 0 0
39 placeatme T_Glb_Var_SummonFX 1 0 0
40 Disable
41 setdelete 1
42 endif
43endif
44
45end