Solved Drop items 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 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.

Naciou

New Member
Apr 27, 2020
6
0
0
So i use keepInventory true but i want the players to drop some items.
for example let's say i want the player to drop all the stone in his inventory:

on death:
victim is a player
set {%player%.Q} to amount of stone in player's inventory
drop {%player%.Q} stone at player's location
remove every stone from player's inventory

skript don't let me set a variable as the number of drops. Any other way to do this????
 
So i use keepInventory true but i want the players to drop some items.
for example let's say i want the player to drop all the stone in his inventory:

on death:
victim is a player
set {%player%.Q} to amount of stone in player's inventory
drop {%player%.Q} stone at player's location
remove every stone from player's inventory

skript don't let me set a variable as the number of drops. Any other way to do this????
Try:
code_language.skript:
on death:
    victim is a player:
        if victim's inventory contains stone:
            set {_stone} to amount of stone in victim's inventory
            drop {_stone} of stone at victim's location
            remove all stone from victim's inventory
 
Status
Not open for further replies.