 |
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sat Nov 02, 2002 2:11 am
zMud maps and database problem |
Ok..I have a zmud map of an area atm underdark and I now want to create
a mob database that contains mobname, area and room name, HOWEVER,
to actually do this properly i need to store the room number that
the zmud mapper gives to a room instead of its name so that
duplicate room names are not a problem. So basically my question is this
If the map is on follow mode is there a way i can retrieve the value
of the room number I am currently at and use that number to store a mob
in my database?
Any help would be GREATLY appreciated!
thanks all |
|
|
 |
Castaway GURU

Joined: 10 Oct 2000 Posts: 793 Location: Swindon, England
|
Posted: Sat Nov 02, 2002 9:46 am |
Yes.
%roomnum()
(The room functions always give information about the current room, when you dont give an argument)
Lady C.
*wondering why it doesn't say that in the help* |
|
|
 |
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sun Nov 03, 2002 5:49 am |
OK, thanks for that it works perfectly!! Now, I have another question if u dont mind.
Ok, say i have a map open and i set my current postion, I then want to be able to generate the speedwalk to another room but NOT run it, but be able to store it as a string variable that i can send to someone...can this be done and if so how?
Your help is greatly appreciated! |
|
|
 |
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sun Nov 03, 2002 6:35 am |
Well, I have actually sorta had some sort of luck doing what i want to do with the %walk() function, however it still requires a person to get the room num first, but that's no big deal...my big problem now is that i'm storing the speedwalk generated in a variable, but when i send this variable to the mud it does not break up the commands when there is a ; in it, can someone plz help me with that?
Thanks |
|
|
 |
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sun Nov 03, 2002 7:29 am |
Ok, I seem to ask my questions to soon! I found out how to do it using the #exec command so...now my next question! hehe
In the mapper when u double click on a room it does the sw to the room, is it possible to change what the double click does so that instead of executing a sw it calls an alias or something? and if so..how can i retrieve the roomnum of the room clicked on?
thanks |
|
|
 |
Castaway GURU

Joined: 10 Oct 2000 Posts: 793 Location: Swindon, England
|
Posted: Sun Nov 03, 2002 8:44 am |
You've been busy! :)
No, you can't do that as far as I'm aware. The nearest you can get is to write a room script, which can be called by clicking the right mouse-button on the room and choosing 'Execute room script'.
Lady C. |
|
|
 |
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sun Nov 03, 2002 8:45 am |
ok but in that roomscript can i get the roomnum that it corresponds to?
|
|
|
 |
|
|