- Joined
- Oct 21, 2016
- Messages
- 4
So i've run into a problem whilst working on a map whilst using GUI.
Here is a quick rundown;
- The maximum amount of heros a player is allowed to have will increase throughout the game
- Each race has only 1 hero but is allowed to train it multiple times until the maximum hero amount is reached
- If a hero dies it is gone, instead of reviving it you'll have to train a new one
What i've done is i've limited the unit type of each hero for their corresponding races and remove a hero when it dies. The problem is that removing a dead hero doesn't reduce the number of units of you have of that type acording to the game. (So if you build 3 heros and 1 dies, it thinks you still have 3 of them)
Is there a better alternative to removing a dead hero?
PS: I didn't use the basic limit hero for player trigger since for some reason you can't make duplicate heros if you add them to the Techtree - Dependancy Equivalants even if you delete the limit hero of type trigger.
Here is a quick rundown;
- The maximum amount of heros a player is allowed to have will increase throughout the game
- Each race has only 1 hero but is allowed to train it multiple times until the maximum hero amount is reached
- If a hero dies it is gone, instead of reviving it you'll have to train a new one
What i've done is i've limited the unit type of each hero for their corresponding races and remove a hero when it dies. The problem is that removing a dead hero doesn't reduce the number of units of you have of that type acording to the game. (So if you build 3 heros and 1 dies, it thinks you still have 3 of them)
Is there a better alternative to removing a dead hero?
PS: I didn't use the basic limit hero for player trigger since for some reason you can't make duplicate heros if you add them to the Techtree - Dependancy Equivalants even if you delete the limit hero of type trigger.