|
bdlarmor Newbie
Joined: 29 Apr 2004 Posts: 3 Location: USA
|
Posted: Thu Apr 29, 2004 8:11 pm
Multiple commands in one alias |
I have a wizard character that needs to memorize spells. I created an alias to do so, but I can't figure out how to put them all together so i can type just one thing, and get it to mem all my spells.
Details:
the alias looks like:
MSTR MAX
MGST MAX
MSHI MAX
etc.
The problem is that there is a variable ammount of time it takes to mem each spell based on room location, spell level, number of times a spell needs to be memorized etc. I'm trying to find out if I can put something between thses like...
MSTR MAX
"Then wait for a return from the mud of 'You breathe a sigh of relief as you finish memorizing the spell' before it does the next command"
MGST MAX
wait for that return again
MSHI MAX
wwait again
etc.. you get the poitn i hope.
Any help would be apprecaited. Thanks! |
|
|
|
erazmus Beginner
Joined: 05 Apr 2004 Posts: 11 Location: New Zealand
|
Posted: Thu Apr 29, 2004 8:21 pm |
Use an alias that starts with MSTR MAX, and #T+'s a trigger with multiple states and let it flow from there... When you get to the end of the trigger conditions #T- the trigger.
|
|
|
|
bdlarmor Newbie
Joined: 29 Apr 2004 Posts: 3 Location: USA
|
Posted: Thu Apr 29, 2004 9:24 pm |
I'm not sure i'm understanding. I can put a trigger in that waits for the 'You breathe a sigh of relief' string, but what makes it wait for that trigger to occur before going on to the second step in that alias? I'm extremely new to Zmud, but i have some programming skills. I just thought i could do a #WAIT step or something, but the #WAIT variable is only for time, and not for response from the Mud.
|
|
|
|
erazmus Beginner
Joined: 05 Apr 2004 Posts: 11 Location: New Zealand
|
Posted: Fri Apr 30, 2004 12:53 am |
I am just starting to really get into this side of zMud even though I have used it for years so here goes a NooB type reply :D
Start with something like ...
#ALIAS spellUp {#T+ mySpellTriggers;MSTR MAX}
#TRIGGER mySpellTriggers {^You breathe a sigh of relief as you finish memorizing the spell} {MGST MAX}
#CONDITION mySpellTriggers {MGST MAX success trigger string} {MSHI MAX}
#CONDITION mySpellTriggers {NSHI MAX success trigger string} { next command or if it's the last 1 then #T- mySpellTriggers}
That should be pointing in the right direction :) |
|
|
|
|
|