• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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