Hoosmhasm Posted July 14, 2019 Share Posted July 14, 2019 Hey everyone, I've run into what from my angle seems like a very strange circumstance. Please see script below and I'll explain.. Scriptname ForswornClaimRorikstead extends ObjectReference Faction Property TownRoriksteadFaction AutoFaction Property ForswornFaction Auto ObjectReference Property ForswornRorikSpawn1 AutoObjectReference Property ForswornRorikSpawn2 AutoObjectReference Property ForswornRorikSpawn3 AutoObjectReference Property ForswornRorikSpawn5 AutoObjectReference Property ForswornRorikSpawn6 Auto Quest Property RevengeofReach AutoActor Property RorikREF AutoActor Property RoriksteadBriarheart AutoActor Property ForswornBard AutoActor Property JarlTaraket autoActor Property Taraket Auto Event OnDeath(Actor RorikREF)TownRoriksteadFaction.SetAlly(ForswornFaction)ForswornRorikSpawn1.enable()ForswornRorikSpawn2.enable()ForswornRorikSpawn3.enable()ForswornRorikSpawn5.enable()ForswornRorikSpawn6.enable() JarlTaraket.enable()RoriksteadBriarheart.enable()ForswornBard.enable()Taraket.Disable() RevengeofReach.SetObjectiveCompleted(30)RevengeofReach.SetStage(40) endEvent I've ensured the properties are pointing to the right places as well. When I kill Rorik, all that happens is the JarlTaraket Actor enables, the quest completes, and nothing else happens. Please someone explain why the spawning points that previously worked now do not work at all... Link to comment Share on other sites More sharing options...
NexusComa Posted July 14, 2019 Share Posted July 14, 2019 without testing anything and just a pure guess ... try enable Jarl last ... Link to comment Share on other sites More sharing options...
maxarturo Posted July 14, 2019 Share Posted July 14, 2019 (edited) You have this script attached to "Rorik", and when "Rorik" dies the script should fire, if so then : Event OnDeath(Actor akKiller) ; Do Stuff EndEvent akKiller: The Actor that kills the one how has the script attach to it - himself.You have "RorikREF" kills "Rorik"...!?!? Having the script like this "Event OnDeath(Actor akKiller)" will fire no matter who kills "Rorik".You can use the Event like this : Event OnDeath(Actor akKiller) if (self.GetReference() as Actor) ; Do Stuff endif EndEvent Assign a "akKiller" only if you want the script to fire its functions when the "Death Event" happens after a pre - define Actor Killer. For example :Only and when "B" killer > kills "A" victim * Script attached to "Rorik" and will only fire when player kills him. Event OnDeath(Actor akKiller) if (akKiller == Game.GetPlayer()) Debug.Trace("Rorik was killed by the player!") ; Do Stuff endIf endEvent * Your Script name should be : Scriptname ForswornClaimRorikstead extends Actor Edited July 14, 2019 by maxarturo Link to comment Share on other sites More sharing options...
Recommended Posts