Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Tue Feb 12, 2002 7:36 pm   

Mapping mud as Admin HELP Please
 
I am trying to map the mud as an admin so I can capture more important info.
In the example below the "Name:" is like the vnum in most muds. I still want to capture it. The next line it the actual name that the player see. I also want to capture the stuff like the markers. The rope, and skiff are other objects in the room. Any help please.
500/500h 80/80m 80/80e> look

Name: citycenter@courtland
City Center

You stand amidst the hustle and bustle of the city of Courtland.
The two primary city streets meet here: Kings Way heading north and
south and Main Street travelling east and west. Throngs of people
jostle you as they go about their daily business. The clatter of
horses' hooves fill the air as horse drawn carriages and mounted
riders head down the busy streets. Though the streets are made of
cobblestone, the air is still dusty from the traffic. Standing in
the middle of the intersection, a beautiful white fountain rises
from the street. A large stone statue of a former king adorns the
center and the water trickles down the fountain at its feet.
[MARKER] fountain
[MARKER] bulletin
The scapegoat is here, ready to take a beating.
Garrin watches you with an gaze that seems to scrutinize your every move.
(skiff) A skiff has been placed here.
(rope) A coiled rope lies next to the fountain.

Obvious paths are:
North: Kings Way
South: Southwestern Bridge
East: East Bridge
West: Main Street


Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Wed Feb 13, 2002 3:03 pm   
 
Check out the #TAG command in your help files. I'm not sure, but vnum might be limited to integers at this time, so you might be out of luck there, but you should be able to capture the rest.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Wed Feb 13, 2002 8:41 pm   
 
I need a way to capture the "Name: " stuff a certain way. I looked at the tag command, but I didn't see a way to change the info the way I want it. What I want to do is concat the "Name:" to the actual name so that is shows something like this:
City Center-citycenter@courtland
because I know the VNUM is integer and I can't put the citycenter@courtland into the vnum section.
Then, like the markers, I want to put into the note section, and I didn't see how to do tha with the tag command.

Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 14, 2002 12:47 am   
 
To make zMUD put both, Name: and room name, under the Room Name in the map, you can use this trigger:
#TRIGGER {Name: (%w)~@(%w)$(*)} {#TAG name {%concat("%3", "-", "%1", "@", "%2")}}

To put the markers in the note section, you can use this trigger, which you may turn off if you are not mapping:
#TRIGGER {~[MARKER~] (%w)} {#NOMAP;#NOOP %roomnote(%roomnum(), %concat(%roomnote(%roomnum()), "[MARKER] ", "%1", %cr))}

Remember that after creating a trigger that uses #TAG you must re-configure.

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Thu Feb 14, 2002 5:59 pm   
 
The first trigger with the concat didn't work
I am using 6.26a, but I think there maybe a bug in the pattern matching. If you test the trigger it says it doesn't match.

But the second trigger worked GREAT!
Any other ideas?

Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 14, 2002 8:52 pm   
 
The Test tab of the trigger will not work because you can only enter one line to test the trigger there, but the pattern expects two lines. I, however, tried the trigger, and it worked fine. Check to make sure that after the trigger is created, the pattern appears exactly as I typed it above.

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Thu Feb 14, 2002 9:40 pm   
 
Kjata
I have tried starting over from scratch..
The first room I map shows the following in the name tag:
%concat("Courtland/Shenin Road Junction", "-", "junction", "@", "shenin")
Then when I goto the next room is doesn't do anything.
Not sure what else to do
Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 14, 2002 10:58 pm   
 
Try this, then:
#TRIGGER {Name: (%w)~@(%w)$(*)} {#VAR RoomName {%concat("%3", "-", "%1", "@", "%2")};#TAG name @RoomName}

Remember to reconfigure the mapper.

Kjata
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Fri Feb 15, 2002 3:41 pm   
 
That worked Kjata. THANKS!!! You are great!!
[edited later] Well, It mapped the first room great then it quit working. I guess I am just going to have to wait until Zugg completes the plugin mapper program.
Thanks for the help anyway.


Darmir
"A gentle answer turns way wrath,
but a harsh word stirs up anger"
Proverbs 15:1
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net