About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Shizuma
Beginner


Joined: 24 Feb 2002
Posts: 16
Location: USA

PostPosted: Wed Feb 27, 2002 9:21 am   

something different from my other post ...
 
I have my prompt setup as followed.

[ E W ][Exp: 354245]
[Hp: 99/99 Mn: 266/266 Mv: 79/79][Tank: N/F]

Now, I need to come up with a couple of things..
1st) I need a way so when my Exp is a -#
command: gain
I tried a couple things, but I just keep loop erroring myself *massive spamming on the mud ;)
2nd) I need a way for [Tank: N/F] so my bot will cast casting it's healing by a % .. ie Tanks hp's are at 50% .. but just says it like I have above. [Tank: 50%]

Thanks,
Hardcore wannabe knowitall newbie :)
Shizuma
Reply with quote
Shizuma
Beginner


Joined: 24 Feb 2002
Posts: 16
Location: USA

PostPosted: Wed Feb 27, 2002 10:59 am   
 
nm.. I guess it is just like my previous discussion.. so technically it should go under my other listing.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Feb 27, 2002 1:40 pm   
 
1st) To control self-spamming, you need some sort of toggle to limit the trigger to one response. Two popular methods are 1)using a flag variable and 2) using a class. In either case, you need a second trigger to re-enable it after the action is complete.
#VAR gain 1
#TR {Exp~: ~-} {#IF (@gain) {#VAR gain 0;gain}}
#TR {Mud's response to the gain command} {#VAR gain 1}

#TR {Tank~: (%d)~%} {#IF (%1 < 51) {#T- tankheal;cast heal @tank}} {tankheal}
#TR {Ok} {#T+ tankheal}
#TR {You lost your concentration} {#T+ tankheal}



LightBulb
All scripts untested unless otherwise noted
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