• 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] Auto cast skill ! Help

Status
Not open for further replies.
Level 8
Joined
Sep 7, 2008
Messages
320
  • Autocast Spell
  • Events
  • Unit - A unit Is issued an order targeting an object
  • Conditions
  • (Issued order) Equal to (Order(flamingarrows))
  • Actions
  • Actions :Unit - Cause (Order unit) to damage (Target unit of issused order), dealing 200 damage of attack type Chaos and damage type Normal
I have made Searing Arrows skill with Chaos dmg but it not work :cry:
 
Last edited by a moderator:
Level 8
Joined
Mar 23, 2007
Messages
302
U have to know that Autospells have 2 ways they work.

A) they can be casted by klicking them and then klicking on target

B) they can be turned to "autocast" , this means that the unit
does not cast that spell, it just works whenever the unit attacks.

(counts only for attack autospells)

im very sorry i cant help u more, but it seems like u totaly fail here
with thaT TRigger.
It could be smting lik this:

whenever a unit is attacked

attacker has Autocast on

Deal damage

greets equal
 
Level 8
Joined
Sep 7, 2008
Messages
320
U have to know that Autospells have 2 ways they work.

A) they can be casted by klicking them and then klicking on target

B) they can be turned to "autocast" , this means that the unit
does not cast that spell, it just works whenever the unit attacks.

(counts only for attack autospells)

im very sorry i cant help u more, but it seems like u totaly fail here
with thaT TRigger.
It could be smting lik this:

whenever a unit is attacked

attacker has Autocast on

Deal damage

greets equal
You can try my test map , it work on "heal" :xxd: but not work on "Searing Arrows"
 

Attachments

  • Test.w3x
    74.3 KB · Views: 63
Level 15
Joined
Dec 18, 2007
Messages
1,098
Technically, when your autocast spell is an attack modifier (searing arrows etc.), the unit does not really cast the spell, there is a way to make it for all I know but I am not sure whether there are better ways. I'll check the map out and reply ASAP.
EDIT: Ok... I have no idea what you want the autocast to trigger so I will tell you how to do the thing. You will need 3 triggers and a unit group variable named something like "[NameOfYourAbility]AutoCasters.
First trigger.
Event- Unit activates YourAbility (forgot whether its activate or turn on)
Condition
Action- Add Triggering Unit to the unit group variable
Second Trigger.
Event- A unit is attacked
Condition- Unit is in the unit group variable
Action- Do whatever you want
Third Trigger.
Event- A unit is issued an order targetting a unit.
Condition- Issued order equals to Your Ability
Action- Do whatever you like.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Heal is a cast spell. The autocast basically detects a viable target to chain cast appon. When casting it acts as if the player manually has order it to cast the spell but it is done by the WC3 code that handles heal type autocasts.

Most autocast arrow spells are handled differently. When autocast, the affect of the arrow is added to the units normal attack and thus the ability is not cast. It works fine if you manually order the unit to use the arrow as then it is physically cast, however when autocast it becomes the units normal attack and thus has to be detected by detecing the unit's attacks. This is most noticable when you try and increase a unit's range via an autocast arrow spell, as they only use it up to their maximum range although you may be manually able to cast it a long distance away.

To detect a unit's attack, a JASS script is needed that detects when a unit attacks and then detects if the attack impacts the target. The actions fire on impact if it passes the dectection test.
 
Level 8
Joined
Sep 7, 2008
Messages
320

Attachments

  • 1.JPG
    1.JPG
    16.4 KB · Views: 123
  • untitled.JPG
    untitled.JPG
    23.1 KB · Views: 98
  • 2.JPG
    2.JPG
    67.9 KB · Views: 135
Level 15
Joined
Dec 18, 2007
Messages
1,098
The trigger will lag like **** after the amount of units in the map increases... I am not sure why it is not working but what is the ability that your impetus skill is based off? Frost arrows? Searing Arrows?
Also, use the triggers tag next time. Just copy your trigger as text in WE and paste in the trigger tags.
 
Status
Not open for further replies.
Top