|
ZealousAnonymous Wanderer
Joined: 06 Jan 2006 Posts: 70
|
Posted: Thu May 03, 2007 6:25 pm
zMUD script color changing? |
Just trying to figure something out here.
I want to lets say run a script where like
#if (%roomzone(%i)=100)
I want to create a red outline around the room but keep the original colour the same?
Not sure how to do the artistic zMapper changes. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu May 03, 2007 6:38 pm |
You can't really do this very easily. zMapper allows you to define new room shapes/icons. But there is no way to "merge" a new shape (like a red outline) with an existing shape. All you could do is create a new room type with a shape with a red outline, and then use the COM zMapper scripting to change the current room to the new type.
For example, if you create a new room kind in zMapper with the red outline shape, and this is kind #8 (for example), then you could script:
%map.CurRoom.KindID = 8
to change the kind index of the current room.
Take a look at the zMapper help file in the section "Using zMapper with zMUD" for reference details on the COM scripting for zMapper. |
|
|
|
ZealousAnonymous Wanderer
Joined: 06 Jan 2006 Posts: 70
|
Posted: Fri May 04, 2007 6:11 pm |
Thanks, Zugg!
|
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Sat May 05, 2007 12:36 am |
Or just use %roomkind(,8) from zMUD (or CMUD) with the zMapper plugin enabled.
|
|
|
|
|
|