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

Another Problem

Status
Not open for further replies.
Another problem

  • Hallucination
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Ability being cast) Equal to Hallucinate Probe
        • Then - Actions
          • Set Hallucination_Point = (Position of (Triggering unit))
          • Unit - Create 1 Probe (Hallucination) for (Owner of (Triggering unit)) at Hallucination_Point facing Default building facing degrees
          • Unit - Hide (Last created unit)
          • Set Hallucinated = (Last created unit)
          • Unit - Create 4 To Be Used As Dummy for (Owner of (Triggering unit)) at Hallucination_Point facing Default building facing degrees
          • Hero - Create Wand of Illusion x4 and give it to (Last created unit)
          • Hero - Order (Last created unit) to use (Last created item) on Hallucinated
          • Unit - Remove Hallucinated from the game
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Hallucination_Point)
It doesn't work :C
No Illusions is created. Also, how can I increase the illusions spawned?
 
Supertoinkz, you make the mistake of referring to units that either have locust or get hidden. It can't work like that. How will the dummy target a hidden unit?
Use this:
  • Summon Illusion
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Probe (Hallucination)
      • ((Summoned unit) is an illusion) Equal to True
    • Actions
      • Unit - Kill (Summoning unit)
      • Unit - Remove (Summoning unit) from the game
  • Tr
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Hallucinate Probe
  • Actions
    • Set Hallucination_Point = (Position of (Triggering unit))
    • Unit - Create 1 Probe (Hallucination) for (Owner of (Triggering unit)) at Hallucination_Point facing Default building facing degrees
    • Custom script: call IssueTargetOrderById (GetSummonedUnit(), 852274, GetSummonedUnit())
    • Custom script: call RemoveLocation (udg_Hallucination_Point)
 
Last edited:
Status
Not open for further replies.
Top