|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Fri Feb 27, 2004 8:33 pm
modiying the mapper. |
Ok, here is a hard one, I'm not sure is zmud is capable of handling this or not. But i figured I would post it and see what people think.
Currently I have the mapper configured and working great on my mud except from one aspect. Right now I map everything on a flat surface, no up and down unless the mud actually has a up or down exit.
The issue occurs when I'm travelling through underground caves.
The mud output is like this:
An extremely small tunnel
You are deep underground in a extremely small rocky tunnel. The ceiling here is extremely high. The air is very moist here. Glowing moss grows everywhere. It lights up this room bright green. It is blindingly bright here.
[-EXITS-] north, east, southeast, and west.
> north
You think you have descended some
An extremely small tunnel
You are deep underground in a extremely small rocky tunnel. The ceiling here is extremely high. The air is very moist here. Glowing moss grows everywhere. It lights up this room bright green. It is blindingly bright here.
[-EXITS-] north, east, southeast, and west.
Notice the "You think you have descended some" message prior to the room name. Currently I just #nomap this line. But in reality, i did not really just move north, I also moved down.
Anybody have any ideas on being able to modify the mapper to adjust the room to be north and down, instead of the room being created northward only. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Feb 29, 2004 12:36 am |
First flag it, then either use zMapper to move the room down onroomcreate, or pop up the room move dialog.
|
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Sun Feb 29, 2004 1:11 am |
what do you mean by flag it?
And how do you pop up the room move dialog?
or how would I move the room down via scripting.
I think that your suggesting is to trigger on
"You think you have descended some", creating a onroomcreate script that will move the room down.
Any idea how to move it down? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Feb 29, 2004 1:51 am |
Flag it I i mean use a variable. Why create and destroy an alias all the time.
#TR {^You think you have ({de|a})scended some$} {#IF ("%1"="de") {MoveExtraDir="d"} {MoveExtraDir="u"}}
Now the two options pop up dialog...
#AL onroomcreate {#IF (@MoveExtraDir) {MoveExtraDir="";#MENU {Mapper|Edit|Move}}}
or zMapper..
#AL onroomcreate {#IF (@MoveExtraDir) {Room=%map.CurRoom;#IF (@MoveExtraDir="d") {#ADD Room.Z 1} {#ADD Room.Z -1};#CALL @Room.Update;MoveExtraDir=""}}
Edit: forgot to clear flag variable in zMapper option. |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Sun Feb 29, 2004 2:07 am |
awsome, thanks for the help!
|
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Mar 01, 2004 12:58 am |
hmm, I cannot get this to work.
using
#AL onroomcreate {#IF (@MoveExtraDir) {Room=%map.CurRoom;#IF (@MoveExtraDir="d") {#ADD Room.Z 1} {#ADD Room.Z -1};#CALL @Room.Update;MoveExtraDir=""}}
I tried looking for some info on %map, but nothing was in the help file and its not even in the function wizard. When I type
#3 #sh %map.CurRoom
I get a different value each time. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Mar 01, 2004 5:29 am |
I can't seem to get this to work either. Looks like there is a problem in the COM interface.
|
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Mar 01, 2004 3:51 pm |
Hmm,
is this something we should bring up to Zugg in the beta forum? If so, would you mind reporting it Vijilante, I don't know anything about COM in zmud.
In the meantime, is there any way using zmud functions to move a room position down. I know there are functions for changing the room color and stuff, but I did not see any for moving the room itself. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Mar 02, 2004 12:28 am |
Only way to move it is through the popup dialog, it is almost not even worth bothering.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Mar 03, 2004 8:10 pm |
I added the commands "northup", "northdown", "southup", "southdown" etc to zMUD a few versions ago. I can't think of anything easy off the top of my head, but maybe those new directions can somehow be used to help.
The documentation for %map is in the zMapper help file. Those commands require zMapper to be installed and enabled as a plugin for zMUD. |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Wed Mar 03, 2004 10:35 pm |
I do have zmapper loaded as a plugin. I wonder if something is wrong with the com interface though. Does Vijilante's alias appear correct?
#AL onroomcreate {#IF (@MoveExtraDir) {Room=%map.CurRoom;#IF (@MoveExtraDir="d") {#ADD Room.Z 1} {#ADD Room.Z -1};#CALL @Room.Update;MoveExtraDir=""}}
I'll have to think on the northup, northdown directions. Perhaps I can use a #nodir on the message and add northdown to the queue. The problem is that I don't get the message that I'm moving down until after I type the direction. I'll play with it tonight,this might work but its going to take some messing around.
Using the alias Vijilante posted would be a lot easier though. |
|
|
|
|
|