 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Thu Jan 02, 2003 8:46 am
Zmud Mapper question |
using the mapper that comes w/ zmud, I was wondering if it is possible to change 1 room color type to another. EG: A friend makes all his general stores orange, is it possible for me to change all orange color rooms into green color rooms?
and is it possible to remove all room descriptions from a map in one,swift movement, instead of sitting there deleting description after description for 800+ rooms :)
Laugh and grow fat |
|
|
|
 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Thu Jan 02, 2003 8:50 am |
"change 1 room color type to another"
sorry, I should've been clear on that. is there like an option that instantly changes 1 color type into another. instead of selecting room by room by room ~
Laugh and grow fat |
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jan 02, 2003 12:18 pm |
There are no option for that, but a scripts will take care of it.
#ALIAS changeroomcolors {#NOOP %maplocked(0);#VAR prevroommode %roommode();#NOOP %roommode(1);#LOOP %numrooms() {#IF (%roomcol(%mapvnum(%i)) = %1) {#NOOP %roomcol(%mapvnum(%i), %2)}};#NOOP %roommode(@prevroommode);#UNVAR prevroommode;#GAG;#SAY Rooms with color %1 changed to color %2.}
#ALIAS removedescriptions {#NOOP %maplocked(0);#VAR prevroommode %roommode();#NOOP %roommode(1);#LOOP %numrooms() {#NOOP %roomdesc(%mapvnum(%i), "")};#NOOP %roommode(@prevroommode);#UNVAR prevroommode;#GAG;#SAY Room descriptions deleted.}
Usage:
changeroomcolors prevColor newColor
removedescriptions
prevColor is the color code of the rooms you want to change to newColor. newColor is the color code that you want the rooms to have. To find out the color code of a particular color do the following:
1. Open the map
2. Make sure you are in Map Mode
3. Select a room
4. Go into its properties and change the color to the color you want to know the color code
5. Make note of the ID of that room displayed in the properties.
6. Find out in what mode you are using your mapper functions by entering this into zMUD:
#SH %roommode()
7. If you are not in mode 1, enter:
#SH %roommode(1)
8. Enter the following command into zMUD:
#SH %roomcol(ID)
9. Return the mapper to the previous mode using the command in step 7.
Also, be careful with removedescriptions because once it deletes all the room descriptions, there is no way of getting them back. I suggest you make a backup of your map before using it.
Kjata |
|
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Jan 02, 2003 5:37 pm |
If your running the latest version of zmud, you could open the map database using access and very easily wipe out all description fields. Although this may require a little knowledge of Access.
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.40
Zmapper Version 1.14 |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Thu Jan 02, 2003 7:53 pm |
Don't mean to over simplify things, however it seems there is an easier way.
With your map open, click once on the room you want to change color press ctrl-p ,click tab: appearance.There is a box next to room color, click it once and a color menue will come up, choose the color you want hit ok and the mapper will save automatticlly.
You have to do this for every room you wish to change the color but it does let you customise it the way you want.
megamog75 |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Thu Jan 02, 2003 9:20 pm |
Hey thanks i had fun with this. I created a macro to help you open the map and goto properties. but unfortunatly i have not yet figured out how to make it hit the appearance tab or the room color tab either so you still have to do that manually.
#CLASS {MAPCOLOR}
#KEY F12 {#MENU {WINDOWS|AUTOMAPPER};#WA 2000;#MENU {AUTOMAPPER|edit|properties}}
#CLASS 0
Just copy this and past it into the command line and it will do the rest, hit f12 to work it,the choose appearance then room color etc....
megamog75 |
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 03, 2003 12:27 am |
Yes, but Tubby doesn't want to change room by room. That is why the scripts goes through all of the rooms of one specific color and changes it to another.
Kjata |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Fri Jan 03, 2003 3:48 am |
Yes Kjata, you are right in my effort to help I missed that. But I hope everyone liked the macro I made.
megamog75 |
|
|
|
 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Fri Jan 03, 2003 10:49 am |
Kjata, after doing step 7 to get the room mode all that shows up is "%roommode()", what have I done wrong? also with removedescrptions it says descriptions are deleted, but they arent, rather new to this zmud scripting thing, any suggestions?
Laugh and grow fat |
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 03, 2003 12:26 pm |
Are you using version 6.40?
Kjata |
|
|
|
 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Fri Jan 03, 2003 4:19 pm |
I tried 6.40, its a little... *cries* slow on my PC. the mapper runs through a loading bar to delete rooms, im happy with 6.26 until I get a new PC :)
Laugh and grow fat |
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 03, 2003 4:25 pm |
Should have said so from the start. The script is made for 6.40 and won't work in 6.26. Unless the person specifies it, it is assumed that they are using the latest version.
The reason for the mapper being slow in 6.40 is most likely that you don't have the correct MDAC files. Unless you have Windows 95, you shoudl install MDAC 2.5 and then upgrade to 2.7. After updating MDAC, you need to reconvert your 6.26 map files. This is just a basic guideline, more steps may be necessary too.
Also, since 6.26 is a beta version, you won't be able to use it forever, it will expire sometime in the future, so you should try to make 6.40 work for you. Since I only have 6.40 now, I can't write and test a script for the old mapper.
Kjata |
|
|
|
 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Fri Jan 03, 2003 5:42 pm |
Will do, thanks mum
Laugh and grow fat |
|
|
|
 |
Tubby Newbie
Joined: 02 Jul 2002 Posts: 8
|
Posted: Fri Jan 03, 2003 6:45 pm |
One more question, when my maps were converted to 6.40 are they still compatible with older versions of zMUD? or is it strictly zmud 6.40 and beyond? :)
Laugh and grow fat |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Fri Jan 03, 2003 7:27 pm |
Once the scripts are converted the new scrit can not be reqad by an older virsion, But as with any upgrade you should always make a back up version.
megamog75 |
|
|
|
 |
|
|
|