Limited heroes per map (need a bit help with this)
Hello friends,
I have a problem with heroes on my map. I got custom heroes.. and i can't do the "limit 1 hero per player" thing. I got the trigger.. i have not even touched the "base" triggers. So why is this not working?
First of all they cost 450 .. you don't get a free one from the beggining. Second of all you can buy how many you want.. and this destroys the whole map. If anyone know a solution for this i would be very happy
10 posts The set of an imaginary childrens television show, behind the stage. joined
#2
sneaky fix
there is another way to do this (I think) but this is the first one that pops into my head:
Create a building with an identical name, stats, description, appeareance, etc... as the one that trains the heros, but do not give it any availible heros.
Then, make a trigger with the event "A unit finishes training", and the condition:
Or (Multiple Conditions)-
unit type of (Trained Unit) = Hero1
unit type of (Trained Unit) = Hero1
unit type of (Trained Unit) = Hero1
unit type of (Trained Unit) = Hero1
...
this will make the trigger run when a unit finishes training, and only if the unit that is trained is one of your heros.
for the action section, simply use the unit- replace command to replace the altar of kings (or whatever you use to train heros) with the duplicate you made before.
so, when you train a unit, if it is a hero, then the altar is replaced with an identical copy of itself that cannot train (but can revive) heros.
Do the "Player - Limit training for [Your Hero] to [one] for player [Your player(s)]". But I don't really know how to make so the first hero costs 0 gold/wood :/.