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

Reflection

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Wait, can you tell me the downside of using Item Illusion ability ?
It works well, most of the time (most famous maps use this base ability, and it worked well, very well)

You can either give a dummy unit item or just order it to use the ability based on its Raw ID (I forgot the index)
 
Level 4
Joined
Oct 20, 2011
Messages
129
Wait, can you tell me the downside of using Item Illusion ability ?
It works well, most of the time (most famous maps use this base ability, and it worked well, very well)

You can either give a dummy unit item or just order it to use the ability based on its Raw ID (I forgot the index)

Think about creating illusion of an enemy.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Think about creating illusion of an enemy.
What do you meant by this ?

Just give the item ability (Item Illusion) to the dummy, and use this action to target the enemy unit:
  • Illusion Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Illusionism
    • Actions
      • Set Target = (Target unit of ability being cast)
      • Set TargetLoc = (Position of Target)
      • Unit - Create 1 Dummy for (Triggering player) at TargetLoc facing Default building facing degrees
      • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
      • Hero - Create Wand of Illusion and give it to (Last created unit)
      • Hero - Order (Last created unit) to use (Item carried by (Last created unit) of type Wand of Illusion) on Target
      • Custom script: call RemoveLocation(udg_TargetLoc)
 
Level 4
Joined
Oct 20, 2011
Messages
129
What do you meant by this ?

Just give the item ability (Item Illusion) to the dummy, and use this action to target the enemy unit:
  • Illusion Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Illusionism
    • Actions
      • Set Target = (Target unit of ability being cast)
      • Set TargetLoc = (Position of Target)
      • Unit - Create 1 Dummy for (Triggering player) at TargetLoc facing Default building facing degrees
      • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
      • Hero - Create Wand of Illusion and give it to (Last created unit)
      • Hero - Order (Last created unit) to use (Item carried by (Last created unit) of type Wand of Illusion) on Target
      • Custom script: call RemoveLocation(udg_TargetLoc)

lol Don't need to do that. Just use ability Wand of Illusion.
However, if you want a trigger to affect these illusion, just pick unit with illusion buff.
  • Unit Group - Pick all unit in 250 of TempLoc matching (Matching unit has buff Illusion equal to true) and do action
 
Status
Not open for further replies.
Top