Mudlet / Lua, detect highest value?

by Unknown

Back to Mechanic's Corner.

Unknown2010-04-21 01:24:50
I'm at the point in my system building where I'm ready to start applying healing to body parts vs. knights. But just how to go about it has me wondering. It seems like the best thing to do would be to just apply to the most wounded bodypart. But is there an easy way with lua to identify the highest value in something? I'm not very good with tables... confused.gif

Thank you for any and all help!
Xavius2010-04-21 01:32:00
Unknown2010-04-21 03:05:03
Yay!