Account
News
Downloads
Community
Wiki
Walkthrough

Xirethard02RuinTRAPHunger02TargetSCRIPT

Editor ID:
Xirethard02RuinTRAPHunger02TargetSCRIPT


Form ID:
00055167


Type:
Object


Script:
scn Xirethard02RuinTRAPHunger02TargetSCRIPT

; When activated will shoot custom Damage Health spell at parent-linked ref
; A trigger parent-links to this statue and the statue then parent-links to a target ref (such as an X Marker)
;


ref mySelf
ref myParent

begin onActivate

set mySelf to getSelf
set myParent to getParentRef

if isActionRef player == 0
set mySelf to getSelf
set myParent to getParentRef

; Leveled spell casting, tops out at lvl 21+
if player.GetLevel <= 5
cast TRAPDamageHealthTarget01 myParent
elseif ( player.GetLevel >= 6 ) && ( player.GetLevel <= 10 )
cast TRAPDamageHealthTarget02 myParent
elseif ( player.GetLevel >= 11) && ( player.GetLevel <= 15 )
cast TRAPDamageHealthTarget03 myParent
elseif ( player.GetLevel >= 16 ) && ( player.GetLevel <= 20 )
cast TRAPDamageHealthTarget04 myParent
elseif player.GetLevel >= 21
cast TRAPDamageHealthTarget05 myParent
endif

endif

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