Ok...I just got sub timers down, thou I'm trying to make it so you can stack them. For instance say the code was for a dig command. If the player spammed it 10 times it would simply wait for the first sub_timer to finish, then move on to the next untill it's done all ten times. Or if the player spammed dig 10 times then typed save, it would correctly go through the dig sub timer ten times, then save...cant figure out how to do this kinda new to timers and all...but I have no ideas. Hope someone can shed some light on this for me, thanks.
edit- I tried to simply remove the return from sub_timer do abort like this:
case SUB_TIMER_DO_ABORT:
ch->substate = SUB_TIMER_CANT_ABORT;
//return;
..while the commands went through..they just spammed out quickly ignoring the timer portion.
edit- I tried to simply remove the return from sub_timer do abort like this:
case SUB_TIMER_DO_ABORT:
ch->substate = SUB_TIMER_CANT_ABORT;
//return;
..while the commands went through..they just spammed out quickly ignoring the timer portion.