 |
Shizuma Beginner
Joined: 24 Feb 2002 Posts: 16 Location: USA
|
Posted: 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 |
|
|
 |
Shizuma Beginner
Joined: 24 Feb 2002 Posts: 16 Location: USA
|
Posted: 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.
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
 |
|
|