|
Post by megamushroom on Apr 5, 2004 12:27:09 GMT -5
not sure if this is a dumb question, and its probably in the manual, but i cant find it!
how can i sort my items in my inventory in alphabetical and/or power?
here is how they are lay out:
item[0,0]="Potion" item[0,1]=20+random(6) item[0,2]=2 item[0,3]=7 item[0,4]="Cure by a small amount of health"
item[1,0]="Ether" item[1,1]=40 item[1,2]=3 item[1,3]=2 item[1,4]="Raise your magic points by 50"
item[2,0]="Full Cure" item[2,1]=maxhp item[2,2]=2 item[2,3]=1 item[2,4]="Fully cure your health"
item[3,0]="" item[3,1]=0 item[3,2]=0 item[3,3]=0 item[3,4]=""
has anyone any ideas?
|
|
|
Post by IsmAvatar on Apr 5, 2004 13:34:23 GMT -5
There's no function for it (to my knowledge), so you have to do it the hard way.
Run it through a loop.
Recursion can also be helpful, but can occupy many resources. to do recoursion, just make a script, and have it call itself in it (be careful with this and make sure that it breaks out soon, because otherwise it'll hog too many resources that windows crashes)
|
|
|
Post by megamushroom on Apr 6, 2004 9:50:40 GMT -5
ok, thanks
Im not even sure how to do it the hard way, but it should be fun trying figure it out.
|
|