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
WhoAmI
Newbie


Joined: 06 Mar 2004
Posts: 6
Location: USA

PostPosted: Thu Aug 19, 2004 7:49 pm   

Help with Auto Mining [#T+ and #T-]
 
Zmud Auto mining

I have this script for auto mining but I can’t get it to toggle on with “#T+ amine or off with “#T- amine”. Can you help me and is there a real good way to learn how to use all the Zmud script functions.

#CLASS {amine}
#TRIGGER {amine} {#ALARM +1 {mine}}
#TRIGGER {You stop mining.} {
drop pebbles
mine
}
#CLASS 0

If I use it this way it will go one forever and I have to quit the mud to stop it.

I know it’s something very simple problem but I haven’t learned to code yet.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Aug 19, 2004 10:30 pm   
 
Change the class name to something that the trigger won't fire off when it sees
Reply with quote
fred@kuzel.ca
Beginner


Joined: 25 Nov 2003
Posts: 15
Location: United Kingdom

PostPosted: Fri Aug 20, 2004 11:38 pm   
 
I don't think the problem has anything to do with your "amine" trigger. The real issue appears to be the "You stop mining." trigger.

#TRIGGER {You stop mining.} {
drop pebbles
mine
}

I imagine something like this is happening:
amine
mine
You start mining.
You stop mining.
drop pebbles
mine

You start mining.
You stop mining.
drop pebbles
mine


As it stands you will always mine when you finish mining leaving you in an endless loop.

I guess the question is when do you want to stop? you will stop by turning off the second trigger:

#T- {You stop mining.}

There are lots of things you can to do control this or to mine x times. You just need to let us know what you want to do.

btw, your mud actually sends you the word "amine" ???

Uziel
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