|
Nonwyn Newbie
Joined: 17 Jan 2005 Posts: 4
|
Posted: Mon Jan 17, 2005 9:13 pm
Automapper auto-room labeling from trigger or alias |
I looked through the commands and the functions, but I couldnt find anything that would allow me to auto create and post a room label from a trigger or alias... Is there a way to do this? It didnt look like room label properties were accessible outside of the room properties screens, thanks.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Jan 18, 2005 10:11 am |
This can be done with the extended scripting capabilities of zMapper.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Nonwyn Newbie
Joined: 17 Jan 2005 Posts: 4
|
Posted: Tue Jan 18, 2005 10:36 pm |
Hmm, so anyway that won't cost an extra $20?
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jan 19, 2005 11:57 pm |
What exactly do you mean by room label?
Is it the Link Label that you set in the Exits tab of the Room Properties? Or is it a label you can draw near the room by right-clicking on it and selecting Label from the context menu? |
|
_________________ Kjata |
|
|
|
Nonwyn Newbie
Joined: 17 Jan 2005 Posts: 4
|
Posted: Thu Jan 20, 2005 12:17 am |
The label that you can draw in on the map itself. (also used as the short name for the room I think)
The one that can be centered, east, south, west etc...
Id like to be able to set a centered label using a trigger or an alias ( or a triggered alias as it were)
basically when Im mapping I sometimes drop coins to mark where Ive been, I have a loop that will drop however many coins I want, which will show up as 1 coin, 2 coins, 3 coins, etc...
Within that loop, or right after I would like it to automatically label the room with the amount of coins I dropped, saving me the time of clicking on the room and labeling it... |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jan 20, 2005 1:39 am |
You can use this alias to modify the label of a room:
#ALIAS setlabel {#VAR Conn %comcreate( "ADODB.Connection");#CALL @Conn.Open( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=untitled.mdb");#CALL @Conn.Execute( "UPDATE ObjectTbl SET IDName = '%-3', LabelDir = %2 WHERE ObjId = %1");#VAR Conn ""}
You need to change the untitled.mdb in the alias to the path of your map DB. The syntax for the alias is:
setlabel roomKey labelDir labelText
The possible values for labelDir are:
0 = N
1 = NE
2 = E
3 = SE
4 = S
5 = SW
6 = W
7 = NW
10 = MIDDLE
11 = NONE
Also, once you change the label of a room, you will not see the change until the mapper refreshes. |
|
_________________ Kjata |
|
|
|
Nonwyn Newbie
Joined: 17 Jan 2005 Posts: 4
|
Posted: Tue Jan 25, 2005 6:41 pm |
Thanks!
|
|
|
|
|
|