Solved I said something but Skript ignore it

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

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

MusicManSK

Active Member
Nov 30, 2017
230
11
18
hello i have code:
code_language.skript:
function KitStart(p: player):
    if {kit.selected::%{_p}%} is "Default":
        set helmet of {_p} to diamond helmet
        set chestplate of {_p} to iron chestplate
        set legs of {_p} to iron leggings
        set boots of {_p} to diamond boots
        
        set slot 0 of inventory of {_p} to iron sword
        
        teleport {_p} to {kit.pos::%random integer between 1 and 9%}
so..
everythink works excelent but i dont get sword.. i have it like this in gatget skript and it works... but here.. i dont know why its not working.. no errors, no warnings, no sword... nothing..
 
thanks
[doublepost=1526898084,1526652126][/doublepost]And i have one additional question.. if i want to clear inventory of {_p} should i use:
code_language.skript:
clear {_p}
???

beacuse
code_language.skript:
clear inventory of {_p}
not working
 
no.. i already tried it.. its works well without variable.. ("inv of player" or "inv of loop-player") so i have to loop players :/
 
for example:
code_language.skript:
function DeathTagMakeChaser(p: player):
    add {_p} to {dt.chaser::*}
    remove {_p} from {dt.runner::*}
    set gamemode of {_p} to survival
    clear inventory of {_p}
    heal {_p}
    apply regeneration without any particles to {_p} for 999 days
    #loop players in {@Map}:
    #    if loop-player is {_p}:
    #        set slot 0 of inventory of loop-player to iron axe
    set slot 0 of {_p} to iron axe
    execute console command "odisguise %{_p}% wither_skeleton"
    if size of {dt.runner::*} is 1:
        DeathTagEnd({dt.runner::*})
 
Status
Not open for further replies.