HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some about Attacks

10-04-2007, 07:28 PM#1
zetanno
I tried to do some acts when a hero with a specific ability attacks. I've created some using triggers but are too common. I wanted to create a Spell using a dummy unit with triggers.But using triggers i saw that i can't order dummy units to move to location of targeted unit.WHY?
PLEASE GIVE ME NEW ideas using triggers or JASS codes +REP for help
10-04-2007, 07:34 PM#2
Salbrismind
What exactly do you want? Do you want a certain trigger to go off if a hero has a certain ability on them, has autocast on, or has a buff on them? Do you want the trigger run only when a hero casts a certain ability?
10-04-2007, 07:49 PM#3
Anopob
If it's an ability, do the event unit starts the effect of an ability, check if it's the right spell, and then do actions. From your "I wanted to create a Spell using a dummy unit with triggers.But using triggers i saw that i can't order dummy units to move to location of targeted unit", YES YOU CAN. Do Unit - issue (dummy unit here, eg. lastcreatedunit) order target point and for point do position of TARGETED UNIT AS ABILITY.

EDIT: Like this:

Trigger:
Spell
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Your Spell
Collapse Actions
Unit - Create 1 Dummy for Player 1 (Red) at (Position of (Casting Unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Move To (Position of (Target unit of ability being cast))

Obviously adjust to your needs.
10-05-2007, 04:53 AM#4
zetanno
Anopob was right about a part of my question.But about on attack templates.I want a certain trigger to activate when a hero with a certain passive ability attacks.That ability can be based on Critical Strike or Evasion .To see an example go to wc3campaigns.net Resources >Demo Maps >Simples >On Atack Template .I want to create some spells like in that map
10-05-2007, 09:09 AM#5
Tide-Arc Ephemera
You can't base spells from passive abilities, you'll have to trigger those on your own.
10-05-2007, 07:56 PM#6
Anopob
Yeah. If you want a complex (or not) passive spell, you usually have to trigger it. Passive spells are there just to show an icon and give you a description.

EDIT: I checked the link you pointed too. Yes you do have to trigger those.