|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Sat Aug 13, 2005 5:22 am
Qued commands... do they exist? |
Greetings all.
One of the main reasons I started using zMud over the client freely available from the website of my MUD (Achaea), is that I was told you can do qued commands, in a sense.
For instance, in Achaea, if you are afflicted you can eat a herb to cure it, but then there is a time delay between that time and the time when eating another herb becomes effective (called herb balance).
So, it's simple to set a trigger to simply eat the herb when you see the affliction message, but if you get multiple afflictions at once, or very quickly or something, then the triggers will just keep you eating herbs with no effect because you haven't gotten herb balance back yet. In addition, the afflictions that should've been cured aren't because you've just eaten all the cures to no effect!
I was told that in zMud you can set scripts so that you will eat a herb, then if you get afflicted again the code will be sent to zMud to eat another herb but it won't actually execute until you get herb balance back. Is this possible, and are there any guides or other forum topics on the subject that might be able to help me begin to design my own system?
A very simple example, that I am looking for help with, is that when I activate one of my defenses, I lose equilibrium, and if I try and activate another defense while I have no equilibrium it won't work. But, I have almost 20 defenses... So, what I'm looking for is a script that will let me type 'defup' or something, and then it'll run through all my defenses, activating each one as I regain equilibrium. Is there a way to get a script to do this, to recognise a line of text and then activate the next defense, then recognise the same line again, and activate the NEXT defense, etc?
Thanks all who can help |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4702 Location: Pensacola, FL, USA
|
Posted: Sat Aug 13, 2005 6:24 am |
#ALIAS defup {thing1;#VAR ToDo {thing2|thing3|thing4|thing5|ect}}
#TR {message saying you have equilibrium back} {%item("@ToDo",1);#VAR ToDo %delItem("%item("@ToDo",1)",@ToDo)}
this assumes your not gonna set it off when you have no equilibrium
and if there is a message indicating when you can eat an herb again it can easily be modified to work on that as well |
|
_________________ Discord: Shalimarwildcat |
|
|
|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Sat Aug 13, 2005 8:28 am |
Okay... Well, I put it in, and it's not working. The first part (split mind) works, but then nothing else happens after I get the "You have recovered equilibrium." message. I modified the code to include the defenses that require equilibrium like so:
#ALIAS defup {split mind;#VAR ToDo {vitality|fitness|constitution}}
#TR {You have recovered equilibrium.} {%item("@ToDo",1);#VAR ToDo %delItem("%item("@ToDo",1)",@ToDo)}
It creates the variable, puts the three items in the list, creates the trigger... but the trigger doesn't seem to be doing anything, so I assume it's in the trigger where the problem lies... |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4702 Location: Pensacola, FL, USA
|
Posted: Sat Aug 13, 2005 8:59 am |
well you need to put the full command there, if you split it each time... {split vitality|split fitness|ect}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Sat Aug 13, 2005 9:29 am |
No, SPLIT MIND is the command for one defense. I don't split anything else. VITALITY etc are full commands. Basically what I want to happen is this:
SPLIT MIND
"You have recovered equilibrium."
VITALITY
"You have recovered equilibrium."
FITNESS
"You have recovered equilibrium."
CONSTITUTION |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4702 Location: Pensacola, FL, USA
|
Posted: Sat Aug 13, 2005 9:45 am |
#TR {You have recovered equilibrium.} {%item(@ToDo,1);#VAR ToDo %delItem(%item(@ToDo,1),@ToDo)}
this works... my mistake |
|
_________________ Discord: Shalimarwildcat |
|
|
|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Sat Aug 13, 2005 10:10 am |
It DOES work, thankyou very much!
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Aug 13, 2005 7:11 pm |
Shorter Version
#TR {You have recovered equilibrium.} {%pop(ToDo)} |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4702 Location: Pensacola, FL, USA
|
Posted: Sat Aug 13, 2005 7:47 pm |
oooo learn something new every day
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|