Solved Unequiping a player with armor

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

WiebeHero

Active Member
Aug 23, 2017
135
5
0
Hello i am WiebeHero and i would like to ask a question i have been struggling with this for a while now:

on damage:
attacker is player
chance of 100%
if the 1st line of lore of attacker's held item contains "Disarmor I":
unequip victim from helmet

What it has to do? Unequip a player from 1 armor piece but well it isnt working really for example this works:
equip victim with a leather helmet
This doesnt:
unequip victim from/with a leather helmet

Can anyone help me with this?
 
Does this remove the helmet completely or does it put the armor piece in the inventory?
 
Hmmmm.... Is there a way to put the helmet in the victim's inventory? So they can put it back on themselves?
 
this should work
code_language.skript:
give player's helmet to player
set player's helmet to air
 
Status
Not open for further replies.