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

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