Spell help :D

aki15

New Member
Reaction score
5
Hi everyone... I'm trying to create spell that should do this:
When hit someone it will deal 4/8/12/16% of unit being hit max life?
How can i do this ?
 

Mythes

Member
Reaction score
7
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to YOUR ABILITY
    • Actions
      • Set TargetHP = (Life of (Target unit of ability being cast))
      • Unit - Set life of (Target unit of ability being cast) to (TargetHP - ((Max life of (Target unit of ability being cast)) x 0.04))



Just change the 0,04 to the percentage that you want it to remove.
TargetHP = Real variable

Myt.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to YOUR ABILITY
    • Actions
      • Set TargetHP = (Life of (Target unit of ability being cast))
      • Unit - Set life of (Target unit of ability being cast) to (TargetHP - ((Max life of (Target unit of ability being cast)) x 0.04))



Just change the 0,04 to the percentage that you want it to remove.
TargetHP = Real variable

Myt.

It would be better to cause triggering unit to damage target unit of ability. Setting the life like this, the damage source will not be the caster.
 

tommerbob

Minecraft. :D
Reaction score
110
It would be better to cause triggering unit to damage target unit of ability. Setting the life like this, the damage source will not be the caster.

In addition to this, change

Trigger:
  • Set TargetHP = (Life of (Target unit of ability being cast))


to

Trigger:
  • Set TargetHP = (Max Life of (Target unit of ability being cast))
 

Devalut

TH.net Regular
Reaction score
7
Hi everyone... I'm trying to create spell that should do this:
When hit someone it will deal 4/8/12/16% of unit being hit max life?
How can i do this ?



hey made this for you, it shows three examples of base spells for the use, easy to use.

1. Acid bomb, has no ill effects, does not interrupt channeling or the current orders of units.
2. Fire bolt, gets the job done, but at the cost of interrupting channeling or current orders of units.
3. Channel, this is a rather famous spell, but lacks the missile effect forcing it to be only an instant cast spell.

All Three follow the effect of your request, dealing a percentage based on the targets maximum health. Enjoy!

Regards D.

Two of the spells use Weep's GUI-Friendly Damage Detection, so if you use this and like it consider thanking him for the awesome system.

http://www.thehelper.net/forums/showthread.php/137957-GUI-Friendly-Damage-Detection
 

Attachments

  • Requested Spell.w3x
    409.4 KB · Views: 158
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top