• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Integer problem

Status
Not open for further replies.
Level 5
Joined
Sep 27, 2011
Messages
141
  • Forest Spawn 1
    • Events
      • Unit - A unit enters Spawn Forest 1 <gen>
    • Conditions
    • Actions
      • Set Temp_Unit = (Triggering unit)
      • Set Current_Unit_Index = (Custom value of Temp_Unit)
      • Set Move_Number[Current_Unit_Index] = 2
      • Set Temp_Loc = (Center of Path[Move_Number[Current_Unit_Index]])
      • Unit - Order Temp_Unit to Attack-Move To Temp_Loc
      • Custom script: call RemoveLocation(udg_Temp_Loc)
Can someone please tell me why the Move_Number of the unit is still 0 after this the numbers are allocated perfectly to every other unit the unit even moves were it is supposed to go at first anyway but then its path screws up and its not the other triggers because if another unit of exactly the same type enters this region it gets allocated the Move_Number of 2 so please does anyone know what is wrong. Thanks.
 
Level 5
Joined
Sep 27, 2011
Messages
141
Sorry each unit is assigned their own custom value when the enter the map each of the has a different custom value 1 greater than the previous the only one that doesn't work is the first
 
Status
Not open for further replies.
Top