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


Joined: 02 Sep 2007
Posts: 7

PostPosted: Sun Sep 02, 2007 5:42 am   

why do triggers inside triggers make copies of themself?
 
why do triggers inside triggers make copies of themself? I don't like the clutter and I think it's messing things up. I am on version 7.0.4 and I unchecked the Trigger on Trigger box. Thanks.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sun Sep 02, 2007 7:51 am   
 
Try upgrading to 7.21, 7.04 is very old now and there's really no valid reason not to be using 7.21...
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
ferahgo
Newbie


Joined: 02 Sep 2007
Posts: 7

PostPosted: Sun Sep 02, 2007 3:49 pm   
 
ok I upgraded and I lost the script entirely! ack, how can I get it back?
Reply with quote
ferahgo
Newbie


Joined: 02 Sep 2007
Posts: 7

PostPosted: Sun Sep 02, 2007 4:10 pm   
 
and it still has the problem here is the code I'm working on

Code:

#SLOW forest
#PAUSE
ka
#TRIGGER {there is nothing here} {
  #STEP
  #PAUSE
  ka
  }
#TRIGGER {is dead} {
  eat all
  get all
  ka
  }


It's a bot to walk around an area and clear mobs, first I have to right click and execute to get the trigger to work, and when I do it makes two new triggers called #TRIGGER there is nothing here, and #TRIGGER is dead, which I have to delete after every time I execute... I think I might be doing this the hard way
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Sep 02, 2007 8:59 pm   
 
You are creating a new trigger every time so zMUD is doing exactly what you ask it to. Every time you call the alias (which is where I'm assuming you have this code, a new trigger is created.)

If you want a trigger that will disappear after it's executed you want to use the #TEMP command.

It creates the trigger and deletes it after the first time it's fired.

Alternatively if you don't want to define one every time you can just define the triggers once at the command line. Once defined they will be there until you delete them.
_________________
Asati di tempari!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 02, 2007 10:42 pm   
 
Really, it's easier to just keep the triggers instead of having zmud recreate them every time. For example, the following:
Code:
#CLASS {EXPRUN}
 #ALIAS expforest {#T+ {EXPRUN|EXPTRIGGERS};#SLOW forest;#STEP;#PAUSE;consider all}
#CLASS 0
#CLASS {EXPRUN|EXPTRIGGERS}
#TRIGGER {There is nothing here.} {#STEP;#PAUSE;consider all}
#TRIGGER {is here.} {kill all}
#CLASS 0


Just put #T- {EXPRUN|EXPTRIGGERS} at the end of your forest path. By the way, I posted this from a phone, which is why it was so short... but make sure you're not breaking any mud rules.

Charneus
Reply with quote
ferahgo
Newbie


Joined: 02 Sep 2007
Posts: 7

PostPosted: Tue Sep 04, 2007 9:46 pm   
 
I plugged it in, did some modifications and now it works great. My mud has specific rules about botting which I have carefully read and understand. Thank you for your help.


Last edited by ferahgo on Tue Sep 04, 2007 9:54 pm; edited 1 time in total
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Sep 04, 2007 9:53 pm   
 
Did you check to make sure the class is enabled?
_________________
Asati di tempari!
Reply with quote
ferahgo
Newbie


Joined: 02 Sep 2007
Posts: 7

PostPosted: Tue Sep 04, 2007 9:54 pm   
 
ah, sorry, yeah it wasn't working and it seems all I had to do was restart the program
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