Account
News
Downloads
Community
Wiki
Walkthrough

XPEbroccaSpecialBossWallSCRIPT

Editor ID:
XPEbroccaSpecialBossWallSCRIPT


Form ID:
0005A787


Typ:
Objekt


Script:
scn XPEbroccaSpecialBossWallSCRIPT

short init
short busy
short open
short next

short RezFlag ;Special flag for hack job
short BaseHP
short BaseMP
short BaseFP

float timer

ref mySelf
ref myParent

begin onActivate

set mySelf to getSelf
set myParent to getParentRef

if isActionRef player == 0 && isActionRef myself == 0 && busy == 0
if open == 0
playgroup forward 0
set open to 1
enableLinkedPathPoints
else
playgroup backward 1
set open to 0
disableLinkedPathPoints
endif
set next to 1
set busy to 1
set timer to 1
endif

end

begin gameMode

if init == 0
; set up ref vars
set mySelf to getSelf
set myParent to getParentRef
; prepare linked pathsgrid points
disableLinkedPathPoints
set init to 1
endif

; daisy-chain activation
if next == 1 && timer <=0
set next to 0
myParent.activate mySelf 1
; Now we hijack normal activation to set off the rest of the effect
if RezFlag == 0
set RezFlag to 1

XPEbroccaBossBust01.cast StandardShockDamageTarget1Novice XPEbroccaBossREF
XPEbroccaBossBust02.cast StandardShockDamageTarget1Novice XPEbroccaBossREF
XPEbroccaBossBust03.cast StandardShockDamageTarget1Novice XPEbroccaBossREF
XPEbroccaBossBust04.cast StandardShockDamageTarget1Novice XPEbroccaBossREF

XPEbroccaBossREF.resurrect 1

XPEbroccaBossBust01.cast StandardParalyze3Journeyman player
XPEbroccaBossBust02.cast StandardParalyze3Journeyman player
XPEbroccaBossBust03.cast StandardParalyze3Journeyman player
XPEbroccaBossBust04.cast StandardParalyze3Journeyman player

XPEbroccaBossBust01.cast StandardRestoreHealthTarget2Apprentice XPEbroccaBossREF
XPEbroccaBossBust02.cast StandardRestoreHealthTarget2Apprentice XPEbroccaBossREF
XPEbroccaBossBust03.cast StandardRestoreHealthTarget2Apprentice XPEbroccaBossREF
XPEbroccaBossBust04.cast StandardRestoreHealthTarget2Apprentice XPEbroccaBossREF

XPEbroccaBossRef.setScale 1.2
XPEbroccaBossRef.pms effectShockDamage

XPEbroccaBossMinion01.enable ; run to find PC only if in same cell
XPEbroccaBossMinion01.evp
XPEbroccaBossMinion02.enable
XPEbroccaBossMinion02.evp
XPEbroccaBossMinion03.enable
XPEbroccaBossMinion03.evp


;set BaseHP to (XPEbroccaBossREF.getBaseAv Health)
;set BaseMP to (XPEbroccaBossREF.getBaseAv magicka)
;set BaseFP to (XPEbroccaBossREF.getBaseAv fatigue)
;XPEbroccaBossREf.modav health BaseHP
;XPEbroccaBossREf.modav magicka BaseMP
;XPEbroccaBossREf.modav fatigue BaseFP

endif
endif

if isAnimPlaying == 0 && busy == 1
set busy to 0
endif

if timer > 0
set timer to timer - getSecondsPassed
endif

end

begin onReset

reset3DState
set open to 0
set next to 0
set busy to 0
disableLinkedPathPoints

end


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK