 |
Ooga Newbie
Joined: 16 Jul 2012 Posts: 3
|
Posted: 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()?
|
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Tue Jul 17, 2012 10:53 pm |
Exactly which functions and such does zMapper/CMUD Pro open up?
|
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Wed Jul 18, 2012 4:44 pm |
I'm surprised it is not part of the general Knowledge Base.
|
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
 |
|
|
|