SCTX |
ScriptName SE32Fanatic7Script
Short SwingWeapon ; Flag to tell the idle manager which idle to play
Begin OnLoad
SetGhost 1 ; No combat allowed
End
Begin GameMode
If IsWeaponOut == 0
If GetDead == 0
SetAlert 1
EndIf
EndIf
End
Begin OnActivate
; prevent activation
End
Begin OnPackageChange SE32Travel7
If SE32.InBailey == 1
Say SE32FanaticYell ; shout a random combat line
PickIdle ; attack anim if SwingWeapon = 1
Set SwingWeapon to 0 ; Disallows swinging weapon idle
Set SE32.Defender3Dead to 1 ; Fanatic has swung
EndIf
End
Begin OnPackageChange SE32TravelExit
If SE32.InBailey == 1
Set SE32.Fanatic7Dead to 1 ; Fanatic has exited room, or died
MoveTo SE32Fanatic7Away
EndIf
End
|