|
myrison Beginner
Joined: 10 Nov 2006 Posts: 22
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
myrison Beginner
Joined: 10 Nov 2006 Posts: 22
|
Posted: 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) |
|
|
|
|
Syberchick Newbie
Joined: 22 Jun 2010 Posts: 2 Location: WV
|
Posted: 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. |
|
|
|
|
|