Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
jjf
Newbie


Joined: 17 Jan 2004
Posts: 5

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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}
Reply with quote
jjf
Newbie


Joined: 17 Jan 2004
Posts: 5

PostPosted: 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
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net