• 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!

How to make Wisps enter their Entangled Gold Mine?

Status
Not open for further replies.
Hi! This might sound like a simple stupid request ;D

I simply want to know how I can order a Wisp to enter a Gold Mine or vice versa.
I have tried the "Load", "Harvest", "Right-Click", and "Board" orders. But it just doesn't work.

Any kind of help is greatly appreciated, thanks in advance!


EDIT - Problem Solved!
 
Last edited:
I got you, simply download this example Map and load it in the World Editor, look up the Code and profit (dw it's GUI).

In this example you need to write "load" while you have the Wisps selected and they will find the nearest Entangled Goldmine. This can easily be changed if you are somewhat experienced in GUI.
(or you explain your whole scenario what you wanna do)

Quick Note: The Goldmine still exists even when a Entangled Goldmine is under construction, this means you can't predefine a Goldmine via variable because the Entangled Goldmine will be created on top of the Goldmine and not override it, that's why you are having this problem.
 

Attachments

I got you, simply download this example Map and load it in the World Editor, look up the Code and profit (dw it's GUI).

In this example you need to write "load" while you have the Wisps selected and they will find the nearest Entangled Goldmine. This can easily be changed if you are somewhat experienced in GUI.
(or you explain your whole scenario what you wanna do)

Quick Note: The Goldmine still exists even when a Entangled Goldmine is under construction, this means you can't predefine a Goldmine via variable because the Entangled Goldmine will be created on top of the Goldmine and not override it, that's why you are having this problem.

It unfortunately seems I cannot open your map and see your example! : (
I use patch 1.27, if that has anything to do with it.

It says "- Level Info data missing or invalid."
 
Last edited:
  • Variables to Create
    • Events
    • Conditions
    • Actions
      • -------- Temp_Unit = Unit --------
      • Set VariableSet Temp_Unit = No unit
      • -------- - --------
      • -------- Temp_Real = Real --------
      • Set VariableSet Temp_Real = 0.00
      • -------- - --------
      • -------- Temp_Group = Unit Group --------
      • Set VariableSet Temp_Group = (Last created unit group)
      • -------- - --------
      • -------- Temp_Group2 = Unit Group --------
      • Set VariableSet Temp_Group2 = (Last created unit group)
      • -------- - --------
      • -------- Entangled_Goldmine = Unit Group --------
      • Set VariableSet Entangled_Goldmine = (Last created unit group)
      • -------- - --------
      • -------- Temp_Point = Point --------
      • Set VariableSet Temp_Point = (Center of (Playable map area))
      • -------- - --------
      • -------- Temp_Point2 = Point --------
      • Set VariableSet Temp_Point2 = (Center of (Playable map area))
      • -------- - --------

  • Entangled Goldmine Check
    • Events
      • Unit - A unit Begins construction
      • Unit - A unit Dies
      • Unit - A unit Cancels construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Durchwucherte Goldmine
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is alive) Equal to Wahr
        • Then - Actions
          • Unit Group - Add (Triggering unit) to Entangled_Goldmine
        • Else - Actions
          • Unit Group - Remove (Triggering unit) from Entangled_Goldmine.

  • Entangled Goldmine Wisp Load
    • Events
      • Player - Player 1 (Red) types a chat message containing load as An exact match
    • Conditions
    • Actions
      • Set VariableSet Temp_Group = (Units currently selected by (Triggering player))
      • Unit Group - Pick every unit in Temp_Group 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 Irrwisch
            • Then - Actions
              • Set VariableSet Temp_Point = (Position of (Picked unit))
              • Set VariableSet Temp_Group2 = (Units within 1000.00 of Temp_Point matching ((((Matching unit) is in Entangled_Goldmine.) Equal to Wahr) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit)))).)
              • Set VariableSet Temp_Real = 1000.00
              • Unit Group - Pick every unit in Temp_Group2 and do (Actions)
                • Loop - Actions
                  • Set VariableSet Temp_Point2 = (Position of (Picked unit))
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Distance between Temp_Point and Temp_Point2) Less than Temp_Real
                    • Then - Actions
                      • Set VariableSet Temp_Unit = (Picked unit)
                      • Set VariableSet Temp_Real = (Distance between Temp_Point and Temp_Point2)
                    • Else - Actions
                  • Custom script: call RemoveLocation(udg_Temp_Point2)
              • Unit - Order (Picked unit) to Harvest Temp_Unit
              • Custom script: call RemoveLocation(udg_Temp_Point)
              • Custom script: call DestroyGroup(udg_Temp_Group2)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Temp_Group)

This is the whole Code
 
Status
Not open for further replies.
Back
Top