spigot: 1.14.1
skript: 2.4 beta
code
So this is the function I am trying to use https://skriptlang.github.io/Skript/functions.html#round
now random number between 10 and 25 gives doubles number (like for example 24.44 or 11.25) and the functions explain something like this round(2.34) = 2
and I don't know how to use this I don't get it please help me
skript: 2.4 beta
code
Code:
command /ftest:
trigger:
spawn a zombie
equip the last spawned zombie with leather helmet
set {_test} to a random number between 10 and 25
message "%{_test}%"
round({_test})
wait a tick
message "%{_test}%"
set the last spawned zombie's max health to {_test}
set last spawned zombie's health to 999
wait 0.1 second
set the last spawned zombie's display name to "&c%last spawned zombie's health%"
now random number between 10 and 25 gives doubles number (like for example 24.44 or 11.25) and the functions explain something like this round(2.34) = 2
and I don't know how to use this I don't get it please help me