• 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] What's wrong with this trigger? :(

Status
Not open for further replies.
Level 2
Joined
Jan 24, 2012
Messages
28
  • Impetus
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Impetus
    • Actions
      • Set Impe_Unit = (Target unit of ability being cast)
      • Set Impe_Caster = (Triggering unit)
      • Set Pos_Unit = (Position of Impe_Unit)
      • Set Pos_Caster = (Position of Impe_Caster)
      • Set ImpeDamage[1] = (0.40 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
      • Set ImpeDamage[2] = (0.45 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
      • Set ImpeDamage[3] = (0.50 x (Distance between (Position of Impe_Caster) and (Position of Impe_Unit)))
      • Wait until ((Life of Impe_Unit) Equal to ((Life of Impe_Unit) - (Damage taken))), checking every 0.50 seconds
      • If ((Level of Impetus for Impe_Caster) Equal to 1) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[1] damage of attack type Chaos and damage type Force) else do (Do nothing)
      • If ((Level of Impetus for Impe_Caster) Equal to 1) then do (Floating Text - Create floating text that reads (String(ImpeDamage[1])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
      • If ((Level of Impetus for Impe_Caster) Equal to 2) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[2] damage of attack type Chaos and damage type Force) else do (Do nothing)
      • If ((Level of Impetus for Impe_Caster) Equal to 2) then do (Floating Text - Create floating text that reads (String(ImpeDamage[2])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
      • If ((Level of Impetus for Impe_Caster) Equal to 3) then do (Unit - Cause (Triggering unit) to damage Impe_Unit, dealing ImpeDamage[3] damage of attack type Chaos and damage type Force) else do (Do nothing)
      • If ((Level of Impetus for Impe_Caster) Equal to 3) then do (Floating Text - Create floating text that reads (String(ImpeDamage[3])) above Impe_Unit with Z offset 25.00, using font size 10.00, color (0.00%, 25.00%, 100.00%), and 0.25% transparency) else do (Do nothing)
      • Wait 0.75 seconds
      • Floating Text - Destroy (Last created floating text)
      • Custom script: call RemoveLocation(udg_Pos_Caster)
      • Custom script: call RemoveLocation(udg_Pos_Unit)
Help me everyone...
everytime I cast this spell, why the dryad animation speed is very fast? :(
 

Attachments

  • Spell Test Map.w3x
    20 KB · Views: 48
Level 37
Joined
Mar 6, 2006
Messages
9,243
The ability uses the unit's attack speed when you cast it. The unit has low base cooldown and lots of agility. Agility increases attack speed.

The spell should look like this:
  • Impetus
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Impetus
    • Actions
      • Set Impe_Unit = (Target unit of ability being cast)
      • Set Impe_Caster = (Triggering unit)
      • Set Pos_Unit = (Position of Impe_Unit)
      • Set Pos_Caster = (Position of Impe_Caster)
      • Set ImpeDamage[1] = ((0.35 + (0.05 x (Real((Level of (Ability being cast) for Impe_Caster))))) x (Distance between Pos_Caster and Pos_Unit))
      • Custom script: call RemoveLocation(udg_Pos_Caster)
      • Custom script: call RemoveLocation(udg_Pos_Unit)
      • Unit - Cause Impe_Caster to damage Impe_Unit, dealing 100.00 damage of attack type Spells and damage type Normal
      • Floating Text - Create floating text that reads (String(ImpeDamage[1])) above Impe_Unit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.50 seconds
I didn't use the wait since I'm unsure what you want to achieve with it. There is no Damage taken event response for Starts the effect of an ability event.
 
Level 2
Joined
Jan 24, 2012
Messages
28
wow that's work :grin:

but, the dryad animation speed still very fast.. :(
and also when the spell become autocast, the trigger won't active :(

anyone know how to fix it ?
 
Status
Not open for further replies.
Top