SCTX |
ScriptName SE32Fanatic6Script
Short SwingWeapon ; Flag to tell the idle manager which idle to play
Short KillHloval ; Set to 1 if attempts to kill Hloval
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 SE32Travel6
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.Defender2Dead to 1 ; Fanatic has swung
EndIf
End
Begin OnPackageChange SE32TravelHloval01
If SE32.InBailey == 1
SayTo SE32HlovalDrethRef SE32FanaticYell
Set SwingWeapon to 1
PickIdle
SE32HlovalDrethRef.Kill
Set KillHloval to 1
EndIf
End
Begin OnPackageChange SE32TravelExit
If SE32.InBailey == 1
Set SE32.Fanatic6Dead to 1 ; Fanatic has exited room, or died
MoveTo SE32Fanatic6Away
Set KillHloval to 0
EndIf
End
|