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

Post new topic  Reply to topic     Home » Forums » zMapper Discussion
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Wed Jan 12, 2005 11:59 am   

How to change KindID property?
 
I can view the KindID value with the following script:

#call %map.curroom.exitdir(4).kindid

The value output is usually 0, i would like to change this value to 2.
How do i do that?

I've tryed the following:
#call %map.curroom.exitdir(4).kindid=2
#exec %map.curroom.exitdir(4).kindid=2

Neither of those work.
The zMapper helpfile says that the KindId isn't read-only, so im assuming this is possible.

So how do i change the value?
_________________
That which does not kill us, makes us stronger.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Jan 13, 2005 10:04 am   
 
#VAR TempCom {%map.curroom.exitdir(4)}
#VAR TempCom.KindID {2}
#CALL @TempCom.Save
#VAR TempCom {}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jan 13, 2005 5:55 pm   
 
Vijilante is correct. It's always good to keep in mind that the syntax:
var=value
is a shortcut syntax that only works as it's own line in a script. The correct "low level" method for setting variables is always with the #VAR command.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMapper 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 on Wolfpaw.net