I ran into an interesting problem resently. One spell which is occationally useful on the mud I play is called Rejuvenate. It has an insanely short duration and heals slightly less than is sometimes helpful. The problem is that it is often critical to cast it immediately after a previous cast. The solution to this is of course to trigger on the success line and have the trigger recast it. However, in the most resent case I needed to cast until the person I was working with finished one of their spells, then immediately switch to cacting the less expensive spell, since rejuvenate sucks up cp (spell points) very rapidly.
The problem is that it is very hard to interupt the cycle. The duration is literally so short the spell will be cast before the mud can even recieve the command to interrupt it, and then that command is ignored and a fraction of a second later when the trigger sends the command again. I have since altered my scripts so that the alias I created for interrupting spells also dumps the trigger, but it would be nice if I could link the deactivation script to a macro. That way I could simply cast a regular healing spell using the macro and it would call the script to shut down the trigger at the same time.
Currently I can't do this, since macros don't call scripts and all spells for my guild start with the exact same statement. There is nothing I can trigger on when casting a different spell that will allow me to call the deactivation script nor, if there was, is there any way to make sure that the new spell would be cast, rather than being interrupted by the rejuvenate trigger. Using the alias to interrupt it is not always convenient either, especially since I can cast a heal wounds in the time it would take to remove my finger from the macro key and type the alias. And as I said, when you need this spell, timing is extremely important. ;)
The problem is that it is very hard to interupt the cycle. The duration is literally so short the spell will be cast before the mud can even recieve the command to interrupt it, and then that command is ignored and a fraction of a second later when the trigger sends the command again. I have since altered my scripts so that the alias I created for interrupting spells also dumps the trigger, but it would be nice if I could link the deactivation script to a macro. That way I could simply cast a regular healing spell using the macro and it would call the script to shut down the trigger at the same time.
Currently I can't do this, since macros don't call scripts and all spells for my guild start with the exact same statement. There is nothing I can trigger on when casting a different spell that will allow me to call the deactivation script nor, if there was, is there any way to make sure that the new spell would be cast, rather than being interrupted by the rejuvenate trigger. Using the alias to interrupt it is not always convenient either, especially since I can cast a heal wounds in the time it would take to remove my finger from the macro key and type the alias. And as I said, when you need this spell, timing is extremely important. ;)