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
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Sat Oct 13, 2001 3:50 pm   

#GAG
 
just what to hear if it is possible to gag parts of a linie like:

HP 345/345 SP:300/300 ROOMS:3884 GOLD:199990>

make it apeer like this

HP 345/345 SP:300/300>

Yugo

Yugo
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sat Oct 13, 2001 5:54 pm   
 
The #SUBSTITUTE command is the tool to use here.


#TR {HP (%d)/(%d) SP:(%d)/(%d) ROOMS:%d GOLD:%d~>} {#SUBST {HP %1/%2 SP:%3/%4>}} "prompt"




Troubadour
Reply with quote
poon
Beginner


Joined: 11 Oct 2001
Posts: 12
Location: USA

PostPosted: Sat Oct 13, 2001 6:07 pm   
 
make a new trigger, have the pattern as:

HP (%d)~/(%d) SP:(%d)~/(%d) ROOMS:(%d) GOLD:(%d)~>

then have the command as:

#ECHO HP %1/%2 SP:%3/%4

i made that trigger, then echo'd the line you had in your post, and it worked for me.

Poon
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Thu Nov 29, 2001 12:06 am   
 
is there anywhere to "speed" up the sub.
it show
HP 970/970 SP: 2295/2295 ROOMS:5343 GOLD:400000>
then it change to
HP 970/970 SP:2295/2295>
anyway to keep it from showing the long line?

Yugo Sangori
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Nov 29, 2001 7:28 am   
 
quote:

is there anywhere to "speed" up the sub.
it show
HP 970/970 SP: 2295/2295 ROOMS:5343 GOLD:400000>
then it change to
HP 970/970 SP:2295/2295>
anyway to keep it from showing the long line?

Yugo Sangori



You can perhaps try using #CR, but that will probably bring up another prompt line. Other than that, #SUB and #GAG both wait for the next input/output line (from any point, I believe) before enacting changes.

li'l shmoe of Dragon's Gate MUD
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