Solved Skript Math isn't working

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

BryHunter

Member
Jan 10, 2018
35
2
8
27
So I am trying to setup do the following equation, {Test::%player%} can be upgraded and defined to anything in the system I am making but for this example I am going to say it is 100. So the equation should be returning 3 but it keeps returning 1? Can someone tell me what I am doing wrong here <3 Thank you!

P.S. No error messages


Code:
set {_Test} to {Test::%player%}
set {_f} to {_Test}
set {_t} to 1+({_Test}*0.02)
send "&9%{_f}%&7, %{_t}%"

Output:

1693778863157.png
 
Last edited:
{Test::%player%} is probably not a number. Are you sure it's not a string?
 
Oh my
{Test::%player%} is probably not a number. Are you sure it's not a string?
Your a genius thank you so much! I did indeed have it registered as a [<text>] changed to [<integer>] works perfect now <3
 
  • Like
Reactions: Sovde