Solved Damage a value

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aralwen

Active Member
May 26, 2017
164
14
18
25
Hello, I have a huge problem that blocks me completely. I am looking to put in half damage the life of the player. The thing I do not understand is that with the variable, the code does not work, and without it works ...

Code doesn't work:

code_language.skript:
command /dmg:
    trigger:
        set {ActualVote} to player
        set {ActualVote}'s max health to 5
        set {_health} to {ActualVote}'s health / 2
        damage {ActualVote} by {_health} hearts #That doesn't work


Code work:

code_language.skript:
command /dmg:
    trigger:
        set {ActualVote} to player
        set {ActualVote}'s max health to 5
        set {_health} to {ActualVote}'s health / 2
        damage player by {_health} hearts #That work ...


Can you help me? x:
 
Status
Not open for further replies.