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

Immage problem

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
Yo guys i made a dummy unit that casts a Item Immage On a unit
but how do (set MyitemImmage = Last Mirror image that was created)
i cant figure out

More Info:
  • Broodmother Memory Egg
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Memory Egg Broodmother
    • Actions
      • Set HeroBroodmotherMemoryEggCaster = (Triggering unit)
      • Set HeroBroodmotherMemoryEggPoint = ((Position of (Triggering unit)) offset by -150.00 towards (Facing of (Triggering unit)) degrees)
      • Unit - Create 1 Memory Egg Sack for (Owner of (Triggering unit)) at HeroBroodmotherMemoryEggPoint facing Default building facing (270.0) degrees
      • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit Memory Egg for (Owner of (Triggering unit)) at (Center of Dummy units <gen>) facing Default building facing (270.0) degrees
      • Set HeroBroodmotherMemoryEggDummy = (Last created unit)
      • Hero - Give (Last created unit) a Memory Egg in slot 1
      • Set HeroBroodmotherMemoryEggItem = (Last created item)
      • Wait 4.99 seconds
      • Hero - Order HeroBroodmotherMemoryEggDummy to use (Item carried by HeroBroodmotherMemoryEggDummy in slot 2) on HeroBroodmotherMemoryEggCaster
      • Wait 0.10 seconds
      • Unit - Remove HeroBroodmotherMemoryEggDummy from the game
  • Broodmother Memory Summon Copy
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Triggering unit) Equal to (==) HeroBroodmotherMemoryEggDummy
    • Actions
      • Game - Display to (All players) the text: IT runs 2
      • Unit - Move (Summoned unit) instantly to HeroBroodmotherMemoryEggPoint
  • Immage isent summoned unit and well there is no summoned unit how i check THE image ?
    • Custom script: call RemoveLocation (udg_HeroBroodmotherMemoryEggPoint)
    • Unit - Remove HeroBroodmotherMemoryEggDummy from the game
Im redy to redo all :) cuz i see this aint working
 
Level 12
Joined
Apr 16, 2010
Messages
584
Well, there's no action to check last created image, BUT you can create another trigger:
when you order to cast mirror image turn on New trigger
  • New trigger
  • Events
  • A unit enters a map
  • Conditions
  • (Entering Unit) is summoned equal to True //or that isn't summoned, well it's under Boolean>Unit Classification Check
  • Actions
  • Set DummyImage = Last Created Unit
Something like that, you could also add more conditions to specify more

Edit: found
  • ((Triggering unit) is an illusion) Equal to True
 
Level 7
Joined
May 18, 2010
Messages
264
OH thx

((Triggering unit) is an illusion) Equal to True
took me some time to find it :D
 
Status
Not open for further replies.
Top