|
patryn Apprentice
Joined: 26 Sep 2001 Posts: 124
|
Posted: 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. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|