I am try to set up a macro that casts a spell but it needs to wait for several seconds while it casts before it removes the spellbook and stores it in my locker or pouch
open pouch
get viol pouch
wear viol
c 'enhanced strength'
DoAfter (10, "remove viol") --- this is the line i am having issues with so any ideas on what my problem is?
That is what is happening, I thought it was supposed to wait 10 seconds before trying to remove the voil.. I am really new to this program I used to do zmud/cmud when i played before
Off the top of my head, do you have timers enabled? Is the DoAfter actually firing to remove the spellbook? Have you tried using incremental DoAfter steps to putting the spellbook in the bag and closing the bag? Pretty sure the rest of the trigger evaluates immediately when you drop a doafter in the middle of things like that.
More reliable approach would probably be to set a trigger against whatever your returned message from a successful enhanced strength cast is to handle the removal and storage of the spellbook. That would allow you to send the entire thing to script and set your delays on everything accordingly.