|
jjf Newbie
Joined: 17 Jan 2004 Posts: 5
|
Posted: Sun Jan 18, 2004 11:51 am
Actiion after Forall compleate |
Need to be able to eather do #Forall {repair %i} then execute the command #show {Repairs compleate} after the compleat forall is finnished or To Execute trigger if Pattern does not happen in following 2 lines
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jan 18, 2004 4:32 pm |
Put the #SHOW right after the #FORALL using the command-separator character (which defaults to ;):
#FORALL @var {repair %i};#SHOW {Repairs complete} |
|
|
|
jjf Newbie
Joined: 17 Jan 2004 Posts: 5
|
Posted: Sun Jan 18, 2004 7:49 pm |
This is what it outputs.
repair pelt
repair sleeves
repair gloves
repairs complete
The merchant tells you 'That item does not need to be repaired.'
The merchant tells you 'That item does not need to be repaired.'
The merchant tells you 'That item does not need to be repaired.'
I need it to display it Here instead of before the merchant responds |
|
|
|
patryn Apprentice
Joined: 26 Sep 2001 Posts: 124
|
Posted: Mon Jan 19, 2004 12:57 am |
Judging from the output above, it looks like you want to separate the items that are repaired and the items that aren't.
You could do this by checking the condition of all of your items before doing any repairs (if the mud allows you to - 'condition all' or somesuch). Then you have a trigger capture all of the items that are damaged and put these items in a variable.
Then you do the #forall loop to repair and it should only send to the mud those items that are damaged. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jan 19, 2004 6:05 pm |
If you want a delay, then build one in.
#FORALL @var {repair %i};#ALARM +1 {#SHOW {Repairs complete}} |
|
|
|
|
|