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


Joined: 05 Mar 2003
Posts: 44
Location: Australia

PostPosted: Fri May 28, 2004 1:37 pm   

Automaticly colouring rooms
 
while mapping an area I thought it would be great to have the mapper
set room colour by triggers eg.

You feel dizzy, and everything seems to spin around you.

so this room would be set to blue

the problem with this is the mapper always colours the room
before the one I step into not the one with the trigger phase.

I've tried all sorts of ways to delay the action but to no avail.
if anyone as an idea to help I'm all ears (so to speak)

many thanks.
mark
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Fri May 28, 2004 3:31 pm   
 
quote:
Originally posted by SBG

while mapping an area I thought it would be great to have the mapper
set room colour by triggers eg.

You feel dizzy, and everything seems to spin around you.

so this room would be set to blue

the problem with this is the mapper always colours the room
before the one I step into not the one with the trigger phase.

I've tried all sorts of ways to delay the action but to no avail.
if anyone as an idea to help I'm all ears (so to speak)

many thanks.
mark


Something like this might work:

#ALIAS onroomcreate {#echo onroomcreate;#noop %roomcol(, @col);col=""}
#ALIAS onroomenter {col=""}
#TRIGGER {door} {#if (%maplocked()=false) {col="green"}}

The example colours the room green if the word "door" is triggered.
Reply with quote
SBG
Novice


Joined: 05 Mar 2003
Posts: 44
Location: Australia

PostPosted: Sat May 29, 2004 10:36 am   
 
Thank you kind sir, It works perfectly Very Happy
and from your example I've been able to get a couple of
other things to work as well.

*Applause*

Thanks Heaps
mark.
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