Solved Processing equation

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

Status
Not open for further replies.

XRexor

New Member
Jan 26, 2017
7
0
0
31
so i stored an equation in yaml file, the equation is :

Code:
125*[level]*2

which i will replace the [level] with player level.

The question is how to process the equation after i replace the [level] with number
 
If the operators are only * splitting them is working, but how about if there are multiple operator i tried to use evaluate but i can't understand how the syntax work

I tried

Code:
evaluate "set {_a} to {_t}" // {_t} is the equation
broadcast {_a}

And the result is still same
 
Use evaluate "set {_a} to %{_t}%"
 
Try this:
code_language.skript:
evaluate "set {_a} to %{_t}%"
broadcast "%{_t}% = %{_a}%"
 
  • Like
Reactions: XRexor
Status
Not open for further replies.