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
Taishar
Novice


Joined: 23 Jul 2001
Posts: 47
Location: USA

PostPosted: Sun Apr 06, 2003 7:51 pm   

Quick trigger question
 
In one of my triggers I've basically got one line that I keep having to manually add or delete depending on if someone is in the same area as me. (I change it to avoid whatever room they happen to reside in).

It'd be much easier if I could just put some symbol in front of it much like a comment in C so that it'll just ignore that line... and when I need it active can just quickly edit and remove the comment so its in effect.

Hopefully that makes sense : )

Here's the trigger (pattern: Obvious exits:%s(*).), in case you can think of some better way to do it other than continually adding/removing the bold line:

 

#GAG
#VAR Exits {%1}
#VAR exits %replace( @exits, " ", "|")
#IF (@exits="north|south|east") {#VAR exits {north|east}}
#VAR DirToGo %item( @exits, %random( 1, %numitems( @exits)))
#IF @RoomEmpty {
#IF (@CurFat<50) {drink bot}
@DirToGo
#VAR RoomEmpty 0
} {
bite @target
#VAR RoomEmpty 0
}


The area is small... 6 rooms, shaped like this:


0 0
| |
0-0
| |
0 0

... ok, enough rambling : )

Dan


The unstained tower breaks and bends knee to the forgotten sign. The seas rage, and storm clouds gather unseen. What was exalted is cast down; what was cast down is raised up. Order burns to clear his path.
Reply with quote
Craivus
Novice


Joined: 24 Jan 2001
Posts: 47

PostPosted: Sun Apr 06, 2003 11:36 pm   
 
Putting #NOOP before it will work. Not proper syntax, but it will work.
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: Sun Apr 06, 2003 11:41 pm   
 
The ; character at the beginning of a line indicates a comment. This is configurable, but the default is on so you can probably start using it right away.

Martin
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