azurespecter
New Member
- Reaction score
- 0
I've tried reading through forums and guides to be able to do this myself, but I just can't figure this out.
I need a trigger that will count the number of a unit type (footman, for example) in region X owned by triggering unit player
Then the trigger needs to replace 50 footman in Region X with 1 knight in Region Y ...
And then the harder part ... any leftover units above a multiple of 50 need to turn into 1 knight with life = number of footman leftover
So if I brought 1 footman to Region Z (the trigger event), the trigger would count all footman in Region X. If there were 126 footman in Region X, those 126 footman would be removed and replaced by 3 knights at Region Y, 1 knight having 26 hit points.
Come to think of it, I may also need help with a trigger that converts a 26 hit point knight into 26 footman... But I may be able to figure that out on my own if somebody can please help me with the above trigger. I've tried looking at variables and hashtables but it's beyond my understanding.
I need a trigger that will count the number of a unit type (footman, for example) in region X owned by triggering unit player
Then the trigger needs to replace 50 footman in Region X with 1 knight in Region Y ...
And then the harder part ... any leftover units above a multiple of 50 need to turn into 1 knight with life = number of footman leftover
So if I brought 1 footman to Region Z (the trigger event), the trigger would count all footman in Region X. If there were 126 footman in Region X, those 126 footman would be removed and replaced by 3 knights at Region Y, 1 knight having 26 hit points.
Come to think of it, I may also need help with a trigger that converts a 26 hit point knight into 26 footman... But I may be able to figure that out on my own if somebody can please help me with the above trigger. I've tried looking at variables and hashtables but it's beyond my understanding.