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


Joined: 21 Oct 2006
Posts: 1

PostPosted: Sat Oct 21, 2006 7:28 am   

Archaea show exits script
 
Hi - I'm very new to scripting in zMud and am trying to produce a script which outputs a more graphic representation of the exits for each room in archaea.

The only way I have been able to get anything working is by using the following:
#CLASS {exits}
#TRIGGER {You see exits leading north, east, south, and west.} {
#SHOW {%ansi( high, cyan)~*~*~*---[N]---~*~*~*}
#SHOW {%ansi( high, cyan)~*~*~*[W]---[E]~*~*~*}
#SHOW {%ansi( high, cyan)~*~*~*---[S]---~*~*~*}
#T- exits class
}
#TRIGGER {You see exits leading east and west.} {
#SHOW {%ansi( high, black)~*~*~*---[N]---~*~*~*}
#SHOW {%ansi( high, cyan)~*~*~*[W]---[E]~*~*~*}
#SHOW {%ansi( high, black)~*~*~*---[S]---~*~*~*}
#T- exits class
}
#CLASS 0

of course, with this method, i'll need to include every possibility, and it doesn't work if the exits are doors ie. 'north (open door)'.

Is anyone able to suggest a more practical way of doing this? I was trying to get it to work with if statements in the trigger, or variables, but had no luck.
Any help is most appreciated!
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