Variables...

  • 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
So in my skript, i have the variable {points::%player%}
but in one of the line of my codes i have

code_language.skript:
        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
But it still won't format my 12th slot with 1 dragon egg named "&bDragon Rider!"(but it doesn't have errors tho...), so i changed it to
code_language.skript:
        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
But it says that {points::%player%} isn't an entity type, i even tried to add quotation mark so it's like
"{points::%player%}"...

But it just gave me errors

Yes i've posted this too(but more complicated...), i Know this might get deleted, but i really need help... My server's players wants this feature so bad :emoji_stuck_out_tongue:

P.S If you responded in less than like 8 hours, i might not answer becouse i'm about to go to sleep and continue making this skript tommorow...
 
The purpose of percent symbols is stringifying expressions in strings and variables
 
Status
Not open for further replies.