Scripts

TR_m2_q_TheRiftSpawn

TR_Mainland.esm
Variables 2
Local Variables
control
controlQ
Source
1begin TR_m2_q_TheRiftSpawn 2 3; visual/sound effects for creatures spawned from the rift 4 5short control 6float controlQ 7 8if ( control == 0 ) 9 Disable 10 set control to 1 11elseif ( control == 1 ) 12 if ( ScriptRunning "TR_m2_q_TheRiftHappening" ) 13 if ( controlQ == 0 ) 14 set controlQ to ( GetPos Z ) 15 elseif ( controlQ <= "TR_m2_q_TheRiftSqLevel" ) ; global is gradually raised as ritual continues 16 set control to 2 17 endif 18 endif 19elseif ( control == 2 ) 20 Enable 21 PlaceAtMe sprigganup 1 1 1 ; visual effect 22 PlaySound "Windbag" 23 PlaySound "endboom3" 24 setpos Z 14784 25 set control to 3 26endif 27 28if ( OnDeath ) 29 disable 30 PlaceAtMe sprigganup 1 1 1 ; visual effect 31 PlaySound "Windbag" 32 PlaySound "endboom3" 33endif 34 35End