• 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.

Autocast Spell that uses HP?

Status
Not open for further replies.
Level 2
Joined
Jun 10, 2012
Messages
29
This may do it, but I'm not sure.
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to (The Ability)
  • Actions
    • Unit - Cause (Casting Unit) to damage (Casting unit), dealing (#) damage of attack type (Spells) and damage type (Normal)
Words enclosed in parenthesis are changeable.
 
Level 11
Joined
Sep 14, 2009
Messages
284
Yes it's possible but you would need a Damage Detection system for that. Look for the Order string in the object editor. Sorry for my ugly triggers.

Trigger 1
  • Events
    • Unit - A unit is issued an order
  • Conditions
    • Order Comparison - Issued order equal to (flamingarrows)
  • Actions
    • Turn on (Trigger 2)
Trigger 2
  • Events
    • A unit takes damage
  • Conditions
    • Integer Comparison - Level of (Searing Arrows) for DamageScource Greater than or equal to 1
  • Actions
    • Your effects here
Trigger 3
  • Events
    • Unit - A unit is issued an order
  • Conditions
    • Order Comparison - Issued order equal to (unflamingarrows)
  • Actions
    • Turn off (Trigger 2)
 
Level 11
Joined
Sep 14, 2009
Messages
284
But do you have a damage detection system? Attack events won't work here since it needs to be MUI right?

The triggers I posted is the way to do it. But as I said a DDS system is required.
If you can upload the map I can take a look at it, and if you want also import a DDS system, then I can easily make it for you.
 
Status
Not open for further replies.
Top