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 our 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 Create World Skript error

Discussion in 'Skript' started by SandyVerse, May 17, 2017.

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

    SandyVerse Well-Known Member

    Joined:
    Mar 19, 2017
    Messages:
    51
    Likes Received:
    0
    So, using this code
    Code (Skript):
    1. options:
    2.     P: &8[&bServer&8]
    3.  
    4.  
    5. command /createworld <integer>:
    6.     permission: skript.op
    7.     usage: /createworld <radius>
    8.     trigger:
    9.         if arg 1 is a number:
    10.             execute console command "/mvdelete UHC"
    11.             broadcast "&a%command sender% &7is deleting the previous UHC world!"
    12.             wait 5 real seconds
    13.             execute console command "/mvc UHC normal"
    14.             broadcast "&a%command sender% &7is creating a new UHC world!"
    15.             wait 5 real seconds
    16.             make player execute command "/mvtp UHC"
    17.             message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
    18.             wait 15 real seconds
    19.             make player execute command "/shrinkcenter"
    20.             make player execute command "/shrinksize %arg 1 * 2%"
    21.             message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
    22.             wait 15 real seconds
    23.             make player execute command "/wb UHC set %arg-1+1% %arg-1+1% 0 0"
    24.             message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
    25.             wait 15 real seconds
    26.             if arg-1 is 1000:
    27.                 make player execute command "/pregen UHC %arg-1+1% 100"
    28.             if arg-1 is 1500:
    29.                 make player execute command "/pregen UHC %arg-1+500% 100"
    30.            
    I want the /shrinksize to be doubled from the argument. As in, if the argument is "1000", I want the shrinksize to be "2000". However, it doesn't do that, it just subtracts the first argument by 2. Any help? (There are no errors in console, it's just being weird with the multiplication.)
     
    #1 SandyVerse, May 17, 2017
    Last edited: May 18, 2017
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Try
    Code (Skript):
    1. "%(arg-1) * 2%
     
Thread Status:
Not open for further replies.
Loading...