Register to post in forums, or Log in to your existing account
 

Post new topic  Reply to topic     Home » Forums » zMapper Discussion
ZealousAnonymous
Wanderer


Joined: 06 Jan 2006
Posts: 70

PostPosted: 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.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23377
Location: Colorado, USA

PostPosted: 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.
Reply with quote
ZealousAnonymous
Wanderer


Joined: 06 Jan 2006
Posts: 70

PostPosted: Fri May 04, 2007 6:11 pm   
 
Thanks, Zugg!
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1241

PostPosted: Sat May 05, 2007 12:36 am   
 
Or just use %roomkind(,8) from zMUD (or CMUD) with the zMapper plugin enabled.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMapper 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 on Wolfpaw.net