• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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