- Joined
- Jul 29, 2010
- Messages
- 319
So i'm running into a very strange issue, this trigger does what it's supposed to do except instead of the floating text action placing numbers 1, 2 ,3 ,4 etc above units heads, it instead gives the numbers 1048587, 1048589, 1048590, 1048591 and so on, always starting from 1048587.
what is going on?
-
Allocating Variables
-

Events
-


Time - TempTimer expires
-
-

Conditions
-

Actions
-


-------- x[1] is used for players, x[2] is used for units --------
-


Set x[1] = 0
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




Set x[1] = (x[1] + 1)
-




Set x[2] = 0
-




Unit Group - Pick every unit in (Units owned by (Player(x[1]))) and do (Actions)
-





Loop - Actions
-






Unit Group - Add (Picked unit) to PlayersUnits
-






Set TempUnitVariable = (Random unit from PlayersUnits)
-






For each (Integer B) from 1 to (Number of units in PlayersUnits), do (Actions)
-







Loop - Actions
-








Set x[2] = (x[2] + 1)
-








Hashtable - Save Handle OfTempUnitVariable as x[2] of 1 in PlayerUnits
-








Unit Group - Remove TempUnitVariable from PlayersUnits
-








Floating Text - Create floating text that reads (String((Key (Load x[2] of 1 in PlayerUnits)))) above TempUnitVariable with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-








Set TempUnitVariable = No unit
-
-
-
-
-
-
-
-







