SCTX |
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
|