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
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Mon Dec 23, 2002 11:36 am   

Gag with replacements
 
Hi ZMUD users!

I am trying to gag two lines, and replace them with something else.

The text i see is:
| 925H 520M 1006V >
Your belt is healing you.
Your cap is healing you.


every pulse or so.

I want to gag both of those healing lines and replace it so that if BOTH of them happen, it says (prolly using #say) Both belt and cap heal you. (while the actual two lines are gagged)

Is this possible with zmud 6.16?
heck, even possible at all with any version!

Edwub the Mage
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Mon Dec 23, 2002 11:42 am   
 
#trigger {Your cap is healing you.} {#var capheal = 1; #gag}
#trigger {Your belt is healing you.} {#var beltheal = 1; #gag}

#trigger {Your cap is healing you.} {#if (@beltheal = 1) and #if (@capheal = 1) #say Both belt and cap heal you!; #var beltheal = 0; #var capheal = 0}

Would something like that work, make sense?
I know if its gagged I don't see it on screen, but zmud must see it if its gagged, so couldnt a trigger work off of it?

Its 2:30 am and I was never too much good with stuff like this but what i just posted is my brainstorm.

Please toss me advice or help if you can.

Thanks,

Edwub the Mage
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Dec 23, 2002 11:47 am   
 
Try:
#TRIGGER {Your belt is healing you.$Your cap is healing you.} {#GAG -2;#SH Both belt and cap heal you.}

Kjata
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Mon Dec 23, 2002 12:15 pm   
 
It works like a charm!
Thank you very much =)

Edwub the Mage
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