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


Joined: 18 Sep 2004
Posts: 2

PostPosted: Sat Sep 18, 2004 11:47 am   

is there a way to break out of the middle of a trigger?
 
I have a trigger where i'm doing a bunch of #IF statements...
I want to be able to exit out of the middle of this trigger...
Is there a zmud command that lets you break out of the middle of a trigger?
i dont want to check the rest of the #IF statements if one of the conditions matches.

I have tried making a big long #IF (condition1) {statement} {#IF (condition2) {statement2} }
and it didnt work correctly, maybe becuase i have like 60 conditions...
Anyway i would appreciate it if anyone knows of an easy way to break out of the middle of a trigger..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Sep 18, 2004 1:42 pm   
 
#ABORT 1
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Sat Sep 18, 2004 3:24 pm   
 
#abort will break out of the current {block} but not the whole alias/trigger/etc.

#abort 1 will break out of the alias/trigger/etc. as well as everything that called it.

There's nothing that aborts just out of the current alias/trigger/etc. so you usually have to do the ungodly nested ifs thing you were doing.
Reply with quote
netooi
Newbie


Joined: 18 Sep 2004
Posts: 2

PostPosted: Sat Sep 18, 2004 4:59 pm   
 
thanks for the advice.
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