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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
vrassoc
Newbie


Joined: 18 Apr 2005
Posts: 3

PostPosted: Mon Apr 18, 2005 3:34 pm   

%roomnote problem
 
I have a couple of triggers that populate a string variable with values that I want to store in the notes of the current room. Everything works fine, except the %roomnote function. I know that the variable is populated, because I can #ECHO its value and it's correct.

However, I have tried #NOOP %roomnote(,@varname) and #CALL %roomnote(,@varname) and also tried both with %roomnum() as the first parameter. None of them store the value in the notes for the room.

Please help. I am using V7.05 registered.
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Mon Apr 18, 2005 4:38 pm   
 
Just tested this and here are some interesting (possibly related) results.

I show that what you are saying is correct, mostly. Notes do not seem to populate to the room *unless* you have the mapper in mapping mode. I did most of my testing in follow mode and it will ignore my request to change the room note in this case...
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Apr 18, 2005 6:31 pm   
 
When the mapper is in Follow mode, it is in read-only mode. You can normally only make changes to the map data when in Map mode. This is true for all fields, not just the note field. The zMapper COM scripting interface has some other methods for modifying map data when in Follow mode.
Reply with quote
vrassoc
Newbie


Joined: 18 Apr 2005
Posts: 3

PostPosted: Mon Apr 18, 2005 8:45 pm   
 
Thanks for that, in map mode the problem is solved. I was intrigued by Zugg's mention of zMapper though, so I've downloaded the trial and I have it running, using my existing map database. All the COM examples that I have come across on the forums use ADO to update the database, but I think I would rather use the zMUDRoom object. I can't seem to get the connection to the mapper going though, mainly because I cannot figure out what the class string for zMapper is, I think.

Help again, please? An example of how to create a COM link to zMapper and then I assume using %comset to set the property of the zMUDRoom object, would be most welcome.

Thanks again for the help.
Reply with quote
vrassoc
Newbie


Joined: 18 Apr 2005
Posts: 3

PostPosted: Mon Apr 18, 2005 8:50 pm   
 
I seem to have answered my own question through trial and error:

zMapper.Map is the class string to create a COM link to zMapper, for anyone else that might be wondering.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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