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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Which company do you work for?
  • vypur85 vypur85:
    Haha yea they'd compare my country as well...
  • vypur85 vypur85:
    Hmm i don't receive any pm? Maybe I'm using my phone. Gonna check it out using my pc later.
  • vypur85 vypur85:
    I'm teaching A Levels in a school in Wuhan.
  • jonas jonas:
    You should see a "private conversations" tab in the chatbox, that's where I sent it to you
    +1
  • jonas jonas:
    Wow
  • jonas jonas:
    Is the school system in your country similar to Chinese school system? I could never imagine being a teacher in a Chinese school, what's expected of students and teachers is just so different from what I'd be looking for as a teacher
  • vypur85 vypur85:
    A Levels is based on the UK syllabus offered internationally. So the syllabus is similar throughout different countries, taught in english.
  • vypur85 vypur85:
    I can't speak or write or read much chinese... Too difficult....... Which also makes my life here in china a lil difficult.
  • jonas jonas:
    Oh, I see. I thought Chinese version of A-levels :D
  • jonas jonas:
    I've been using the translate app a lot on my phone. take a photo, translate. take another photo, translate again :D
  • jonas jonas:
    it also has voice translation, my colleagues sometimes use that
  • jonas jonas:
    You came during the 0 covid policy right? How'd you get through quarantine? Did you have some help with the apps and green codes?
  • tom_mai78101 tom_mai78101:
    If you have any Chinese you need help with, let me know.
  • vypur85 vypur85:
    @jonas Those were the things I did too. Translate app and VPN are always the most important things to have to survive. Lol.
  • vypur85 vypur85:
    Yea I came last year. I was quarantined for about 30 days. Fml. The first day of my quarantine was the eve of Chinese new year last year. Fml again... Lol.
  • vypur85 vypur85:
    @tom_mai78101 IIRC you're from Taiwan right.
  • The Helper The Helper:
    I thought China had cracked down on having any foreign teachers?
  • vypur85 vypur85:
    Yeah I've heard of the news before. My school is still actively hiring foreign teachers. Not sure how things work now.
  • The Helper The Helper:
    yeah it is hard to get reliable information about that kind of stuff
  • The Helper The Helper:
    but you are doing it so it is still doable
  • vypur85 vypur85:
    I think it doesn't affect existing foreign teachers. Then again, its still weird that my school is hiring.
  • The Helper The Helper:
    Happy Monday people hope everyone has a fantastic week!
  • Ghan Ghan:
    Happy Monday?! That's a contradiction.

    The Helper Discord

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top