• 🏆 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] spell animation

Status
Not open for further replies.
Level 4
Joined
Apr 9, 2008
Messages
73
i want to creat a circle of animation, i have exactly the same trigger with a fire animation that works but what is wrong in here?

  • Healing Wave animation
    • Events
      • unit - A unit start, casting an ability
    • Conditions
      • (Ability being cast) equal to Healing Wave
    • Actions
      • Set Distance_Healing_Wave = (Facing of (Casting unit))
      • For each (Integer A) from 1 to 24, do (Actions)
        • Loop - Actions
          • Set Distance_Healing_Wave = (Distance_Healing_Wave + 15.00)
          • Unit - Create 1 Healing Wave dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Distance_Healing_Wave degrees
          • Unit - Order (Last created unit) to Untoten-Schreckenslord - 'Aas-Schwarm' ((Position of (Last created unit)) offset by 256.00 towards Distance_Healing_Wave degrees)
          • Unit - Add a 0.50 second Standard expiration timer to (Last created unit)
 
Last edited:
Level 4
Joined
Apr 9, 2008
Messages
73
this is just the animation for a waved sent out of the caster but why doesnt it works

additional info:
the healing_wave dummy has the model .mdl and the ability healing wave circle
that ability bases on carrionswarm but a different animation
 
Level 4
Joined
Apr 9, 2008
Messages
73
ok i found the mistake and fixed it now it works
no i have my final problem then the spell is ready:

before i had the following trigger: that pick all unit in a radius of 500 from the caster and play a special effect on it and heal it, but all units were picks also the enemy's ones.

  • Healing Wave before
    • Events
      • Unit - A unit starts casting an ability
    • Conditions
      • (Ability being cast) equal to Healing Wave
    • Actions
      • Set Healing_Wave_Caster = (Casting unit)
      • Special effect - Create a special effect at (Position of Healing_Wave_Caster) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
      • Special effect - Create a special effect at (Position of Healing_Wave_Caster) using Abilities\Spells\Other\Awaken\Awaken.mdl
      • Sound - Play Tranquility <gen> at 100.00% volume, attached to Healing_Wave_Caster
      • Unitgroup - Pick every unit in (Units within 500.00 of (Position of Healing_Wave_Caster)) and do (Actions)
        • Loop - Actions
          • Special effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
          • Unit - Set life of (Picked unit) to ((life of (Picked unit)) + (((Real((Level of Healing Wave for (Casting unit)))) x 30.00) + 30.00))
so i tryed to fix it that only units allied with the casting units are healed
like this:

  • Healing Wave after
    • Events
      • Unit - A unit starts casting an ability
    • Conditions
      • (Ability being cast) equal to Healing Wave
    • Actions
      • Set Healing_Wave_Caster = (Casting unit)
      • Special effect - Create a special effect at (Position of Healing_Wave_Caster) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
      • Special effect - Create a special effect at (Position of Healing_Wave_Caster) using Abilities\Spells\Other\Awaken\Awaken.mdl
      • Sound - Play Tranquility <gen> at 100.00% volume, attached to Healing_Wave_Caster
      • Unitgroup - Pick every unit in (Units within 500.00 of (Position of Healing_Wave_Caster) matching (((Picked unit) belongs to an ally of (Owner of Healing_Wave_Caster)) Gleich True)) and do (Actions)
        • Loop - Actions
          • Special effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
          • Unit - Set life of (Picked unit) to ((life of (Picked unit)) + (((Real((Level of Healing Wave for (Casting unit)))) x 30.00) + 30.00))
but after I fixed no units got healed
where is the mistake i cant find it.
 
Level 4
Joined
Apr 9, 2008
Messages
73
yiha i found my mistake, it is in the line where the units are picked
right is that:
Unit Group - pick every unit in (units within 500.00 of (position of Healing_Wave_Caster) matching ((owner of (matching unit)) equal to (owner of (Healing_Wave_Caster)) and do (Actions)
 
Status
Not open for further replies.
Top