Scripts

TR_m3_Hal_SkelArise_sc

TR_Mainland.esm
Variables 2
Local Variables
Controlvar
dead
Source
1begin TR_m3_Hal_SkelArise_sc 2 3short Controlvar 4 5short dead 6 7; disable after Haliwaran is occupied by Indorils 8 9if ( TR_m3_Hal_TowerState == 2 ) 10 if ( GetDisabled == 0 ) 11 disable 12 return 13 else 14 return 15 endif 16elseif ( GetDisabled ) 17 enable 18endif 19 20if ( dead == 1 ) 21 return 22endif 23 24; die together with the necromancer 25if ( "TR_m3_Hal_TowerState" > 0 ) 26 sethealth 0 27endif 28 29if ( OnDeath == 1 ) 30 set dead to 1 31endif 32 33if ( Controlvar == 0 ) 34 set Controlvar to 1 35 ModCurrentFatigue -4000 36 Fall 37elseif ( Controlvar == 1 ) 38 ; SkipAnim 39 if ( GetDistance player < 225 ) 40 set Controlvar to 2 41 elseif ( GetTarget player ) 42 set Controlvar to 2 43 elseif ( GetFatigue > -100 ) 44 ModCurrentFatigue -4000 45 endif 46elseif ( Controlvar == 2 ) 47 ModCurrentFatigue 4000 48 set Controlvar to 5 49 ; PlayGroup Idle 50 PlaySound3D "BoneLord Scream" 51 SetFight 100 52 StartCombat player 53endif 54 55end