I'm trying to set up a system where a perk grants you a power that when used will swap out a specific item for a specially enchanted version of the same, arrows to be exact. Based on my research so far I've come to the conclusion that I'll need to use multiple effects to get it to have any hope of working by chaining them together.
Just in case there's an easier way to do this here's the sequence of events I'm imagining:
1) Player picks the perk and gets the power -- Easy enough and already set up2a) Player uses the power and, assuming they have the needed items equipped, -- Can't figure out how to stick the new effect on the player. :stare: the arrows are replaced with another version that has the requisite enchantment and an effect is applied to show that they're using Power X, e.g. Flame Arrow.2b) If they have only one, or neither, required item the effect is still applied but -- Don't imagine this'll be too hard, I hope. nothing happens until such time as both are worn.3) If player uses the power again, it's toggled off -- Should be simple. Dispel any active enchantment with the correct keyword.4) If another of these powers is used, the results are swapped -- Again, should be simple. Dispel active one, apply new one. Replace enchanted arrows, if equipped, with new version. Keywords used again.5) If either the bow or arrows are unequipped, the arrows are replaced with the -- Once again, shouldn't be too difficult. Add a script with an OnUnequipped event and do stuff there. unenchanted version. e.g. swap out
So, is there a way to do it with scripting? Easier way to do this without scripting? Am I totally out of luck and it's not possible?
Thanks for any advice or insight anyone feels like sharing.