Finner Newbie
Joined: 21 Oct 2006 Posts: 1
|
Posted: 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! |
|