Ahh need help with a bit of code.

Posted by Gtr on Fri 17 Sep 2004 12:31 PM — 1 posts, 8,550 views.

#0
How would you guys go about: Ok, I'm trying to figure out a way for the player to type somthing like sort, and have the code cycle through all the charecters carried items...thats the part I knew how to do. What I want it to do from there is look for a certin item, lets use the example "wands" if the charecter carries multiple wands, how could I get the wands that have like err value[5] greater then 0 for isntance to move up the list that way all the wands the charecter has in his inventory with a value[5] of 0 gets moved behind all the wands with somthing besides 0 in value[5]'s spot.