| 10-04-2007, 07:28 PM | #1 |
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 |
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 |
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
Obviously adjust to your needs. |
| 10-05-2007, 04:53 AM | #4 |
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 |
You can't base spells from passive abilities, you'll have to trigger those on your own. |
| 10-05-2007, 07:56 PM | #6 |
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. |
