Zerg Egg Rally Points system in wc3!!

sunshinex3

You can change this now in User CP.
Reaction score
7
Before you trigger create the egg give it negative health regeneration(Shift+Click)
then give it the ability rally, and if you want makes it invulnerable.
(also obviously make a hatchery building mine was a town hall)

(also i wanted my zerg to be bought like mercenaries cuz that's how it is in starcraft)
to get your eggs not to land on top of each other your going to have to remove their movement after they are spawned.
Trigger:
  • Zerg DisableMove
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Selling unit)) Equal to Hatchery (zerg)
          • (Unit-type of (Selling unit)) Equal to Colony (zerg)
          • (Unit-type of (Selling unit)) Equal to Hive (zerg)
    • Actions
      • Custom script: call UnitRemoveAbility(GetSoldUnit(), 'Amov')



Now to address the rally point or rather rally points*
(hatchery needs the rally ability and this trigger will set the eggs rally point to the hatcheries rally point it will also allow drones to harvest wood(but needs the next trigger to pull that off))
Trigger:
  • Zerg Rally
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Selling unit)) Equal to Hatchery (zerg)
          • (Unit-type of (Selling unit)) Equal to Colony (zerg)
          • (Unit-type of (Selling unit)) Equal to Hive (zerg)
    • Actions
      • Set VariableSet TempPoint = (Rally-Point of (Selling unit) as a point)
      • Set VariableSet TempBool3 = False
      • Destructible - Pick every destructible within 50.00 of TempPoint and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Picked destructible) Equal to (Rally-Point of (Selling unit) as a destructible)
            • Then - Actions
              • Set VariableSet TempBool3 = True
              • Unit - Order (Sold unit) to Right-Click (Picked destructible)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempBool3 Equal to False
        • Then - Actions
          • Unit - Set Rally-Point for (Sold unit) to TempPoint
        • Else - Actions
      • Custom script: call RemoveLocation (udg_TempPoint)


you will need the drones to be able to collect wood and lumber using the rally point

Trigger:
  • Zerg Rally Worker
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (drone)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (drone colony)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (drone Hive)
    • Actions
      • Set VariableSet TempPoint = (Rally-Point of (Summoning unit) as a point)
      • Set VariableSet TempBool = False
      • Set VariableSet TempBool2 = False
      • Set VariableSet TempUnitGroup = (Units within 50.00 of TempPoint.)
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Gold Mine
            • Then - Actions
              • Set VariableSet TempBool = True
              • Set VariableSet TempBool2 = True
              • Unit - Order (Summoned unit) to Right-Click (Picked unit)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempBool Equal to False
        • Then - Actions
          • Destructible - Pick every destructible within 50.00 of TempPoint and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Picked destructible) Equal to (Rally-Point of (Summoning unit) as a destructible)
                • Then - Actions
                  • Set VariableSet TempBool2 = True
                  • Unit - Order (Summoned unit) to Right-Click (Picked destructible)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempBool2 Equal to False
        • Then - Actions
          • Unit - Order (Summoned unit) to Move To TempPoint
        • Else - Actions
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup(udg_TempUnitGroup)


now the rest of the zerg units need to use the rally points their more basic however

Trigger:
  • Zerg Rally Move Summond
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Hydralisk colony)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Hydralisk hive)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Hydralisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Immortalisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Impalarisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Predling black claws)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Predling)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Scorpling)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Swarmling Cloning)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Ultralisk Hive)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Ultralisk colony)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (Ultralisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (atrocilisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (lurkerlisk)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (roachling)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (scanthid colony)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (scanthid hive)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (scanthid)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (swarmling)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (swarmling3 black claws)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (zergling Hive)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (zergling blackclaws)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (zergling colony)
          • (Unit-type of (Summoning unit)) Equal to Zerg Egg (zergling)
    • Actions
      • Set VariableSet TempPoint = (Rally-Point of (Summoning unit) as a point)
      • Unit - Order (Summoned unit) to Move To TempPoint
      • Custom script: call RemoveLocation (udg_TempPoint)

This system was made possible by Ghan
thank you Ghan!!

Trigger:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top