Unlimited Hero Selection System
by Orc_Tamer
Features:
In GUI (Jass version may be released)
Requires:
Next - Hero Unit
Hero - Unit Type Variable
Start - Integer Variable
TimerStart - Timer Variable (If you want to use it)
Here is a nice little system that will make any of your maps unique by making a tavern, altar, or any building be able to train/summon unlimited heroes.
Array limit is 8191 so it's "almost" unlimited =P
Instructions:
Replace "Tavern 0002 <gen>" with any pre-placed building in the game and has "Sell Units" unit ability.
Add the hero to your "Set Heroes"
Use this as your template to add 4 new heroes

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Make sure your last loop removes the your last 4 heroes and set your "Next" variable back to 1 and add back your first 4 heroes.

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Game Triggers:

Set Heroes

Start Hero

Next
Why is this Unlimited?
Because normal taverns or any buildings uses 12 slots max and this can be used more than that.
Why use this?
1. Uses less buildings (Taverns, Altars, ect)
2. It's unique
3. Faster to add heroes to your Tavern