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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Ooga
Newbie


Joined: 16 Jul 2012
Posts: 3

PostPosted: Tue Jul 17, 2012 9:49 am   

Map room border properties
 
Is it possible to change the color and width of a room's border with script, in the way that one can change it's fill color with %roomcol()?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Jul 17, 2012 2:47 pm   
 
No, unfortunately that is not possible with normal Cmud commands. It is theoretically possible if you directly access the database and modify it with %sql commands, which I strongly advise against unless you are very good with databases, very familiar with the Cmud map database, and extremely careful, or you could completely mess up your entire map. Even if you did, the changes would not show up until you closed Cmud and reopened it.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jul 17, 2012 10:25 pm   
 
You are able to change various extra things with CMud Pro that you cannot do (or should not do) with regular CMud, as Pro includes the Zmapper COM object. I believe this means you can safely change whatever is exposed by this object, but I don't think borders are part of that. I actually don't use this, though, so I can't comment on what works and what to look out for.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: Tue Jul 17, 2012 10:53 pm   
 
Exactly which functions and such does zMapper/CMUD Pro open up?
_________________
Discord server
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Jul 18, 2012 12:23 am   
 
Various COM functions of the map db object. However, the border is a new feature in Cmud as of 3.xx, reusing an old attribute of the map. I tried for a while to find a way to use the COM functions to change the border, but could not discover any way to do it. For my purposes, I ended up writing an onDisconnect script which directly modified the database with %sql, so that it would add all the borders I wanted when I closed the game.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Jul 18, 2012 3:47 pm   
 
Zmapper comes with documentation (I believe in .hlp form). I believe you can download Zmapper and open the documentation without a license. That unfortunately is the only documentation available for some of the obscure map COM features available in Cmud Pro.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: Wed Jul 18, 2012 4:44 pm   
 
I'm surprised it is not part of the general Knowledge Base.
_________________
Discord server
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Jul 18, 2012 6:19 pm   
 
So was I. I think that when Zugg dropped the idea of a new Cmapper and just incorporated the COM functions into Cmud Pro, he may have intended to document it properly at some point. But if so, it is one of several mapper-related projects that were still on hold when Zugg realized he needed to put out a public release.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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