 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: Mon Apr 26, 2004 6:08 am
Mapper and fleeing |
Hey, I really love the mapper. But one thing that really annoys me is that when you flee, in my mud at least, it doesn't give a direction, so doesn't move the marker on the map. I know you can update your position by hitting #FIND, but in a tense situation, that can be a very bad use of time and mud processing time.
What I would really like to do is, when i flee, have the room name/description that comes up as the room i enter automatically be run through the mapper, without having to do a #FIND and send the look command to the mud. Anyone know if there's a way to do this?
Thnx for all the help in advance :D
[edit] Using version 7.05, win xp, and mud output for room is below:
The Cityguard Stables
The stables house the horses that are reserved for the guards of the city.
The clean stalls and lack of remaining refuse indicates the meticulous
nature of the stable hands. Horses of every size and breed are boarded
here, taken good care of until their masters are in need of them. The sigil
of the guard stands out above the entrance of the rock barn.
[ obvious exits: W ] |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Apr 26, 2004 6:37 am |
*drool* Uhmm so sure WHAT exactly happens when you flee you sorta forgot that part I have a decent 90% of the time working (hey not even zmud is THAT good :P) flee script:P Post an output of you fleeing from one room to the next includeing room in when fleeing and room entered when fleeing.
Trigger ONLY teleports you to a room LINKED with the one you flee from, so if you have 2 of the same rooms on oposite ends of the maps it won't bother looking for the one not linked :P.
#CLASS {FleeScript}
#VAR Flee ""
#TRIGGER "FleeTrig" {^You panic, and attempt to flee.$} {}
#COND {^(*)$} {Flee.RoomName=%replace( "%1", "'", "''")} {within|param=1}
#COND {^(*)$} {Flee.Found="";Flee.RoomDesc=%replace( "%1", "'", "''");#PRIORITY {#FORALL %roomexit {#FORALL %roomlink( ,%i) {#IF (%ismember( %j, %mapquery( {[Name] = '@Flee.RoomName' and [Desc] LIKE '@Flee.RoomDesc%'}))) {#ADDITEM Flee.Found %j}}}};#IF (%numitems( @Flee.Found)=1) {#sayRoom Found Teleporting;#TELEPORT @Flee.Found} {#IF (%numitems( @Flee.Found)>1) {#SAY Multi Rooms Found Teleporting to First;#TELEPORT %item( @Flee.Found, 1)} {#SAY No Connecting Rooms Found}}} {within|param=1}
#CLASS 0 |
|
|
 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: Mon Apr 26, 2004 6:44 am |
Here you go, sample output:
On the Bank of the River Gaelin
The sandy shore of the River Gaelin leads gently into the flowing waters.
The clear blue water flows swiftly past, running under a dock to the
west. Grassy fields extend to the south, dotted with small thickets of oak
and leatherleaf. To the west, the Cairhien Road ends at a sturdy wooden
dock.
[ obvious exits: N E S W ]
There are some tracks of an animal leaving >>EAST>>
There are some tracks of an animal leaving vvSOUTHvv
There are some tracks of an animal leaving <<WEST<<
There are some tracks of an animal leaving <<WEST<<
A warhorse is here, stamping his feet impatiently, being ridden by you.
A cute brown deer eyes you nervously.
A young and strong buck is here, munching some grass.
* R HP:Wounded MV:Full > ch mood brave
Mood changed to: Brave
* R HP:Wounded MV:Full > growl
Grrrrrrrrr...
* R HP:Wounded MV:Full > k buck
ch mood wimpy
flee
You smite the young buck's body into bloody fragments!
* R HP:Wounded MV:Full - the young buck: Battered > Mood changed to: Wimpy
* R HP:Wounded MV:Full - the young buck: Battered > You panic and attempt to flee!
You flee head over heels.
Outside Cairhien
The road stops to the north at a small wooden dock on the River Gaelin.
The high city wall of Cairhien looms to the west. The road around
Cairhien heads south where it eventually meets up with the Cairhien
Province. Travel is easy along the riverbank to the east.
[ obvious exits: N E S ]
There are some tracks of a ridden mount leaving vvSOUTHvv
There are some tracks of an animal leaving ^^NORTH^^
There are some tracks of an animal leaving ^^NORTH^^
There are some tracks of an animal leaving >>EAST>>
A warhorse is here, stamping his feet impatiently, being ridden by you.
An elk cow nibbles on some greenery.
The "You flee head over heels." comes up every time you do a successful flee, so I thought that might be easy to trigger off of... |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Apr 26, 2004 2:19 pm |
*MODIFIED*
#CLASS {FleeScript}
#VAR Flee ""
#TRIGGER "FleeTrig" {^You flee head over heels.$} {Flee=""}
#COND {^(*)$} {Flee.RoomName=%replace( "%1", "'", "''")} {within|param=1}
#COND {^(*)$} {Flee.Found="";Flee.RoomDesc=%replace( "%1", "'", "''");#PRIORITY {#FORALL %roomexit {#FORALL %roomlink( ,%i) {#IF (%ismember( %j, %mapquery( {[Name] = '@Flee.RoomName' and [Desc] LIKE '@Flee.RoomDesc%'}))) {#ADDITEM Flee.Found %j}}}};#IF (%numitems( @Flee.Found)=1) {#sayRoom Found Teleporting;#TELEPORT @Flee.Found} {#IF (%numitems( @Flee.Found)>1) {#SAY Multi Rooms Found Teleporting to First;#TELEPORT %item( @Flee.Found, 1)} {#SAY No Connecting Rooms Found}}} {within|param=1}
#CLASS 0 |
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Mon Apr 26, 2004 5:41 pm |
I tried that in the MUD I play, which I think is probably the same one Aarlot plays, same messages and all that, WoTMUD, and it didn't work for me because I have it configured to turn room descriptions off. Is there anyway to configure this script so it reads name and directions instead? Heres a log of what happened when I tried it with descriptions off:
Caemlyn Road
[ obvious exits: N S ]
An Illianer steed stands here proudly, its black mane glistening, being ridden by you.
A draft horse is here.
* R HP:Healthy MV:Fresh > k horse
You stop riding him.
You smite an Illianer steed's right arm into bloody fragments!
* HP:Healthy MV:Fresh - an Illianer steed: Hurt > flee
PANIC! You couldn't escape!
* HP:Healthy MV:Fresh - an Illianer steed: Hurt > flee
An Illianer steed barely tickles your body with his hit.
You smite an Illianer steed's body very hard.
* HP:Scratched MV:Fresh - an Illianer steed: Wounded > PANIC! You couldn't escape!
* HP:Scratched MV:Fresh - an Illianer steed: Wounded > flee
You panic and attempt to flee!
You flee head over heels.
Coach Stop at the Junction by Caemlyn
[ obvious exits: N E S W ]
No Connecting Rooms Found
A bearded coachman stands here, waiting for passengers. |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Apr 26, 2004 7:13 pm |
*Modified for No Desc untested so there might be typos*
#CLASS {FleeScript}
#VAR Flee ""
#TRIGGER "FleeTrig" {^You flee head over heels.$} {Flee=""}
#COND {^(*)$} {Flee.Found="";Flee.RoomName=%replace( "%1", "'", "''");#PRIORITY {#FORALL %roomexit {#FORALL %roomlink( ,%i) {#IF (%ismember( %j, %mapquery( {[Name] = '@Flee.RoomName'}))) {#ADDITEM Flee.Found %j}}}};#IF (%numitems( @Flee.Found)=1) {#sayRoom Found Teleporting;#TELEPORT @Flee.Found} {#IF (%numitems( @Flee.Found)>1) {#SAY Multi Rooms Found Teleporting to First;#TELEPORT %item( @Flee.Found, 1)} {#SAY No Connecting Rooms Found}}} {within|param=1}
#CLASS 0 |
|
|
 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: Tue Apr 27, 2004 12:44 am |
Thanks nexela, works great! (First mod that is, don't know about Loto's)
|
|
|
 |
tekin Newbie
Joined: 29 Jun 2004 Posts: 3 Location: Norway
|
Posted: Tue Jun 29, 2004 1:43 am |
I can see you've all got a lot of stuff figured out. If you could perhaps help me.. you see I can't seem to get the mapper to work for WOTMUD in the first place :( Not being an expert on PERL (I wanted a MUD client not a PERL lesson ;) I'm still not stupid and I can get the basics.. But I haven't been able to make any configuration of the mapper function. Perhaps you could give me a few hints or perhaps a configuration you find works well? The mapper, if I can get it working, would probably be one of my favorite features.. I know this topic is a bit old but this is my last hope :)
|
|
|
 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: Thu Jul 01, 2004 5:42 am |
I could probably send you my configuration setting file, if you give me your e-mail.
|
|
|
 |
tekin Newbie
Joined: 29 Jun 2004 Posts: 3 Location: Norway
|
|
|
 |
tekin Newbie
Joined: 29 Jun 2004 Posts: 3 Location: Norway
|
Posted: Mon Jul 05, 2004 6:10 pm |
A lot more tweaking and with Aarlot's help I've managed toge tthe automapper working with up to 90, 95% success (less if I dont move slowly..) and its great:) Tusen takk!
|
|
|
 |
Wotplayer Newbie
Joined: 06 Jul 2004 Posts: 1
|
Posted: Tue Jul 06, 2004 6:54 am |
I am needing the same thing for the same game but for zMUD 6.16
Wotplayer |
|
|
 |
|
|