I'm not quite sure if this should be in "Triggers & Scripts" forum, please tell me, and i'll remake it over there.
Basically i want to somehow store/remember what units each player have bought (to create like a list of units in their "army"). Then at a certain event, perhaps after a wave was cleared, to restore any missing units. So for example, Billy have bought 1 x Hero, 2 x Rifleman and 1 x Footman, then the round starts and a wave of creeps appear, after the wave is cleared Billy have 1 x Hero, 1 x Rifleman and 0 x Footman, the game would then respawn/ressurect/create/something 1 x Rifleman and 1 x Footman.
Is this possible somehow?
I have some experience with triggers, but haven't quite been able to figure this out.
Perhaps my idea of doing it is flawed, but the essence is that in some way i need the game to log what units a player have purchased, and then being able to remake whatever units he may have lost, so it needs to compare the players current units with the log of what units he have purchased and then recreating whatever is missing.
Thanks in advance!
Basically i want to somehow store/remember what units each player have bought (to create like a list of units in their "army"). Then at a certain event, perhaps after a wave was cleared, to restore any missing units. So for example, Billy have bought 1 x Hero, 2 x Rifleman and 1 x Footman, then the round starts and a wave of creeps appear, after the wave is cleared Billy have 1 x Hero, 1 x Rifleman and 0 x Footman, the game would then respawn/ressurect/create/something 1 x Rifleman and 1 x Footman.
Is this possible somehow?
I have some experience with triggers, but haven't quite been able to figure this out.
Perhaps my idea of doing it is flawed, but the essence is that in some way i need the game to log what units a player have purchased, and then being able to remake whatever units he may have lost, so it needs to compare the players current units with the log of what units he have purchased and then recreating whatever is missing.
Thanks in advance!