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
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Tue Feb 19, 2002 7:40 pm   

Numbering Rooms in the mapper
 
After editing my maps time and time again,the room numbers have become displaced and inconsistant.Can anyone think of a good way to renumber all the rooms in a given zone(without doing it manually)so that i dont go from #148 to like #157? I dont care if its renumber from first room created to last, or from left to right, or whatever...just as long as it goes from 1 to whatever without any skips.Thanks
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 19, 2002 11:53 pm   
 
Try this:
#LOOP 1,%numrooms() {#NOOP %roomnum(%mapvnum(%i), %i - 1)}

Kjata
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Feb 20, 2002 5:48 am   
 
If you have any numbers duplicated, then you will have to run that loop more then once. If the mapper has been doing all the numbering for you then there won't be any duplicates.
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Feb 20, 2002 9:28 am   
 
Check out http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=1282&FORUM_ID=29&CAT_ID=5&Topic_Title=Renumber+Rooms&Forum_Title=Finished+MUD+Scripts

for a script that will work to renumber if you have duplicates. It assumes you have less than 30,000 rooms in the current zone, however.

 - Charbal
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