Solved Create World Skript error

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

SandyVerse

Active Member
Mar 19, 2017
51
0
0
33
So, using this code
code_language.skript:
options:
    P: &8[&bServer&8]
 
 
command /createworld <integer>:
    permission: skript.op
    usage: /createworld <radius>
    trigger:
        if arg 1 is a number:
            execute console command "/mvdelete UHC"
            broadcast "&a%command sender% &7is deleting the previous UHC world!"
            wait 5 real seconds
            execute console command "/mvc UHC normal"
            broadcast "&a%command sender% &7is creating a new UHC world!"
            wait 5 real seconds
            make player execute command "/mvtp UHC"
            message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
            wait 15 real seconds
            make player execute command "/shrinkcenter"
            make player execute command "/shrinksize %arg 1 * 2%"
            message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
            wait 15 real seconds
            make player execute command "/wb UHC set %arg-1+1% %arg-1+1% 0 0"
            message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
            wait 15 real seconds
            if arg-1 is 1000:
                make player execute command "/pregen UHC %arg-1+1% 100"
            if arg-1 is 1500:
                make player execute command "/pregen UHC %arg-1+500% 100"

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.)
 
Last edited:
Status
Not open for further replies.