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
Twigg
Wanderer


Joined: 22 May 2003
Posts: 60
Location: USA

PostPosted: Mon Aug 16, 2004 2:28 pm   

#repeat
 
Could someone tell me why the #ALARM does not work on this script for foraging?
Thank-you and thank-you Chiara for helping me with my password!

#REPEAT 10 {forage %1}
#ALARM 4
_________________
Twigg
Reply with quote
sun2gohan
Beginner


Joined: 15 Aug 2004
Posts: 22

PostPosted: Mon Aug 16, 2004 2:35 pm   
 
What exactly are you trying to do? Wait 4 seconds before foraging %1 again?

If that's the case i'd consider moving towards the multi-state triggers and using an ONINPUT..

Similar to how the documentation shows here:

http://www.zuggsoft.com/library/trigadv.htm#Wait
Reply with quote
Twigg
Wanderer


Joined: 22 May 2003
Posts: 60
Location: USA

PostPosted: Mon Aug 16, 2004 2:47 pm   sigh
 
I know I should understand how to do that...but...could someone just show me how to make my little script work? Show me please, that is the only way I seem to get it at all. Then I can begin to put it together.
_________________
Twigg
Reply with quote
sun2gohan
Beginner


Joined: 15 Aug 2004
Posts: 22

PostPosted: Mon Aug 16, 2004 2:51 pm   
 
I think #LOOP is the command you're looking for...

from the WAIT helpfile

#LOOP 10 {kill %{i}.bear;#WAIT 5000}
sends the commands "kill 1.bear", "kill 2.bear", "kill 3.bear", etc, but with a 5 second delay between each "kill" command.

What you want is probably an alias:

#AL frg {#LOOP 10 {forage %1;#WAIT 4000}}

then you would use it like: "frg berries" or something ..

Hopefully that makes sense?
Reply with quote
Twigg
Wanderer


Joined: 22 May 2003
Posts: 60
Location: USA

PostPosted: Mon Aug 16, 2004 3:15 pm   
 
Thank-you,
That did work! So this is the appropriate time to use #WAIT?
Anyway, I can see how it works and am very grateful!
_________________
Twigg
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