Account
News
Downloads
Community
Wiki
Walkthrough

AichanTRAPStatueHunger01TargetSCRIPT

Editor ID:
AichanTRAPStatueHunger01TargetSCRIPT


Form ID:
0007CEEC


Type:
Object


Script:
scn AichanTRAPStatueHunger01TargetSCRIPT

; 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)
;
; NOTE - This version will NOT daisy-chain to another activator
;
; Scaled-down version that can be used in groups & that will hopefully not slaughter the player instantly.
;
;Casts TRAPDamageHealthTarget02 from level 12 and up


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 <= 10
cast TRAPDamageHealthTarget01 myParent
elseif ( player.GetLevel >= 11 ) && ( player.GetLevel <= 20 )
cast TRAPDamageHealthTarget02 myParent
elseif ( player.GetLevel >= 21)
cast TRAPDamageHealthTarget02 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