Oblivion Game Data

Select game:

Search:

Select a record type:

AichanTRAPStatueHunger01TargetSCRIPT (0x0007ceec)

  • Record Type: SCPT
  • Editor ID: AichanTRAPStatueHunger01TargetSCRIPT
  • Form ID: 0x0007ceec
  • Source File: Oblivion.esm.mod
  • Patch Status: FormID has not been modified.
Parameter Value
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


Database last updated 11/02/2011
SCPT records last updated 10/31/2011