• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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>
 
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.
Back
Top