|
Twigg Wanderer
Joined: 22 May 2003 Posts: 60 Location: USA
|
Posted: 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 |
|
|
|
sun2gohan Beginner
Joined: 15 Aug 2004 Posts: 22
|
Posted: 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 |
|
|
|
Twigg Wanderer
Joined: 22 May 2003 Posts: 60 Location: USA
|
Posted: 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 |
|
|
|
sun2gohan Beginner
Joined: 15 Aug 2004 Posts: 22
|
Posted: 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? |
|
|
|
Twigg Wanderer
Joined: 22 May 2003 Posts: 60 Location: USA
|
Posted: 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 |
|
|
|
|
|