- Joined
- Apr 17, 2017
- Messages
- 14
-
Units Trained
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
Actions
-
Unit Group - Add (Trained unit) to FalseAIAttackGroupOld[(Player number of (Owner of (Trained unit)))]
-
Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Trained unit)))] + ((Name of (Owner of (Trained unit))) + (|r now has an army. + (String((Number of units in FalseAIAttackGroupOld[(Player number of (Owner of (Trained unit)))]))))))
-
-
Something wrong happens.
The unit is detected, yet NOT added to the group. I really dont get it. Even if I set the trained unit to a variable.
I can only get this to work for the player in the first slot.
Every other part of the code works, meaning, it detects the correct player number for everything it just doesnt actually ADD the unit to the group.
The group always returns 0 if a player in any other slot
Any ideas? I thought this was something super basic and its literally making my entire code that comes after hogwash
Last edited: