Give anyone new max health.

  • 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.

Stijn

Member
Feb 16, 2017
12
1
0
20
Hello! I want to make in my server a Level System. I want that if i do /levelII (player) to give the player a new maximum health. I don't now how. Can you guys help me? Thanks! This is my script:


command /levelII [<text>]:
trigger:
set the maximum health of player {%arg 1%} to 20
heal the player {%arg 1%}
 
Check this:
code_language.skript:
on command /levelII [<player>]:
    trigger:
        if arg-1 is set:
            set max health of %arg-1% to 20
        else:
            set max health of player to 20
 
It says: can't understand this condition/effect: set max health of %arg-1% to 20
Check this:
code_language.skript:
on command /levelII [<player>]:
    trigger:
        if arg-1 is set:
            set max health of arg-1 to 20
        else:
            set max health of player to 20
 
Thanks for the help!
[doublepost=1487270750,1487270258][/doublepost]Only one problem. How can i tell a message to a player?
I did this:
message arg-1 "text"
 
  • Like
Reactions: zuhir__
Status
Not open for further replies.