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
Samus
Novice


Joined: 01 Jan 2003
Posts: 32

PostPosted: Sat Jan 11, 2003 1:16 am   

Why doesn't this work?
 
How come this TR doesn't work?
#TR {~<Hp:(%d) Mv:(%d) Tnl:(%d) Tank:(%d)~>} {#IF (%4<100) {rescue @tank} {}}
Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Sat Jan 11, 2003 2:07 am   
 
How come you don't tell us how it doesn't work?

Doesn't it trigger, or does it not rescue? Which text is it supposed to capture?

Lady C. *no seer*
Reply with quote
Samus
Novice


Joined: 01 Jan 2003
Posts: 32

PostPosted: Sat Jan 11, 2003 3:10 am   
 
Well it puts in {rescue cyx}{}
abd cyx would be the tank I want it to just put in
rescue cyx
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sat Jan 11, 2003 5:31 am   
 
quote:

#TR {~<Hp:(%d) Mv:(%d) Tnl:(%d) Tank:(%d)~>} {#IF (%4<100) {rescue @tank} {}}


Well it puts in {rescue cyx}{}


well, thats strange to me. when i tested your trigger, it worked just fine. The problem you're having would most likely be caused by unbalanced curly braces, but the trigger you posted is balanced.

try using #send or #exec
#send {rescue @tank}
#exec {rescue @tank}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jan 11, 2003 6:34 am   
 
Don't forget to leave a space between sections.
{rescue cyx}{} means you probably have
#TR {~<Hp:(%d) Mv:(%d) Tnl:(%d) Tank:(%d)~>} {#IF (%4<100) {rescue @tank}{}}
when it should be
#TR {~<Hp:(%d) Mv:(%d) Tnl:(%d) Tank:(%d)~>} {#IF (%4<100) {rescue @tank} {}}
Of course, you don't need the final {} at all.
#TR {~<Hp:(%d) Mv:(%d) Tnl:(%d) Tank:(%d)~>} {#IF (%4<100) {rescue @tank}}

LightBulb
Senior 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