Skript help

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

ItsDy1an

New Member
Jun 23, 2017
8
0
0
28
Hey guys, i'm new to using / making skripts i'm currently in the middle of making an ffa skript and i'm wondering if its possible if a player is up in spawn and they re arrange their hotbar and then type /save it saves their layout?
 
Wrong section, and yes it's possible.

code_language.skript:
command /save:
    trigger:
        loop items in player's inventory:
            add loop-item to {ffa:%player%::*}
            execute console command "clear %player%" # The skript won't remove the armor slot so we have to remove it manually with a built-in cmd.
            
    
command /giveme:
    trigger:
        loop {ffa:%player%::*}:
            give loop-value to player
 
Wrong section, and yes it's possible.

code_language.skript:
command /save:
    trigger:
        loop items in player's inventory:
            add loop-item to {ffa:%player%::*}
            execute console command "clear %player%" # The skript won't remove the armor slot so we have to remove it manually with a built-in cmd.
           
   
command /giveme:
    trigger:
        loop {ffa:%player%::*}:
            give loop-value to player
Awesome thanks, I was wondering though in my skript i have right now once a player dies their drops clear so basically they do not drop, but i'm now wanting to drop just their golden apples that hey may have left and if none, well thing drops