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

[Trigger] Miniturization Trigger

Status
Not open for further replies.
Level 7
Joined
Aug 5, 2010
Messages
147
Trying to make it so when a unit cast an ability on a tower the tower gets destroyed and an item is created in its place. Essentially miniturizing the tower.

Heres the trigger

  • Miniturization
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Miniturization
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Targeted unit)) Equal to Guard Tower
        • Then - Actions
          • Item - Create Mini Arrow Tower at (Position of (Casting unit))
          • Unit - Kill (Targeted unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Targeted unit)) Equal to Cannon Tower
        • Then - Actions
          • Item - Create Mini Cannon Tower at (Position of (Casting unit))
          • Unit - Kill (Targeted unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Targeted unit)) Equal to Arcane Tower
        • Then - Actions
          • Item - Create Mini Arcane Tower at (Position of (Casting unit))
          • Unit - Kill (Targeted unit)
        • Else - Actions
Nothing happens when casting onto the tower, tried all the ability cast events, none worked, tryed using spell based on Chain Lightning and Finger of Death, neither worked.

Im far too tired atm to be able to figure out what im doing wrong.
 
Level 7
Joined
Aug 5, 2010
Messages
147
Don't use " A unit Finishes casting an ability" Use "a unit starts the effect of an ability"

Also, it is not "Targeted unit" but "Target unit of ability being cast".

Use "triggering unit" instead of "casting unit".


I completely forgot "Target unit of ability being cast" was a thing, it fixed it, i really should just go to bed when i get that tired.

Thanks
 
Status
Not open for further replies.
Top