|
Nardak Beginner
Joined: 23 Oct 2000 Posts: 29 Location: Sweden
|
Posted: Sat Mar 22, 2003 10:38 am
Coloring trigger. |
Hi, I want to color the exits in rooms.
The output looks like this.
There are five obvious exits: west, southwest, northeast, southeast and
east.
There are two obvious exits: south and east.
There is one obvious exit: east.
I would like to capture it with one single trigger.. It sometimes stretches over two lines, thats also a problem I think.
Any bright ideas? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Mar 22, 2003 3:31 pm |
Do you want to color just the exit directions or the whole line(s)?
To do the whole lines use this
#TRIGGER "ExitTrig" {There %w %w obvious exit{s|}~: *} {#CO red;#IF (%ends(%trigger,".")) {#STATE ExitTrig 0}}
#COND {*.$} {#CO red} |
|
|
|
|
|
|
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
|
|