elseagoat Posted March 21, 2012 Share Posted March 21, 2012 What do I have to do to make a two handed spell work like the master level destruction spells, where you charge them up while standing still? I cannot seem to figure it out. Is there a quest script or something that checks for a keyword and then forces your character to do the animation? Also, I have a magic effect that lasts for 40 seconds and does nothing but play some ISMODs for visual effect. The problem is, when I recast the spell before the previous effecct finishes, it wont get rid of the previous effect! So the two effects are running at once, but since the first one runs out sooner, it runs the part of the script that removes the ISMOD and thus cancels it prematurely (while the second effect is active). Please help! Link to comment Share on other sites More sharing options...
ACSputnik Posted March 23, 2012 Share Posted March 23, 2012 (edited) Try adding states to your script to either a) prevent it from playing again before it is finished or b) going to the ending portion of the script on recast and going back to the start. Maybe something like this to prevent recasting Auto State AtRest Event OnSpellCast(Form akSpell) GoToState("Busy") ;;your script here GoToState("AtRest") EndEvent EndState State Busy Event OnSpellCast(Form akSpell) debug.trace("already running") ;;basically does nothing EndEvent EndState You can also use your portion of the script that cancels the effect in the busy state so that on recast the spell effect is canceled. Play around with it and read up on states on the wiki. Edited March 23, 2012 by ACSputnik Link to comment Share on other sites More sharing options...
Recommended Posts