Hello!
I heard lots of good stuff about TES Alliance so I thought I'd give it a try myself! I could use some help on this little project and this looks like the best place to get it.
Without further ado:
Current task: getting Weakness effects to trigger before the poison if both are in the same "bottle"
The idea is this:
1. use an "OnHit" block to catch the player attacking the target. This is dependent on the block being triggered before the actual hit connects - I'm still waiting on a reply from scruggs on this.
2. go through the poison's effects and saving the "weakness" ones, while removing them from the potion.
3. get the target's active effects and go through those, saving the "resistance" ones.
4. change the "resist to poison" ones to "resistance to magicka" (not sure if this is possible as new effects are added on the next frame. alternatively, I would need a way to "tell" it that the source of the new effect is a poison and I'm not sure how to do that).
5. make a clone form of the default spell, remove its effect and add a new effect with the weakness from the potion
6. if 4 is possible, use AddSpellNS to add the weakness with the saved values. This should take into account any resistances.
7. repeat 5 and 6 for any number of different weaknesses in the potion.
8. change the "resistance to magicka" back to "resistance to poison" for when the rest of the poison effects hit.
And that should be it.
My problem right now is outlined in step 4. Any suggestions are greatly appreciated!
Cheers!
cc