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
jg1lbert
Wanderer


Joined: 09 Nov 2006
Posts: 55

PostPosted: 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???
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
cazador
Apprentice


Joined: 08 Dec 2005
Posts: 108

PostPosted: 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?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
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