Checking if player is above matrix is simple...
if camera position y()>get ground height(1,camera position x(),camera position z()
rem Player is above matrix
else
rem Player is below matrix
endIf
Sorting order of something?
dim myValue(10)
dim pos(10)
for checkA=1 to 10
pos(checkA)=11
for checkB=1 to 10
if myValue(checkA)>myValue(checkB)
pos(checkA)=pos(checkA)-1
else
if myValue(checkA)=myValue(checkB)
if checkA<=checkB
pos(checkA)=pos(checkA)-1
endIf
endIf
endIf
next checkB
nect checkA
Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.