Solved Add percentage of variable to variable

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

Ronnoc2w

Member
Feb 20, 2019
15
0
0
Germany
shop.skyplots.de
Hello guys, I want to make a skript so you can add percent of a variable to a variable. I think my code explains what I mean:

Code:
command /test:
    trigger:
        send "CN: 50 +10%%"
        set {_test} to 50
        add 10% of {_test} to {_test}
        send "NN: %{_test}%"

Thanks already :emoji_grinning:
[doublepost=1577978560,1577907615][/doublepost]Guys wanted to say I just used the form of percentage means 10% of 50 = 50 : 100 • 10
 
Status
Not open for further replies.