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

stios casting and finishes casting.

Status
Not open for further replies.
hey, i have these 2 triggers that are supposed to activate for different condition, but they activate at the same time.
one says that it has been fired.
the other says it has been cancelled. (ordered to stop or killed before finishing castng)
Ideas?


  • Mortar Bomb Cancel
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Ability being cast) Equal to Mortar Bomb
    • Actions
      • Game - Display to (All players) for 30.00 seconds the text: |cff00ff40A Mortar ...

  • Mortar Bomb Complete
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Mortar Bomb
    • Actions
      • Unit - Kill MortarBomb[(Player number of (Owner of (Triggering unit)))]
      • Trigger - Turn off Mortar Bomb Cancel <gen>
      • Game - Display to (All players) for 30.00 seconds the text: |cffff0000A Mortar ...
      • Trigger - Turn on Mortar Bomb Cancel <gen>
 
Level 13
Joined
Jul 12, 2018
Messages
510
if it's meant to be a channelling spell then i've solved similar problems by basing a spell on channel, then making one trigger that starts with "Unit begins channelling an ability", and making that activate another periodic trigger which periodically picks all units of the relevant type and asks what their current order is. Then you can have your "unit stops casting" outcome be triggered from the branch in the periodic that determines what happens if the hero's current order is no longer the right order ID.

not confident enough to say this is the best solution, but it's a suggestion anyway.
 
Status
Not open for further replies.
Top