BluByt3 Posted April 18, 2021 Posted April 18, 2021 I'm trying to have a force greet package overwrite a targeted actor's package stack, and I had heard the best way to do that was to use a quest referenceAlias. Trouble is, I have no idea what I'm doing, and it doesn't seem to be working. I made a quick debug script to manually force the referenceAlias to a targeted actor using the below code: Scriptname _FNdebugScript extends ActiveMagicEffect ReferenceAlias property ref auto event onEffectStart(actor akTarget, actor akCaster) ref.ForceRefTo(akTarget) debug.notification("forcing dummy ref") akTarget.EvaluatePackage() endEvent However, the actor's packages are not overwritten. Any idea if I'm on the right path, or if there's some other way to change actor packages on the fly? Thanks! Edit: Figured out what was wrong, my package was set up totally incorrectly. Code above works fine, just need to make sure your referenceAlias has the package attached to it in the quest.
Seijin8 Posted April 18, 2021 Posted April 18, 2021 2 hours ago, BluByt3 said: the actor's packages are not overwritten Is the debug message showing up? I would think that to set this up right, you would also need the quest to be defined in the script. (Though maybe the CK lets you get away with setting an alias property without its parent quest? I don't think so, but stranger things have happened.)
Just Passerby Posted April 18, 2021 Posted April 18, 2021 Because said 'or if there's some other way'... ActorUtil.psc script from SexLab's Framework may help. but for myself, i prefer do not use 'hidden' content. I mean open c++ (or any other language) sources, not papyrus. Not because the safety reasons but ... too stupid to force me in reverse engineering for a small reason to... catch bugs, or to make changes for any reason... etc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.