|
Phlux Beginner
Joined: 26 Sep 2005 Posts: 14
|
Posted: Thu Sep 29, 2005 2:59 pm
Setting short names for every map location |
I'm attempting to set a short name for every map location. The short name is simply going to be the same as its room name.
This isn't my code, it was given to me by another player and I'm trying to get it to execute. It seems simple enough, but none of the roomid values are being set.
It just loops through all of the room locations, 1 to 1282 and sets roomID equal to roomname.
There is an alias I can type that executes this script:
#VAR room 1
#LOOP 1282 {
%roomid( @room, %roomname( @room))
#ADD room 1
}
#SAY Finished!!!
I even tried just doing
%roomid(1150,%roomname(1150)) and I get nothing.
Any ideas? |
|
|
|
Palek Wanderer
Joined: 28 Sep 2005 Posts: 55
|
Posted: Thu Sep 29, 2005 5:11 pm |
Phlux,
Try removing any Labels you have on the open map. I had the same issue and for some reason after removing the label and running the alias again it worked fine.
Palek |
|
|
|
Phlux Beginner
Joined: 26 Sep 2005 Posts: 14
|
Posted: Thu Sep 29, 2005 7:48 pm |
My map didn't have any labels on it that I can find, other than automatically generated "to zone" labels. So rather than attempting a programmatic solution, I just cracked open the map database in MS Access and moved copied the Name column into the IDName column and that took care of it.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Sep 29, 2005 9:06 pm |
#VAR MapStatus {%concat(%maplocked(),"|",%mapfilter())}
#NOOP %maplocked(0) %mapfilter("")
#LOOP %numrooms {
#NOOP %roomid(%mapvnum(%i),%roomname(%mapvnum(%i))
}
#NOOP %maplocked(%item(@MapStatus,1)) %mapfilter(%item(@MapStatus,2))
#UNVAR MapStatus
That should do it. Untested of course. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|