|
roxy Beginner
Joined: 16 Oct 2001 Posts: 22
|
Posted: Sat Feb 23, 2002 3:22 pm
zMUD mapper |
Okay, im having a lot of trouble with the zMUD mapper at the moment. Im trying to map a city so that its name is stored, and the directions come out properly, following is a sample of the mud output:
/{main directory}/{domain}/{file} ({co-ordinates})
This corridor is thin and long. There are some uselful things about, but ill skip them now as this is just a sample.
There are three obvious exits: south, southwest and southeast.
I want the name of the room to be the directory (i get this as i am a wizard )and as i said the directions to come out properly, i do not want to store the room description.
Does anyone know how i can do this?
Love Roxy.
P.S is it possible to change the color of a room (on the map) using a trigger? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Feb 23, 2002 3:43 pm |
1)
I want the name of the room to be the directory (i get this as i am a wizard )and as i
/{main directory}/{domain}/{file} ({co-ordinates})
#TAG would work here.. so you could think along the lines of:
/{main directory}/{domain}/{file} ({x?/y?/z?})
#TRIGGER {~/(%*)~/(%*)~/(%*) ~((%d)~/(%d)~/(%d)~)} {#TAG name {%concat("/",%1,"/",%2,"/",%3," (",%4,"/",%5,"/",%6,")")}}
Can't remember if LPC has spaces or not in the domain. If it doesn't %x would be better than %*
quote:
TAG
Syntax: #TAG line-kind [parameters]
..
2)
said the directions to come out properly, i do not want to store the room description.
There are three obvious exits: south, southwest and southeast.
#TAG would work here. I am not sure if you need to grab
the exits and replace the commas to |
So maybe something like:
#TRIGGER {There are %w obvious exits: (%*).} {#VAR v_Exits %replace(%replace("%1",", ","|")," and ","|");#TAG exit {@v_Exits}}
quote:
TAG
Syntax: #TAG line-kind [parameters]
..
3)
P.S is it possible to change the color of a room (on the map) using a trigger?
Changes the current room you are in to red:
#NOOP %roomcol(%roomname(),$FF0000)
quote:
roomname
Syntax: %roomname( room, [s])
Return or set the name of the room to string s
..
roomcol
Syntax: %roomcol( room, [color])
Return or set the color of a room. The Color can be a string like "red", "blue", etc. Or it can be an RGB value in the format $RRGGBB where each value is a hexadecimal value. For example, $FF0000 sets the color to all red..
Half baked so beware of syntax
Been up all night waiting for a link dead travelling partner to drop unconscious or
my assist be granted he forced logged out :P
TonDiening
Beta Upgrading to 6.26 |
|
|
|
roxy Beginner
Joined: 16 Oct 2001 Posts: 22
|
Posted: Sat Feb 23, 2002 7:19 pm |
Thanks for your reply, but now i have another problem the #TAG command doesnt seem to work, or doesnt do anything, one of the two , Im using v6.16 if that make any difference?
Also do i have to '#make' the room first?
Love ang hugs for replying,
Roxy
Roxy Bee |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Feb 23, 2002 8:39 pm |
After you create triggers that use the #TAG command, you need to reconfigure the mapper to have it work.
Kjata |
|
|
|
roxy Beginner
Joined: 16 Oct 2001 Posts: 22
|
Posted: Sat Feb 23, 2002 9:29 pm |
Ah, thank you all
Love and hugs,
Roxy Bee |
|
|
|
|
|
|
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
|
|