Skript Trim effects and features

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

Kartvya69

Member
Sep 21, 2023
3
0
1
26
So actually I want to make a skript for Like if the player wears only full trimmed Armor he would get some strength and speed effects if he takes out any piece of that Armor It should be removed and Also I need to find a way that it could also add temp hearts like he should get 6 hearts extra for that plz can anyone help me
 
Hmm...

Maybe put this in requests.

Code:
function hp():
  if {_hp} > 20:
    set {_hp} to ({_hp} - 12)

every 1 second:
  loop all players:
    set {_helm} to loop-player's helmet
    set {_cp} to loop-player's chestplate
    set {_pp} to loop-player's leggings
    set {_crocs} to loop-player's boots
    set {_hp} to loop-player's max health
    if armor trim of {_helm} is not set:
      exit loop
      hp()
    else if armor trim of {_cp} is not set:
      exit loop
      hp()
    else if armor trim of {_pp} is not set:
      exit loop
      hp()
    else if armor trim of {_crocs} is not set:
      exit loop
      hp()
    apply speed 2 to loop-player for 3 seconds replacing existing effect
    apply strength 2 to loop-player for 3 seconds replacing existing effect
    set {_hp} to ({_hp} + 12)

This took me 30 minutes and I still don't even know if this works.
 
Last edited:
Hello I want to thank you for even trying to help me but sadly the skript generated 6 errors I am using the latest 2.7.0 skript version
Screenshot_2023-09-22-07-48-02-41.jpg