|
jg1lbert Wanderer
Joined: 09 Nov 2006 Posts: 55
|
Posted: Thu Dec 04, 2008 5:14 pm
small mapper question |
Just to save time, does anyone know a command line entry to REMOVE a door on the map without having to go into properties and undo the button?
Wishing there was a #nodoor <DIR>...
Or perhaps there is a %exittype normal??? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Dec 04, 2008 5:48 pm |
You can rclick the link and uncheck the door box. I don't think there's a way to do this via script in the current mapper. With zMapper, maybe.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Dec 04, 2008 5:56 pm |
You can do this programmatically with CMUDPro or CMUD if you have zMapper installed. You would then use the COM Interface and the zMUDLink Object.
|
|
_________________ Asati di tempari! |
|
|
|
cazador Apprentice
Joined: 08 Dec 2005 Posts: 108
|
Posted: Thu Dec 04, 2008 7:17 pm |
Tech wrote: |
You can do this programmatically with CMUDPro or CMUD if you have zMapper installed. You would then use the COM Interface and the zMUDLink Object. |
Can you give me example code for that? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 22, 2008 4:43 pm |
Ok... here's the code that should work.... but unfortunately there seems to be some issues with accessing the zMUDLinkObject via COM (I've already submitted the bug reports to Zugg). At least for getting it. You may have more luck than I did.
Here's the sample code
Code: |
#show %zmap is yes
#VAR zMapper %map
#var room @zMapper.GetRoom(1)
#echo Current Room ID:@zMapper.CurRoomID
#echo Current Room -- KindID:@room.KindID Name:@room.Name NumLinks:@room.NumLinks
//#var link @room.LinkNum(1)
#VAR link %comget( Room , "LinkNum", "1")
//#echo @link @link.ToID @link.ID
//#echo %comget( Link, "ToID") |
If you uncomment the last two echo commands you'll get an error. |
|
_________________ Asati di tempari! |
|
|
|
|
|