XPEbroccaBossSCRIPT
Editor ID:XPEbroccaBossSCRIPT
Form ID:0005A4A3
Type:Object
Script:scn XPEbroccaBossSCRIPT
ref mySelf
float wallTimer
short CloseGate2Once
short resurrectOnce ; prevents a second resurrection
short doResurrect ; flags gameMode to do stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin onLoad
set wallTimer to 3 ; depends upon speed of secret wall anim. must tweak if it changes
set mySelf to getSelf
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin onActivate
;if isActionRef player
if resurrectOnce == 0
if mySelf.getAv health > 0
;refuse the activation
endif
elseif resurrectOnce == 1
if mySelf.getAV health <= 0
activate
endif
endif
;endif
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin gameMode
if CloseGate2Once == 0
if XPEbroccaBossREF.getDistance XPEbroccaRadMarker < 1200
if player.getDistance XPEbroccaRadMarker < 1200
XPEbroccaBossGate02b.activate mySelf 1
set CloseGate2Once to 1
endif
endif
endif
if doResurrect == 1 && resurrectOnce != 1
set resurrectOnce to 1
XPEbroccaBossWall01.activate mySelf 1
XPEbroccaBossWall02.activate mySelf 1
XPEbroccaBossWall03.activate mySelf 1
XPEbroccaBossWall04.activate mySelf 1
XPEbroccaBossWall05.activate mySelf 1
XPEbroccaBossWall06.activate mySelf 1
XPEbroccaBossWall07.activate mySelf 1
XPEbroccaBossWall08.activate mySelf 1
XPEbroccaBossWall09.activate mySelf 1
endif
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin onDeath
if resurrectOnce == 0
set doResurrect to 1
endif
if resurrectOnce == 1
sms effectShockDamage
endif
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;