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
knuffel
Wanderer


Joined: 12 Jul 2002
Posts: 73

PostPosted: Sat Jul 20, 2002 2:15 pm   

mapping while following your leader
 
Hi,

This can't be hard for you guys but I don't seem to find the right solution.

When I walk around alone i move on the map and can create maps. However when I join in a team I follow my leader and thus I do not send directions.

I would love to get two things done ...

1. The map follows my position when it is already mapped.

2. I would love to be able to get new areas mapped too when I'm travelling along.

I guess I will need to set up some variables like leader and if the <leader> goes north tell the mapper I actually went north but have not I direct clue on how to achive this in a good way ...

Any help really appreciated !

Greetzz
Knuff
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Jul 20, 2002 2:22 pm   
 
You'll need something like:

#TRIGGER {^%x leaves (%w)$You follow %x.} {#MOVE %1}

You force the mapper to move the direction that the leader went. I'd try
and see if I could grab the mud output of the leader leaving and you following
so it wouldn't try and map if you were sitting etc.

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
knuffel
Wanderer


Joined: 12 Jul 2002
Posts: 73

PostPosted: Sat Jul 20, 2002 2:47 pm   
 
Hi Ton,

Thanks already for the fast reply.

I'm not that good yet in creating triggers with variables but based on what you said and what I have as possibilities within the MUD (I don't see me moving - I just end up in the same room) I should create a variable that is based on joining my teamleader.

There I get from the MUD

Your leader is now TheNameINeed

Then further on in the MUD you see something as this ...

MMMM leaves northwest.
Square southend west.
There are five obvious exits: north, west, east, northwest and southeast.
MMMM.
MMMM leaves northwest.
Square corner south west.
There are six obvious exits: north, south, west, east, northwest and southeast.
MMMM.
MMMM leaves northwest.
Square westend south.
There are six obvious exits: north, south, west, east, northeast and southeast.
MMMM.

Where MMMM is the team leader and running around in brief display mode.

How should I combine this ?
In theory it looks easy to me but not that sure if I manage.

Thanks
Knuff
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jul 20, 2002 3:25 pm   
 
You don't see your own movement but you can use the new-room description instead to be sure you're actually following. This assumes the exit line will always be the second line when entering a new room.
#TR {Your leader is now (%w)} {#VAR leader %1}
#TR {^@leader leaves (%w)$*$There are %w obvious} {#MOVE %1}

LightBulb
Senior Member
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Sun Jul 21, 2002 8:55 pm   
 
#MOVE %1

is not working for me for some reason.

The trigger is grabbing the direction correctly when I tested it with group tell, I'm going %1.

But when the leader begins to move the mapper doesn't follow.

#trig {^You follow %1 %2.} {#move %1}

Any ideas?



Thank you for everything, it's always appreciated.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jul 21, 2002 11:37 pm   
 
Don't use %1..%n in your trigger pattern. It may work sometimes, but you can never be sure what it will do. Try instead:
#TRIGGER {^You follow %w (%w).} {#MOVE %1}

Kjata
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Tue Jul 23, 2002 12:15 am   
 
How does it know which is %1?

You follow mark south.

{You follow %w (%w).}



Thank you for everything, it's always appreciated.
Reply with quote
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Tue Jul 23, 2002 1:21 am   
 
The () tell the trigger which parts of text to capture. The first (%w) will be %1, and the second will be %2, and so on. You can pick out up to 99 pieces of text, numbers, etc. that way from your trigger pattern.

Belmyrddyn
Reply with quote
N3GATIVEZER0
Newbie


Joined: 07 Dec 2002
Posts: 2

PostPosted: Sat Dec 07, 2002 5:49 pm   
 
Hey, was just wondering if there was anything I could do for this type of situation? I can't seem to get my 6.16 version of zmud to map while following

A Bridge Over a Fissure
This is about fifteen spans long and ten spans wide wooden bridge that makes it
possible to go over a fissure that opens below. The bridge hasn't suffered much
from the heat. All the trunks are still holding, never minding the heat. The
Aiel Waste is visible in the north and south.
[ obvious exits: N S ]
There are some tracks of a ridden mount leaving north.
A glowing portal hovers here forming a gateway to another place.
A warhorse is here, stamping his feet impatiently, being ridden by you.
Ivan Funkalot is standing here, riding a warhorse.

* R HP:Healthy MV:Fresh >
Ivana leaves south riding a warhorse.
You follow Wynoa.

The Aiel Waste
The rocky Aiel Waste can be seen in all directions. There is a bridge to be
seen in the north. It is helping people to cross the fissure. There is a stone
on the ground and one can see that there's some writing on it .
[ obvious exits: N E S W ]
There are some tracks of a ridden mount leaving north.
A warhorse is here, stamping his feet impatiently, being ridden by you.
Ivana Funalot is standing here, riding a warhorse.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Dec 07, 2002 11:44 pm   
 
Since there's nothing to indicate which way your leader went (Ivana went south, but you're following Wynoa), there's no way to know what direction to send to the mapper.

In other words, you can't map if you don't know what direction you're moving. The answer is NO.

LightBulb
Senior Member
Reply with quote
N3GATIVEZER0
Newbie


Joined: 07 Dec 2002
Posts: 2

PostPosted: Sun Dec 08, 2002 12:16 am   
 
bah, sorry to confuse you ivana=wynoa, i was trying to change the names to protect the innocent..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Dec 08, 2002 9:07 am   
 
Then just modify the trigger phrases to match what your MUD uses.

#TR {^@leader leaves (%w)*$You follow @leader} {#MOVE %1}

LightBulb
Senior Member
Reply with quote
appleeater
Beginner


Joined: 05 Apr 2003
Posts: 19

PostPosted: Sun Apr 06, 2003 1:49 am   
 
Hoe about to create the room when following?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 06, 2003 2:21 am   
 
Since that was one of the original questions, just go back to the first reply!

LightBulb
Advanced Member
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