LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jan 05, 2002 5:06 pm |
Basic outline, using separate trigger for each affliction.
#VAR balance 1 1
#TR {Affliction1 text} {#ADDITEM queue1 affliction1;tryheal}
#TR {Affliction1A text} {#ADDITEM queue1 affliction1a;tryheal}
#TR {Affliction2 text} {#ADDITEM queue2 affliction2;tryheal}
#TR {Affliction2B text} {#ADDITEM queue2 affliction2b;tryheal}
#TR {Affliction2C text} {#ADDITEM queue2 affliction2c;tryheal}
#TR {Affliction3 text} {#ADDITEM queue3 affliction3;tryheal}
#TR {Affliction4 text} {#ADDITEM queue4 affliction4;tryheal}
#TR {you have regained cure balance} {#VAR balance 1;tryheal}
#AL tryheal {#IF (@balance) {#IF (%item(@queue1,1) <> %null) {#VAR balance 0;cure %item(@queue1,1);#DELITEM queue1 %item(@queue1,1)} {#IF (%item(@queue2,1) <> %null) {#VAR balance 0;cure %item(@queue2,1);#DELITEM queue2 %item(@queue2,1)} {#IF (%item(@queue3,1) <> %null) {#VAR balance 0;cure %item(@queue3,1);#DELITEM queue3 %item(@queue3,1)} {#IF (%item(@queuer4,1) <> %null) {#VAR balance 0;cure %item(@queue4,1);#DELITEM queue4 %item(@queue4,1)}}}}}}
LightBulb
All scripts untested unless otherwise noted |
|