I'm attempting to attach a script to an object, that when activated, asks one question. If the answer is yes, it casts a spell that fortifies three attributes for a short period of time. If the answer is no, nothing. Simple, right? Hah!
The script posted below worked at some point in time. There has been a slight variation since. I can't recall really because after it worked the first time, I got a little cocky and added a messagebox directly under the Cast part of the script that described the spell's effects. Saved, tested, failed and hasn't worked since. I've cut and pasted parts in and out, broken it down to just the basic OnActivate and Cast portions and I get the same results. It seems like the script wants to work. The cast animation and sound play but stops half-way. Like a pitcher winding up...then stops mid-point to pick his ass!
- Spoiler: Show
What's really odd to me is this: Right before the script's one and only success, I activated the object and got the half-casting effect I mentioned above, then thought about some potions I had created earlier. When I went to test them out in-game, I noticed that they had no effect unless your alchemy skill was at a certain point, don't know what that is, I just raised it via console to 100 and the potion took effect. So, I thought maybe that's the answer! I raised alchemy to 100...activate...nothing. Raised restoration and mysticism to 100 and like magic! The spell took efffect.
And then I went back into it a buggered it up somehow.
So, any insight would be greatly appreciated.