 |
Kronas Wanderer
Joined: 28 Dec 2003 Posts: 62 Location: Australia
|
Posted: Wed May 05, 2004 1:10 am
not sure |
I have this command in a script and it ain't responding
#TRIGGER {You take out some salve and quickly rub it on your *.$} {salvebal = 0}
#COND {You messily spread the salve over your body, to no effect.$} {salvebal = 1} {within|param=1}
now , the problem is...it does cure the arm / leg
but then it keeps applying the salve to no effect.
Do I need to change any settings in ZMUD ver 7.05 to make this line affective {within|param=1}
I can not narrow down the problem, although I feel it's not picking up the next line---> #cond command. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed May 05, 2004 6:38 am |
This trigger looks correct. The real problem is that you have a script which is continuing to apply salve after your arms and legs have already been healed. Neither state of this trigger has an "apply" command, so it isn't the culprit.
I would guess that salvebal is a variable which you are using to control whether you apply a salve immediately or wait. This #TRIGGER sets salvebal to 0, so I would further guess that 0 means wait and 1 means apply without waiting. The #CONDITION sets salvebal back to 1, presumably allowing immediate application of another salve. I would guess that this is because your arms/legs didn't need healing, so your salve didn't do anything, so you aren't forced to wait before using another salve.
You don't need to change anything for {within|param=1} to be effective. That means, "if a matching pattern is received within 1 line after the previous state, perform the commands in the value of this condition and go on to the next state. If a matching pattern is not received within 1 line, reset the trigger to state 0". Since there are only two states, and the parameter is 1, the trigger will be returned to state 0 whether the next line matches or not. The only difference is that the variable, @salvebal, will be changed to 1 if the next line matches. |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|