Hi, not really a coding problem as i'm a bit lost on how to even do this, while I do know how to code, my math isn't too great, sadly, so making an algorithm like this would prove difficult.
My obj/cards for creatures have an ATK value, and I want to know how to make a PROC where I can send a list, and it'll return the highest, mid, or lowest ATK/DEF value based on arguments I send sortproc(listname,1,1)
the second 1 being "Atk" (0 is defense), and the first 1 being "Mid", 2 being high, 0 being lowest.
The thing needs to be able to list all sorts of atoms too, obj, turf, mobs, ect
ID:158962
Jun 6 2009, 6:31 am
|
|
In response to Asellia
|
|
I'm finding it difficult to read what you've written, but it seems to be much too long. Here's what I'd do:
//hilo = 1 for highest, 0 for lowest |
I did this code myself, will someone just tell me if this will work? I don't want to have to make a bunch of unneeded code to test it.