I think I'm misunderstanding your question...
But I get it now.
#1: Remove all limitations.
#2: Create a dummy unit for each hero.
#2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
#3: As soon as a dummy (paladin or mountain king etc) is trained set that integer +1.
#4: If the integer is 3 then just remove the dummy. If it is below just create a hero then.
Something like that. At teh very least you'll need some triggers.
hmmm a few things 2 uhm... "make sure", since im not that pro (when i say pro i means i might now be able 2 know wat are u talking about lol, but i can get a trigger 2 run... i think :3)
1. #2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
uhm... wat is an integer with an arrawy (and wats a MPI)?
2. Only the human + night elf have multiple, identical heros (they're sort of like 2ndary commanders), the Ork and undead have primary Commanders (so its like 1 dk, 1 lich etc...). if u remove limitation for all heros (which i have no idea where 2 do that
), won't that affect the other races as well?
3. I make good starcraft maps so let me ... interpret wat ur step #3 and #4 in starcraft map triggers and tell me if im right (if i get wat ur saying then i can find ways 2 make it happen in the wc3 map editor :3)
-unlimited number of heros
-when
any player command more than
X number(s) of
y heros, remove 1
y hero for current player. is this wat ur saying? (but you know, since there is that uhm... hero head ... avatar thingy on the left top cornner, if u spam creating heros, wont ur screen be flooded with those things? XD)
PS: apart from those limitation thingy, i really wish the create certain hero button would simply disappear (like after u made 3 pally, the creat pally button disapear)
am i right? thx