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
FarrixStormcrow
Newbie


Joined: 04 Jan 2002
Posts: 4

PostPosted: Sat Jan 05, 2002 6:16 am   

Kick it up a notch
 
Okay I've been thinking *scary as that may be* I'd like to know how to do something like this with the afflictions in my previous post.
Okay here goes

The affliction gets triggered then is placed in a variable? called queue...now heres the fun part, Depending on the severity of the affliction *i'll assign that* I would have it go into say the variable queue4 and if queue 1 through 3 were empty and I had cure balance it would carry out the cure then reset itself to be used once again. If I don't have cure balance I'd like it to check the queue's again when I receive the text that tells me I can cure again.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
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