Well, I've got some good news, and I've got some bad news... My curing system works... YAY!! The bad news... It takes 2 seconds to execute commands... Which is bad.
Instead of explaining the processes again, I'm going to post up screenshots of everything, so you will ACTUALLY be able to see my exact code.
Anyhow, here's the scenario, so you all aren't too confused. To test my system, I'm sitting my character down, which I have recorded the message that says "You sit yourself down." It SHOULD record that and fire the trigger, however it's waiting 2 seconds before it goes... And here be the screenshots...
http://i991.photobucket.com/albums/af40 ... Window.jpg - Main Mudlet window w/timestamps.
http://i991.photobucket.com/albums/af40 ... Window.jpg - The Debug window
From the timestamps, you can see that the proper cure is firing, but it's arriving 2 seconds after the trigger.
http://i991.photobucket.com/albums/af40 ... rigger.jpg - The Trigger
http://i991.photobucket.com/albums/af40 ... f_herb.jpg - addAff_herb
http://i991.photobucket.com/albums/af40 ... s_herb.jpg - cureAffs_herb
I hope that these help in any way! Thank you for any and all help!
Curing System Delays
Re: Curing System Delays
Enable this option:
Then your prompt trigger won't take ages to go off. IRE muds need this workaround because they're a bit broken (you have to enable a similar option in MUSH as well).
edit: err... maybe it's not that, I thought your trigger goes of the prompt to do all the actions. Why do you have that tempTimer on 2 seconds there?
Then your prompt trigger won't take ages to go off. IRE muds need this workaround because they're a bit broken (you have to enable a similar option in MUSH as well).
edit: err... maybe it's not that, I thought your trigger goes of the prompt to do all the actions. Why do you have that tempTimer on 2 seconds there?
Re: Curing System Delays
It's arriving 2 seconds after the trigger because you explicitely want to fire a timer with 2 seconds delay. -> cure image. If you want it without the 2 seconds delay use send("stand") instead of tempTimer(2 [[send("stand")]] ).
Re: Curing System Delays
Hmm... That makes sense, however the reason I have that queue there is because if herbBalance or regular Balance is 0 (herbBalance == 0), then I want it to wait 2 seconds, then fire the curing command.
Re: Curing System Delays
Nah.. your ifs are wrong then. You're saying "if I'm not prone, then wait 2s and stand up".
I sorta don't feel like typing out all the code again, but of the 3 ends at the end, you want to replace the 2nd one with your else, the code and then put the end.
I sorta don't feel like typing out all the code again, but of the 3 ends at the end, you want to replace the 2nd one with your else, the code and then put the end.
Re: Curing System Delays
YAY!!! That worked! And it makes sense, too... Why didn't I think of that...? Oh well... Thank you both! Now everything works, and I just have to prioritize everything, and my system is DONE!!
Re: Curing System Delays
Noticed some weirdness in http://i991.photobucket.com/albums/af40 ... s_herb.jpg
Unless you have a variable prone that contains "prone", herbQueue[prone] == true is likely equal to nil == true. You'll probably want to make that herbQueue["prone"] instead. With that changed. the flow becomes "If I'm prone, stand up. If not, stand up after 2 seconds", which seems kind of weird. A timer would be created every time the script is run, as long as herbBalance is 1.
I'm not entirely sure what you're trying to do with that script, but if it were me and that were an actual herb affliction, I would just remove the whole else part and make a separate trigger(s?) and timer system to keep track of herbBalance.
Unless you have a variable prone that contains "prone", herbQueue[prone] == true is likely equal to nil == true. You'll probably want to make that herbQueue["prone"] instead. With that changed. the flow becomes "If I'm prone, stand up. If not, stand up after 2 seconds", which seems kind of weird. A timer would be created every time the script is run, as long as herbBalance is 1.
I'm not entirely sure what you're trying to do with that script, but if it were me and that were an actual herb affliction, I would just remove the whole else part and make a separate trigger(s?) and timer system to keep track of herbBalance.
Re: Curing System Delays
I see what you are saying, and I will be scripting in new functions to capture and contain herbBalance, salveBalance, regenBalance, diagBalance, and pipeBalance too. These basic three are here only to test my system and see if I can run three separate queue's at the same time, which thankfully, I can!
And I had noticed my lack of quotes there, where you suggested them. They'll be there in the future, I promise!
And I had noticed my lack of quotes there, where you suggested them. They'll be there in the future, I promise!