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
bajanrose
Beginner


Joined: 20 Mar 2003
Posts: 25

PostPosted: Sun Apr 26, 2009 2:01 pm   

Need mapping help for Shadows of Isildur
 
Alright, I'm not sure how to set up the configuration in the mapping for this. It keeps mapping the prompt when I move from room to room or it would just map the room direction which is annoying. I simply want it to just map the room name and room description. Below is an example of a room:

A Small Copse of Birch Trees
Exits: north east south west

This small copse of trees is made of thick, healthy birch
trees, providing some shade and a generally peaceful area between
the two large compounds that can be seen through the foliage to
the south and the north. A small, dirt trail leads through the
trees to the yard north, a small, locked gate in the fencing as
well as in the fencing to the south. A low building faces to the
east. To the west a forested area extends away down the hill.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 26, 2009 8:34 pm   
 
This is almost certain to require #TAG triggers, but it's really easy. Also, if your mud has a command to change the wordwrapping width you should either turn it off or set it as high as you can go; this makes it tons easier to match.

#trigger {^([%w%s])$} {#tag name "%1"}
#condition {^Exits: ([%w%s])$} {#tag exit "%1";RoomDesc = "";#T+ tRoomDesc}
#condition {match your prompt here} {#T- tRoomDesc;#tag desc @RoomDesc} {nocr|prompt}
#trigger "tRoomDesc" {^([%w%s,-.?!])$} {RoomDesc = %additem("%1",@RoomDesc)}

Enter the code into the command line, then reconfigure the mapper. Should get you (close to) working.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Mon Apr 27, 2009 5:49 pm   
 
i use this to get rid of the prompt (in scrollback only)

#TR {<([~*])%s/([~|%s])> } {health=%len(%trim(%1));stamina=%len(%trim(%2));#SUB {}}
_________________
Discord: Shalimarwildcat
Reply with quote
bajanrose
Beginner


Joined: 20 Mar 2003
Posts: 25

PostPosted: Sat May 02, 2009 2:17 am   
 
Thank you both. :)
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Thu May 24, 2018 10:00 pm   
 
Prompt looks like this

<****** / ^^^^^^ / ||||||>

Where * is for health, ^ is for trauma, and | is fatigue
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri May 25, 2018 12:01 pm   
 
#TR {<([~*%s])/([~^%s])/([~|%s])> } {health=%len(%trim(%1));trauma=%len(%trim(%2));fatigue=%len(%trim(%3));#SUB {}}
_________________
Discord: Shalimarwildcat
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Sat Jun 02, 2018 2:01 am   
 
Tried entering this with Command mode

#trigger {^([%w%s])$} {#tag name "%1"}
#condition {^Exits: ([%w%s])$} {#tag exit "%1";RoomDesc = "";#T+ tRoomDesc}
#condition {#TR {<([~*%s])/([~^%s])/([~|%s])> } {health=%len(%trim(%1));trauma=%len(%trim(%2));fatigue=%len(%trim(%3));#SUB {}}} {#T- tRoomDesc;#tag desc @RoomDesc} {nocr|prompt}
#trigger "tRoomDesc" {^([%w%s,-.?!])$} {RoomDesc = %additem("%1",@RoomDesc)}

Getting unmatched braces error...
Reply with quote
azurerazor
Beginner


Joined: 17 Dec 2001
Posts: 20
Location: USA

PostPosted: Sat Jun 02, 2018 2:09 am   
 
Just realized this is a ZMUD thread... I'm using cMud - maybe thats the problem

Created on CMUD http://forums.zuggsoft.com/forums/viewtopic.php?p=177739
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