 |
ferahgo Newbie
Joined: 02 Sep 2007 Posts: 7
|
Posted: 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.
|
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
 |
ferahgo Newbie
Joined: 02 Sep 2007 Posts: 7
|
Posted: Sun Sep 02, 2007 3:49 pm |
ok I upgraded and I lost the script entirely! ack, how can I get it back?
|
|
|
 |
ferahgo Newbie
Joined: 02 Sep 2007 Posts: 7
|
Posted: 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 |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
 |
ferahgo Newbie
Joined: 02 Sep 2007 Posts: 7
|
Posted: 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 |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Sep 04, 2007 9:53 pm |
Did you check to make sure the class is enabled?
|
|
_________________ Asati di tempari! |
|
|
 |
ferahgo Newbie
Joined: 02 Sep 2007 Posts: 7
|
Posted: 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
|
|
|
 |
|
|