• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to make Wisps enter their Entangled Gold Mine?

Status
Not open for further replies.
Level 2
Joined
May 9, 2015
Messages
24
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:
Level 6
Joined
Mar 27, 2019
Messages
51
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

  • EntangleGoldmine.w3m
    19.3 KB · Views: 24
Level 2
Joined
May 9, 2015
Messages
24
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:
Level 6
Joined
Mar 27, 2019
Messages
51
  • 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
 
Level 2
Joined
May 9, 2015
Messages
24
Looks complicated, odd how the developers made it so inconvenient for wisps to enter an entangled goldmine ;D
But thanks a lot, I will try and tinker with this and follow the triggers you showed me.
I appreciate it!
 
Level 2
Joined
May 9, 2015
Messages
24
This seems to work:
  • Unit - Order (your wisp) to Harvest Nearby Gold
However, it will not work if the goldmine is too far from the wisp.

That worked flawlessly hahah! ;D

Thanks a lot, both of you! At last I no longer have retarded wisps at my ally's base doing nothing, heh xD
 
Status
Not open for further replies.
Top