If Variable is greater than...

  • 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 community!

    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.

iCritiqing

Member
Jul 4, 2017
13
0
1
Skript Version:
Lastest
Minecraft Version:
Spigot 1.8.8, but with ViaVersion, so its 1.8.x - 1.12.x
---
Full Code:
Code:

https://pastebin.com/tiNi2kgN

Errors on Reload:
No Errors, but it wont work

Other Useful Info:
So i want for the shop part
code_language.skript:
command /coinshop6667:
    trigger:
        wait 3 ticks
        open chest with 3 row named "&e&lCoins&b&lShop" to player
        if {points.%player%} is greater than 999:
            format slot 10 of player with 1 gold ingot named "&e10K Coins" with lore "&7Price: 1000 Points!" to close then run [make console execute command "/sw coins add %player% 10000"]
        else:
            format slot 10 of player with 1 coal block named "&c10K Coins" with lore "&7Price: 1000 Points!" to be unstealable
        format slot 18 of player with 1 nether star named "&cClose" with lore "" to close
        format slot 22 of player with 1 emerald named "&6Player Info" with lore "&7Points: &6%{points.%player%}%" to be unstealable
        format slot 26 of player with 1 arrow named "&cBack" with lore "" to close then run [make player execute command "/ranked shop"]
To make it so that you can only buy it if your {points.%player%} is bigger than 999, but when i try that code above, it always shows the else part(the one that uses a coal block and unstealable...)

Here's another Shops
code_language.skript:
command /vdance6667:
    trigger:
        wait 3 ticks
        open chest with 3 row named "&e&lVictory&b&lDance" to player
        if {points.%player%} is greater than 2499:
            format slot 12 of player with 1 dragon egg named "&bDragon Rider!" with lore "&7Price: 2500 Points!" to close then run [make console execute command "/vicdance6667 buy DRider %player%"]
        else:
            format slot 12 of player with 1 dragon egg named "&cDragon Rider!" with lore "&7Price: 2500 Points!" to be unstealable
        if {dragonrider.%player%} is true:
            if {dragonrider.%player%.enabled} is false:
                format slot 12 of player with 1 dragon egg named "&bDragon Rider!" with lore "&7Status: &cDisabled" to close then run [make console execute command "/vicdance6667 toggle DRider %player%"]
            else:
                format slot 12 of player with 1 dragon egg named "&bDragon Rider!" with lore "&7Status: &aEnabled" to close then run [make console execute command "/vicdance6667 toggle DRider %player%"]
              
              
        if {points.%player%} is greater than 1999:
            format slot 14 of player with 1 saddle named "&bHorse Rider!" with lore "&7Price: 2000 Points!" to close then run [make console execute command "/vicdance6667 buy UHorse %player%"]
        else:
            format slot 14 of player with 1 saddle named "&cHorse Rider!" with lore "&&7Price: 2000 Points!" to be unstealable
        if {horse.%player%} is true:
            if {horse.%player%.enabled} is false:
                format slot 14 of player with 1 saddle named "&cHorse Rider!" with lore "&7Status: &cDisabled" to close then run [make console execute command "/vicdance6667 toggle UHorse %player%"]
            else:
                format slot 14 of player with 1 saddle named "&bHorse Rider!" with lore "&7Status: &aEnabled" to close then run [make console execute command "/vicdance6667 toggle UHorse %player%"]
        format slot 18 of player with 1 nether star named "&cClose" with lore "" to close
        format slot 22 of player with 1 emerald named "&6Player Info" with lore "&7Points: &6%{points.%player%}%" to be unstealable
        format slot 26 of player with 1 arrow named "&cBack" with lore "" to close then run [make player execute command "/ranked shop"]

The
code_language.skript:
        if {dragonrider.%player%} is true:
            if {dragonrider.%player%.enabled} is false:
                format slot 12 of player with 1 dragon egg named "&bDragon Rider!" with lore "&7Status: &cDisabled" to close then run [make console execute command "/vicdance6667 toggle DRider %player%"]
            else:
                format slot 12 of player with 1 dragon egg named "&bDragon Rider!" with lore "&7Status: &aEnabled" to close then run [make console execute command "/vicdance6667 toggle DRider %player%"]
and
code_language.skript:
        if {horse.%player%} is true:
            if {horse.%player%.enabled} is false:
                format slot 14 of player with 1 saddle named "&cHorse Rider!" with lore "&7Status: &cDisabled" to close then run [make console execute command "/vicdance6667 toggle UHorse %player%"]
            else:
                format slot 14 of player with 1 saddle named "&bHorse Rider!" with lore "&7Status: &aEnabled" to close then run [make console execute command "/vicdance6667 toggle UHorse %player%"]
is to make it toggleable between on and off

Addons using (including versions):
- Wild Skript(lastest)
- Skript(lastest)
- SkRayFall(lastest)
- SkQuery(lastest)

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
Well i tried to make %{points.%player%}% but it says that it isn't an entity
 
Status
Not open for further replies.