Skript+/Variables
Appearance
< Skript+
Now, it's time for: variables!
To create a variable in Skript+, you need to type as following:
%x%: 8
Or, if you like, there is a alterative:
4*6 => %y%
Examples
[edit | edit source]This example calculates the square of 5:
5 => %x% %x%*%x% => %y% Output: The square of %x% is: %y%
This example outputs "Hi! This is Skript+!" on the chat:
'Hi! This is Skript+!' => %x% Output: %x%
Exercise
[edit | edit source]Write a program to print the sum of 12 and 31.