1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Different Decimal Place for Different calculations

Discussion in 'Skript' started by ZhengYueMoon, Apr 24, 2022.

Thread Status:
Not open for further replies.
  1. ZhengYueMoon

    ZhengYueMoon New Member

    Joined:
    Mar 9, 2022
    Messages:
    5
    Likes Received:
    0
    Hi! Im kinda a newbie to skript , I was making my custom RPG system , and i have a attributes system which have a function while with right click it can add half of ur points avaliable in it , but i need it end up with NO decimal so it wont break if the points remaining is a odd number, but i want to have a speed rate multiply system , and player's default walk speed is 0.2 , and i want to make it go like 0.2 * {_speedrate) something like that , but since i set the number accuracy to 0 , it end up be 0 if the rate is like below 10 , so can i go like no decimal for the attributes calculation and with decimal in the speed rate calculation?
     
  2. Best Answer:
    Post #2 by Minecoll_YT, Apr 24, 2022
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    This is confusing as hell. You can cut off the decimal, round up/down or use integers instead of numbers
     
  4. ZhengYueMoon

    ZhengYueMoon New Member

    Joined:
    Mar 9, 2022
    Messages:
    5
    Likes Received:
    0
    Oh yeah, why dont i think it sooner, i can use integer, i am real dumb
     
Thread Status:
Not open for further replies.

Share This Page

Loading...