• 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] Skill Triggers Wrong?

Status
Not open for further replies.
Level 2
Joined
Apr 30, 2009
Messages
18
I want This Trigger To Work Normal
but i think its wrong
this skill trigger that i wanna work is like an omnislash but i only need 2 slashess...
take a look

Events
Unit-A Unit begins casting an ability
Conditions
(ability Being Cast)equal to Double Strike
Action
Create a special effect attach to the (weapon+right) of (triggering unit) uing Cripple.
Animation-play (triggering unt) stand ready animation
Wait 0.10 seconds
Unit-Move (triggering unit)instantly to (the ability being cast)
Animation-Play (triggering Unit) Attack Slam animation
Unit-Cause(triggering unit)to damage (ability being cast) Dealing 100.00
attack type hero and damage type normal
Wait 00.30
Unit-Move (triggering unit)instantly to (the ability being cast)
Animation-Play (triggering Unit) Attack animation
Unit-Cause(triggering unit)to damage (ability being cast) Dealing 100.00
attack type hero and damage type normal

the special effect never work and i alwaysgo to the middly of the map
please help me!
 
Level 9
Joined
Nov 4, 2007
Messages
933
What I would do is change triggering unit to casting unit, and i think you mean Unit - Position of unit (Target unit of ability being cast ) instead of (the ability being cast). And also try this for the event: Unit starts the effect of an ability. See if that works
 
Level 3
Joined
May 3, 2009
Messages
41
Hey cloren!

Could I help you make your future posting a bit easier for the readers to understand?
If I can, then please let me give you an tip:

When you make an Topic or an Post about Triggers, and you post an Trigger code
in it, use [ trigger] code to make it much more easy to read.

This is how you can do:
[1] - Copy the Trigger text
Here is an image that will show you how it's done:
copy_as_text.jpg

[2] - In your post, type [Trigger ]-your code-[/Trigger]
[3] - Here's an example:

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Create starting units (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)
If you don't understand how I mean, please PM me!

~ KhaL ~

EDIT:

This is how your Trigger should look like:

  • Your Trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Double Strike
    • Actions
      • Set unit_Casting = (Casting unit)
      • Set point_Ability = (Target point of ability being cast)
      • Special Effect - Create a special effect attached to the right hand of unit_Casting using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Set effect_Special = (Last created special effect)
      • Animation - Play unit_Casting's stand ready animation
      • Wait 0.10 seconds
      • Unit - Move unit_Casting instantly to point_Ability
      • Animation - Play unit_Casting's slam animation
      • Unit Group - Pick every unit in (Units within 200.00 of (Position of unit_Casting) matching (((Matching unit) belongs to an enemy of (Owner of unit_Casting)) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to unit_Group
          • Unit - Cause unit_Casting to damage (Picked unit), dealing 100.00 damage of attack type Hero and damage type Normal
      • Custom script: call DestroyGroup(udg_unit_Group)
      • Custom script: call RemoveLocation(udg_point_Ability)
      • Set unit_Casting = No unit
      • Special Effect - Destroy effect_Special
Hope it works better now =)

Note that this wont work if more than 1 Players cast the spell.
Tell me if you want me to make it MUI for you (multiplayer) :)
 
Status
Not open for further replies.
Top