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
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Wed Jan 04, 2006 8:17 pm   

Utilizing the Achaea "observe" command for the aut
 
In Achaea, there is a skill called "observe" that allows to you take a peak at all the rooms around you:

3921h, 3324m, 19020e, 15600w ex-observe
You pause a moment to observe the surrounding area.
To your NORTHEAST you see:
A rocky island.
You see exits leading southwest and west.

To your SOUTH you see:
Lake Muurn near a cavern.
You see exits leading north, northeast, west, northwest, and in.

To your NORTHWEST you see:
A rocky island.
A yellow egg lolls about on the ground here.
You see exits leading northeast, east, southeast, and west.

To your IN you see:
The common room of the lighthouse.
You see exits leading up, down (open door), and out.

3921h, 3324m, 19020e, 15600w x-

As it stands now, this confuses the heck out of the automapper because it doesn't see me moving, but it sees a lot of keywords for rooms and a prompt. If I could configure this properly I could greatly speed up my mapping efforts.

From what I've learned, I have a general idea of what could be done to utilize this. I could definately use some help in refining this:

(Start with "You pause a moment to observe the surrounding area.")
(For each "To your (%w) you see:") {
#step %w
#create the room from the name and exits
#step reverse_direction from %w
}
(End with prompt)

The creation of the room is what has me most hung up. I'm not sure how to get it to input the rest of the room for me or if I have to do that manually. Perhaps some kind soul will help me out here.

ReedN
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Jan 05, 2006 2:06 pm   
 
Maybe add in MAKEROOM

#MAKE direction [name] [description]

#MAKE n {Temple} {You are in the temple}

Creates a new room on the map to the north with the name "Temple".

And use %roomlink([vNum], dir, [i]) to set the exits to that room.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Jan 05, 2006 2:24 pm   
 
Oh you could do this simpler with:

(Start with "You pause a moment to observe the surrounding area.")
(For each "To your (%w) you see:") {
#MOVE %1
#create the room from the name and exits
#MOVE %reversedir(%1)
}
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Jan 09, 2006 8:37 pm   
 
I ended up getting this working. Roughly this is how it goes:

1) Put myself into observeActive mode when I see the key phrase: "You pause a moment to observe the surrounding area."
2) Detect the direction I'm observing and set it to a variable
3) Detect the room name and set it to a variable
4) Detect the exits and set them to a variable
5) Set current vnum to a variable
6) #make direction description (This also moves to to that room btw)
7) #roomexit(exits observed)
8) #teleport prior_room_number
9) Loop back up to 2 until I see a prompt or see a recover equilibrium message.

It works great. You should see it throw the rooms into existance. I also set the rooms to the color black so that I know I haven't actually been to them. I then check for the black color when I enter rooms and set it to default color if it is.

I also threw in a link tester to set the rooms to a yellow if there are unfollowed links in existance in that room. This helps me keep track of which rooms have links that need exploring.
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