Arithmetic (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.4.2
Syntax
\(%object%\)[ ]^[ ]\(%object%\)Description
Arithmetic expressions, e.g. 1 + 2, (health of player - 2) / 3, etc.
Examples
set the player's health to 10 - the player's healthloop (argument + 2) / 5 times:
message "Two useless numbers: %loop-num * 2 - 5%, %2^loop-num - 1%"
message "You have %health of player * 2% half hearts of HP!"