Not sure the best subject name for this, hope it's good. When a spell wears off, it leaves a unique message. I want to make an alias that will cast that spell again. I assume I would need a trigger for each spell's unique message. The main problem for me here is that I don't know how to save all of the spell names and cast all of these in one alias since there could be up to 50 or so spells.
saving strings to be executed later
Posted by Artel on Sun 03 Apr 2005 07:44 AM — 3 posts, 19,701 views.
I have something of a similar nature going on with some of my commands. I store all the commands in a string deliminated by '|' and then strip the commands off one by one each time I recieve the proper trigger. I'll post some code once I get the chance to look for it.
Check the last post in this thread, it will deal with the sending and storing aspect. But yes, provided the messages are all unique (how unique are they?) you'll need to have a trigger for each.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5304&page=999999
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5304&page=999999