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
Phlux
Beginner


Joined: 26 Sep 2005
Posts: 14

PostPosted: 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?
Reply with quote
Palek
Wanderer


Joined: 28 Sep 2005
Posts: 55

PostPosted: 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
Reply with quote
Phlux
Beginner


Joined: 26 Sep 2005
Posts: 14

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
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