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


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Tue Feb 04, 2003 8:18 pm   

Substitution problems
 
The mud I play doesn't give a hp amount for damage, just a verbal message. A few intrepid mudders have, though apparently exhaustive testing, figured out those values and now are trying to substitute in some numbers.

Example:
Mud output: Your slash scratches the iron golem.
Sub output: Your slash scratches the iron golem. (1-4)

I have all of them working, very easily, except one that simply will not work for me.

#tr {^Your (*) <<< ERADICATES >>> (*)!} {#sub {Your %1 ~<~<~< ERADICATES ~>~>~> %2! ~(300-400~)}
Mud output: Your slash <<< ERADICATES >>> the iron golem!

This keeps showing up as the following two lines, and alternating each time it sees an <<< ERADICATES >>>:
Sub output1: Your slash <<>> the iron golem!
Sub output2: Your slash <<>> the iron golem! (300-400)
Sub output1: Your slash <<>> the iron golem!
Sub output2: Your slash <<>> the iron golem! (300-400)

... over and over. Any help would be appreciated, thanks!

~DemonLlama~
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Tue Feb 04, 2003 8:41 pm   
 
Try this I think...

#tr {^Your (*) ~<~<~< ERADICATES ~>~>~> (*)!} {#sub {Your %1 ~<~<~< ERADICATES ~>~>~> %2! ~(300-400~)}
Reply with quote
DemonLlama
Beginner


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Wed Feb 05, 2003 4:42 am   
 
Still didn't work, had to use this:

#tr {^Your * <<< ERADICATES >>> *!} {#sub {%line ~(300-400~)}}

Works in testing, don't know what'll happen in the middle of a big fight.

~DemonLlama~
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 05, 2003 4:50 am   
 
Check the option "trigger on trigger" to ensure it is disabled for the trigger.

If you are getting many outputs as suggested perhaps it is catching
itself.

Ton Diening
Reply with quote
DemonLlama
Beginner


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Thu Feb 06, 2003 3:07 pm   
 
Tried the "Trigger on Trigger" thing... still showing this:

Sub output1: Your slash <> the iron golem!
Sub output2: Your slash <<>> the iron golem! (300-400)
Sub output1: Your slash <> the iron golem!
Sub output2: Your slash <<>> the iron golem! (300-400)

~DemonLlama~
Reply with quote
Evangelist
Adept


Joined: 10 Oct 2000
Posts: 224
Location: USA

PostPosted: Thu Feb 06, 2003 5:25 pm   
 
#tr {^Your %w* ~<~<~< ERADICATES ~>~>~> %w* !} {#sub {Your %1 ~<~<~< ERADICATES ~>~>~> %2! ~(300-400~)}

Try that?

Not sure if it will work, but worth a shot

Evangelist/Pernius
telnet://phidar.com:9000
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Feb 06, 2003 9:32 pm   
 
As long as you're changing things anyway, get rid of the symbol that's giving you problems.
#TR {^Your (*) ~<~<~< ERADICATES ~>~>~> (*)!} {#SUB {Your %1 *** ERADICATES *** %2! ~(300-400~)}}

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