• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Re-applying Locust

Status
Not open for further replies.
I'm using Bribe's Unit Event and Unit Indexer. The units unhide but they don't get locusted again. Everything else in the code works as it should.

  • Umbral Mines Unload
    • Events
      • Game - CargoEvent becomes Equal to 2.00
    • Conditions
      • (Unit-type of UDexUnits[UDex]) Equal to Taskmaster
      • (Unit-type of CargoTransportUnit[UDex]) Equal to Entangled Gold Mine
    • Actions
      • Set ID = (Custom value of CargoTransportUnit[UDex])
      • Set ID2 = (Custom value of UDexUnits[UDex])
      • Set UmbralMines_countTaskmasters[ID] = (UmbralMines_countTaskmasters[ID] - 1)
      • Set Minion_count[ID] = (Minion_count[ID] - Minion_count[ID2])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (UDexUnits[UDex] is in Boss_group) Equal to True
        • Then - Actions
          • Unit Group - Pick every unit in Minion_group[ID2] and do (Actions)
            • Loop - Actions
              • Unit - Unhide (Picked unit)
              • Custom script: call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() )
          • Set Minion_count[ID] = (Minion_count[ID] - Minion_count[ID2])
        • Else - Actions
      • -------- -------- -------- -------- -------- -------- -------- -------- -------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • UmbralMines_countTaskmasters[ID] Equal to 0
        • Then - Actions
          • Unit Group - Remove CargoTransportUnit[UDex] from UmbralMines_group
        • Else - Actions
 
Status
Not open for further replies.
Back
Top