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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Sry, this is my first time posing about my skript... i dont know how to do itCan you please format the code using the plus button above the text field? Thank you!
on death:
if victim is a zombie:
add 1 to {%attacker%.xp}
message "{@nikel}XP: [%{%attacker%.xp}% / %{%attacker%.lvlxp}% ]" to attacker
if {%attacker%.xp} >= {%attacker%.lvlxp}:
message "{@nikel} Level Up!" to attacker
add 20 to {%attacker%.lvlxp}
set {%attacker%.xp} to 0
It's all good <3Sry, this is my first time posing about my skript... i dont know how to do it
but i tried to post picture of my code
man,,, how did u do that?Also I believe this could be it
code_language.skript:on death: if victim is a zombie: add 1 to {%attacker%.xp} message "{@nikel}XP: [%{%attacker%.xp}% / %{%attacker%.lvlxp}% ]" to attacker if {%attacker%.xp} >= {%attacker%.lvlxp}: message "{@nikel} Level Up!" to attacker add 20 to {%attacker%.lvlxp} set {%attacker%.xp} to 0
thanks~! and what's wrong with my code..?In the bar above the text field, ie. B I U (water drop) T! A etc. there is a little + sign in a square. Click on it, click Code, select Skript, and paste your code into the text pop-up.
"zombie"
a zombie
entity is a zombie
victim is a zombie
OMG victim is a zombie was right thanks for help!You putinstead ofcode_language.skript:"zombie"
. The difference is one is a text, and one is parsed by Skript as an entity-type. Also, you putcode_language.skript:a zombie
when I believe it should becode_language.skript:entity is a zombie
, however I'm not entirely sure. If it makes you feel better I made both of these errors today and that's why I could solve it so quickly ;Dcode_language.skript:victim is a zombie