|
kazu Beginner
Joined: 16 Sep 2008 Posts: 17
|
Posted: Sat Sep 20, 2008 12:35 am
queues |
I have a set of variables, the triggers to change them and a stringlist with what I want cured in a specific order, but after that I'm stuck with created a prioritized herb queue, can anyone help me or direct me to a place where I can find the help I need?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sat Sep 20, 2008 1:47 am |
its a matter of weighting the wounds, i would use several variables, each housing the varying levels of severity: scratches, bleeding, and missing, then its just a matter of making sure all in the sever group is done before the moderate group
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
kazu Beginner
Joined: 16 Sep 2008 Posts: 17
|
Posted: Sun Sep 21, 2008 12:12 am |
er.... how?
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Wed Sep 24, 2008 6:18 am |
Code: |
#VAR SevereW {}
#VAR ModerateW {}
#VAR MinorW {}
#ALIAS HealWounds {
put some kind of loop here for the SevereW var
then a loop here for the ModerateW
and finally one for MinorW
} |
Of course you'll need a trigger to add each wound to the proper var
I would use something like this for the loops:
#WHILE (@SevereW) {
#EXEC Use HerbX %pop(@SevereW)
}
If I've remembered the correct usage of %pop it'll get and remove the first value in the var, so it will empty it and then exit the loop.
Try to do it on your own, then if you still have problems post your work here and we'll help you in more detail. |
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|