l-hate_you
New Member
- Reaction score
- 6
In my map, I would like it so that when one person wants to upgrade their team's troops TYPE (all done by triggers)(troops owned by computer), they go to their upgrade building (one for each player) and pay for an upgrade. Of course when they upgrade this, their entire team should be at that level since it gives no bonus besides changing the type of creeps that spawn at their base. I made a GUI trigger that looks fine to me but for some reason does not want to work.. (players 1-11 are allied, 12 are the spawning baddies)
what is wrong?
Code:
Upgrades
Events
Unit - A unit Finishes an upgrade
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Troop Type Upgrade (L1)
Then - Actions
Player Group - Pick every player in (All allies of (Owner of (Researching unit))) and do (Actions)
Loop - Actions
Player - Set the current research level of Troop Type Upgrade (L1) to (Current research level of Troop Type Upgrade (L1) for (Owner of (Researching unit))) for (Picked player)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Troop Type Upgrade (L1) for Player 11 (Dark Green)) Equal to 1
Then - Actions
Set DarkWaveType[1] = Skeleton Warrior (Dark Wave 2)
Set DarkWaveType[2] = Burning Archer (Dark Wave 2B)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Troop Type Upgrade (L1) for Player 11 (Dark Green)) Equal to 2
Then - Actions
Set DarkWaveType[1] = Ghoul (Dark Wave 3)
Set DarkWaveType[2] = Crypt Fiend (Dark Wave 3B)
Else - Actions
Else - Actions
what is wrong?