1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Give a heart of absorption

Discussion in 'Skript' started by Aralwen, Aug 25, 2018.

Thread Status:
Not open for further replies.
  1. Aralwen

    Aralwen Active Member

    Joined:
    May 26, 2017
    Messages:
    164
    Likes Received:
    14
    I am trying to give an absorbing heart to a player, only a heart not two and without effect of particles and regeneration of life.
    I found :
    - apply absorption 1 to player
    - set absorption hearts of player to 1

    but that does not answer my request :/

    I also read the documentation, and unless I do not understand: add 1 absorption hearts to player - Doesn't work


    Code (Skript):
    1. command /abso:
    2.     trigger:
    3.         # ....
    4.         send "&aYou have received an absorption heart."
    Thank's in advance !

     
    #1 Aralwen, Aug 25, 2018
    Last edited: Aug 25, 2018
  2. Best Answer:
    Post #6 by ShaneBee, Aug 25, 2018
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Are you meaning just an extra heart?
    Cause you can do that by:
    set the max health of player to 11
     
  4. Aralwen

    Aralwen Active Member

    Joined:
    May 26, 2017
    Messages:
    164
    Likes Received:
    14
    Yes that's it. But I would like this heart to be an absorption heart x)
    There is a way apparently, but I do not understand how

    https://docs.skunity.com/syntax/search/Absorption%20hearts
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Im not really sure how you dont understand that... i mean it gives an example right on the page
    "set absorption hearts of player to 10"
     
  6. Aralwen

    Aralwen Active Member

    Joined:
    May 26, 2017
    Messages:
    164
    Likes Received:
    14
    Yes that I understood, but I'm not trying to define an absorption, but to give an absorption heart.
    The problem with set is that if someone eats a golden apple, it will not take into account
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    "Returns the amount of absorption hearts a player has. The changers are set, remove/subtract, reset and add"
    So try "add 10 to absorption hearts of player"
     
    • Agree Agree x 1
  8. Aralwen

    Aralwen Active Member

    Joined:
    May 26, 2017
    Messages:
    164
    Likes Received:
    14
    Oh I feel really stupid ...
    I had tried add 10 absorption hearts of player T_T

    Thank you for your patience x)
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Youre welcome.
    When it comes to changers and expressions they all work the same way
    add 10 to %expression%
    remove 10 from %expression%
    set %expression% to 10
     
    • Friendly Friendly x 1
  10. Aralwen

    Aralwen Active Member

    Joined:
    May 26, 2017
    Messages:
    164
    Likes Received:
    14
    Thank you very much, I will remember! x)
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...