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

wand of illusion image

Status
Not open for further replies.
Level 4
Joined
Aug 30, 2017
Messages
34
im making a hero that has chance for his illusions to duplicate on attack. the normal ilusions created from hero do 20% damage and take 400. should i make a second wand ability that does/ takes 100% for the images or does wand use the original units stats if used on image? edit: nevermind wand on illusions uses original units stats
 
Last edited:
Level 4
Joined
Aug 30, 2017
Messages
34
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of juxtapose (Icon) for (Attacking unit)) Equal to 1
      • (Random integer number between 1 and 100) Less than or equal to 12
      • ((Attacking unit) is A Hero) Equal to True
    • Actions
      • Set VariableSet paladin[(Player number of (Owner of (Attacking unit)))] = (Attacking unit)
      • Set VariableSet temp[(Player number of (Owner of (Attacking unit)))] = (Position of (Attacking unit))
      • Unit - Create 1 Sorceress (dummy) for (Owner of (Attacking unit)) at temp[(Player number of (Owner of (Attacking unit)))] facing Default building facing degrees
      • Set VariableSet dummy[(Player number of (Owner of (Attacking unit)))] = (Last created unit)
      • Unit - Add Item Illusions to (Last created unit)
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Custom script: call IssueTargetOrderById( udg_dummy[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))],852274, udg_paladin[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))] )
      • Custom script: call RemoveLocation(udg_temp[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))])
is this going to work if multiple heros have the ability? i made all the variables array and use the player number to separate them
 
Level 13
Joined
Feb 5, 2018
Messages
567
I don't think a skill like this has to be MUI or MPI, unless you want to set maxium number of illusions per hero/player. Since this trigger runs instantly and has no loops or waits.

MPI is good enough, if one player cannot have 2 exact same heroes.

A unit indexer is a good and easy way to make a skill like this MUI.

You should make a integer variable to store the player number.

Setvariable TempInteger = Player number of (owner of (attacking unit))
 
Last edited:
Status
Not open for further replies.
Top