Set a certain amount of items?

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

Skill

New Member
Feb 5, 2017
5
0
0
This'll take 2 seconds to fix probably, so no use filling out the form :emoji_stuck_out_tongue:

Code:
code_language.skript:
function setCardsLeft(p: player, i: integer):
    set slot 4 of {_p}'s current inventory to {_i} paper named "&8&m------=====[!]=====------" with lore "||&d&lCasino Deck ||&r||&8&m------=====[!]=====------"
How do I make the function allow a specific amount of items in the set slot? If I do~

code_language.skript:
    set slot 4 of {_p}'s current inventory to 64 paper named "&8&m------=====[!]=====------" with lore "||&d&lCasino Deck ||&r||&8&m------=====[!]=====------"
^ That works. But not the variable. Why?
 
code_language.skript:
{_i} of paper
You need to add "of" in between the variable and the item.
 
Status
Not open for further replies.