Thanks
~Sev
Scriptname MGRJzargoFlameEffectScript extends ActiveMagicEffect Explosion Property FireballExplosion Auto Keyword Property UndeadKeyword AutoEvent OnEffectStart(Actor Target, Actor Caster);Cast quest script to access varsMGRJzargoSpell01QuestScript QuestScript = Jzargo01 as MGRJzargoSpell01QuestScript;If spell is hitting an undead target, add on extra explosionif Target.HasKeyword(UndeadKeyword) Target.PlaceAtMe(FireballExplosion, 1, False, False);and run VCount function on Quest Script if Jzargo01.GetStage() == 20 QuestScript.VCount() endifendifEndEventQuest Property Jzargo01 Auto GlobalVariable Property TestCast Auto
Scriptname SummonScarTeleporter extends ObjectReferenceObjectReference Property DoorToScar AutoSPELL Property SpellNeeded AutoObjectReference Property MyMarker AutoExplosion Property myExplosion AutoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)If akSource == SpellNeeded ObjectReference Me = Game.GetPlayer() MyMarker.MoveTo(Me,0,0,0,true) self.PlaceAtMe(myExplosion) DoorToScar.MoveTo(self,0,0,0,false) self.Delete()EndIfEndEvent
Scriptname SummonScarTeleporter extends ObjectReferenceObjectReference Property DoorToScar AutoSPELL Property SpellNeeded AutoObjectReference Property MyMarker AutoExplosion Property myExplosion AutoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)If akSource == SpellNeeded ObjectReference Me = Game.GetPlayer() MyMarker.MoveTo(Me,0,0,0,true) self.PlaceAtMe(myExplosion, 1, false, false) Me.PlaceAtMe(myExplosion) DoorToScar.MoveTo(self,0,0,0,false) self.Delete()EndIfEndEvent