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
myrison
Beginner


Joined: 10 Nov 2006
Posts: 22

PostPosted: Sun Nov 12, 2006 9:40 pm   

Set map room color with trigger?
 
Hi all, does anyone know if you can set a trigger to change the appearance (color) of a room on the map based on an event in the MUD? If so, I would appreciate a tip on how to do so.

Thank you.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Nov 13, 2006 2:54 am   
 
#call %roomcol(vnum,color)

vnum can be left blank if you want to color the current room, and I believe color can be RGB-style.
_________________
EDIT: I didn't like my old signature
Reply with quote
myrison
Beginner


Joined: 10 Nov 2006
Posts: 22

PostPosted: Mon Nov 13, 2006 4:23 pm   
 
Thank you for the help. Your script did the trick. Below is the finished code for anyone who wants to do something similar.
Code:
#NOOP %maplocked( 0)
#CALL %roomcom(,"")
#NOOP %maplocked( 1)
Reply with quote
Syberchick
Newbie


Joined: 22 Jun 2010
Posts: 2
Location: WV

PostPosted: Sun Jul 11, 2010 11:02 pm   
 
myrison - one small change in your code.

%roomcom should be %roomcol

Otherwise, this script works well for CMUD. I had a color script set up before, but it didn't work quite right. Thanks for the improvement.
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