Solved I need a variable converter with half of the other 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!

Cupex

Member
Feb 16, 2020
43
1
8
26
I wanted to make a Skript, where you can convert for example {points.%player%} to {money.%player%} but not exactly the same amount but half of the variable. So if you have 5000 in {points.%player%} you get 2500 for the {money.%player%} variable
 
It's quite simple. I've rounded it to stop decimals, but you can always just remove "rounded" from the line below.

code_language.skript:
set {money.%player%} to rounded {points.%player%} / 2