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

[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