Healing Mod Help
Hi. Im a bit new to the LUA side of programming. I'm trying to work up a mod to determine who needs healed based off of health %. but so far i've come up with an extremely large code that uses alot of memory. Im trying to condense the code.
I have already succesfully grabbed how many people were in a raid or party to determine the max ammount of players to scan through their raid id. only problem i have is storeing all possible values in temp vars so that i can input them into vars for UI output. Im wondering if putting them in a table might help, so i can store the player name and health in one value. But im not quite sure on how i would go about scanning players 1-40(possible) without storeing them in localy declared vars and then sorting the list from lowest to highest, and putting them in the right vars according to the health% they are at. If anyone could help me out i'd appreciate it. thanks.
|