Jump to content

Skript ranks


Basic

Recommended Posts

command /test:
    add 1 to {test}
        send "%{test}%"
    Trigger:
        If {test} is 0 or 1:
            If player's balance is between 2500 and 1000000:
                message "&aYour rank is raised to B!"
                remove 25000 from player's balance
            Else:
                message "&cThe requirement is not met!"
        Else:
            If {test} is 1:
                If player's balance is between 5000 and 1000000:
                    message "&aYour rank is raised to C!""
                    remove 5000 from player's balance
                Else:
                    message "&cThe requirement is not met"
            Else:
                If {test} is 2:
                    If player's balance is between 150000 and 1000000:
                        message "&aYour rank is raised to D!"
                        remove 10000 from player's balance
                    Else:
                        message "&cThe requirement is not met"

 

Help me with my script, it doesn't work

Link to comment
Share on other sites

  • 1 month later...

Error? What's the issue?

 

* Sorry, I just realised I necroposted.

Edited by Migqy

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

You have code before "trigger:", all code has to be after it

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

command /test:
    trigger:
    	add 1 to {test}
        send "%{test}%"
        if {test} is 0 or 1:
            if player's balance is between 2500 and 1000000:
                message "&aYour rank is raised to B!"
                remove 25000 from player's balance
            else:
                message "&cThe requirement is not met!"
        else:
            if {test} is 1:
                if player's balance is between 5000 and 1000000:
                    message "&aYour rank is raised to C!""
                    remove 5000 from player's balance
                else:
                    message "&cThe requirement is not met"
            else:
                if {test} is 2:
                    if player's balance is between 150000 and 1000000:
                        message "&aYour rank is raised to D!"
                        remove 10000 from player's balance
                    else:
                        message "&cThe requirement is not met"

No need for all the caps aswell

Developer

Skript, HTML, CSS, PHP, Java, JavaScript, Python, Lua

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...