scn ARTrapGasEmitter01SCRIPT; spurt gas on activationshort initfloat timershort nextref mySelfref myParentfloat fTrapDamagefloat fLevelledDamagefloat fTrapPushBackfloat fTrapMinVelocityshort bTrapContinuousbegin onActivate if init == 0 set mySelf to getSelf set myParent to getParentRef set init to 1 endif if isActionRef player == 0 && isActionRef mySelf == 0 set init to 2 ; set up the damage values set fTrapDamage to 10 set fTrapPushBack to 0 set fLevelledDamage to 0.125 set fTrapMinVelocity to 20 set bTrapContinuous to 1 set timer to 8 set next to 1 playgroup forward 1 endifendbegin gameMode;daisy-chain if next == 1 && timer <= 7 set next to 0 myParent.activate mySelf 1 endif if timer <= 0 && init == 2 playgroup forward 1 set timer to 10 endif if timer > 0 set timer to timer - getSecondsPassed endifend
And hear is the npc's script used to activate the trap and advance the player further in the quest:
scn AAadvanceOnDeath01Begin OnDeath SetStage AABattleMageStartTEST 110 Activate DeathTrapEnd
This type of scripting is WAY past my know how and I need help.
--Thanks
-MNPred