So I decided to start making some libraries that might be useful to others in the long run, I have no clue if other made this or not. I have attached a map that has them in it, plus test triggers, etc. Tell me what you think.
OK so I have decided to focus on functions that might be useful in a tower defense. The following are in the above map now:
Function to create a basic leaderboard, with listing of active players, titles, count of kills, and count of lifes. (returns leaderboard pointer variable)
Functions to update the leaderboard kills and lifes made with the above function
Function to create a periodic timer and window for it (returns timer pointer)
Function to Spawn Units, given the unit type, amount, owner, start region, and end region. It will not only create the units but move them between the given regions
Function to Sell a unit, it still requires an ability event, but will sell unit given percent to sell at
The last function is a test on for RPGs, it creates Dialog over units heads when clicked.
Look over the triggers to see how I used the functions and what data I gave it. Though there is alot more you can do with some of those, like the spawn unit. You could send an unit type array and increment the index each run, and the spawnunit function would spawn the next type each time.
P.S. Forgive the spelling mistakes in the map, I wasn't caring to much about them. And tell me if there are other functions you can think of I can't.
So I decided to start making some libraries that might be useful to others in the long run, I have no clue if other made this or not. I have attached a map that has them in it, plus test triggers, etc. Tell me what you think.
Link Removed: http://www.mediafire.com/?wip23shqh554v7w
Update:
OK so I have decided to focus on functions that might be useful in a tower defense. The following are in the above map now:
Look over the triggers to see how I used the functions and what data I gave it. Though there is alot more you can do with some of those, like the spawn unit. You could send an unit type array and increment the index each run, and the spawnunit function would spawn the next type each time.
P.S. Forgive the spelling mistakes in the map, I wasn't caring to much about them. And tell me if there are other functions you can think of I can't.
Updated