|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Mon Dec 12, 2005 1:09 pm
Renumber room working? |
Hi I found this script to renumber my rooms, however nothing seems to move when I execute it. Is this script still working?
----------
#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%numrooms())}
#loop 1,%numrooms()-1 {#noop %roomnum(%numrooms(),%i)}
---------- |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Dec 13, 2005 1:12 am |
What mode is your map in?
|
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Dec 13, 2005 1:37 am |
will running this script cause all my favorites i have marked off on my map to be inaccurate?
|
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Tue Dec 13, 2005 3:21 am |
I'm in edit mode.
I realize something is actually moving, but it doesn't stop at all.
it just keeps going. and if I stop it and restart map..
The objid is not changed but the refnumber is all set to the same number "4515".
Is there a mistake in the script?
#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%numrooms())}
Thank you. |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Tue Dec 13, 2005 3:55 am |
This is the correct one... I don't know why the one i cut from the 2002 forum was wrong.
#LOOP 1,%numrooms() {#NOOP %roomnum(%mapvnum(%i), %i - 1)} |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Dec 13, 2005 5:56 am |
as i thought renumbering rooms totally screws up your favorites list, anyway to renumber and keep favorites?
|
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Tue Dec 13, 2005 4:41 pm |
Been trying, but cant get this is even run.
Can i get the script to do this? |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Dec 13, 2005 7:09 pm |
#loop 1,%numrooms() {#noop %roomnum(%mapvnum(%i),%i)}
i did it in map mode |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Tue Dec 13, 2005 8:44 pm |
kewl, checking it now.
Tho now that I think of it, running it on a 500 room area on a P2 333mhz computer isn't the smartest thing....been running for an hour...least i THINK it's been running...
Did a find for all rooms in the area and the scrollbar keeps jumping up and down...
Thank god this is a test map database :-)
EDIT: Well, nope, not a change. Am i supposed to do that call mapfilter thing 1st? (that's the reason I asked for a script and not a command)
EDIT#2: K, ran it with the call mapfilter on a 48 room area and it worked perfectly. Are there REASONS why it might not work on an area? like if a room is called Vitae's it wont work but would on Vitaes ? |
|
|
|
|
|