Scripts

TR_m4_Bal_Cr_VunalDevourer_sc

TR_Mainland.esm
Variables 1
Local Variables
doonce
Source
1Begin TR_m4_Bal_Cr_VunalDevourer_sc 2 3short doonce 4 5if ( TR_m4_Bal_DevourerDead ) 6 return 7endif 8 9if ( OnDeath ) 10 set TR_m4_Bal_DevourerDead to 1 11; disappearing commented out, not sure if it makes sense here 12; playsound "conjuration hit" 13; PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 14; disable 15 return 16endif 17 18; not using PlaceAtPC because StartCombat requires a reference of the devourer 19 20if ( TR_m4_Bal_DevourerSpawned == 0 ) 21 if ( GetDisabled == 0 ) 22 disable 23 endif 24 return 25elseif ( GetDisabled ) 26 enable 27endif 28 29if ( doonce == 0 ) 30 set doonce to 1 31 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 32 startcombat player 33 if ( GetDeadCount "TR_m4_V_HannatTulu" == 0 ) 34 if ( "TR_m4_V_HannatTulu"->GetDisabled == 0 ) 35 startcombat "TR_m4_V_HannatTulu" 36 "TR_m4_V_HannatTulu"->startcombat "TR_m4_Bal_VunalDevourer" 37 return 38 endif 39 endif 40endif 41 42end