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
kazu
Beginner


Joined: 16 Sep 2008
Posts: 17

PostPosted: 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?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
kazu
Beginner


Joined: 16 Sep 2008
Posts: 17

PostPosted: Sun Sep 21, 2008 12:12 am   
 
er.... how?
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

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