[Don't Post] Clear all effects

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

CormanYT

Active Member
Jan 6, 2018
122
5
18
PLEASE DO NOT CONTINUE POSTING ON THIS THREAD!

Hey guys please don't post more on this thread! If you want look at the message, but don't post. Thanks!
So, Is there away to clear player's effects? Like all effects, not just one. I've tried these:
code_language.skript:
remove all effects from player
code_language.skript:
clear all effects from player
code_language.skript:
loop player's active effects:
    remove loop-value from player's active effects
code_language.skript:
loop player's effects:
    remove loop-value from player's effects
They won't work, can you guys help?
 
Last edited:
Here you go, with skript-mirror

code_language.skript:
effect clear potion effect[s] of %players%:
  loop expressions 1:
    loop ...loop-value.getActivePotionEffects():
      loop-value-1.removePotionEffect(loop-value-2.getType());

code_language.skript:
clear potion effects of player
 
I think it's
code_language.skript:
        set {_effects::*} to all of the active potion effects on player
        loop {_effects::*}:
            remove loop-value from player
 
Hmmmm, I'll try that. I'll edit this message and tell you how it goes!

EDIT: Also doesn't work.
 
Last edited:
Ehh this isn't too big of a priority anymore, so please:

PLEASE DO NOT CONTINUE POSTING ON THIS THREAD!
 
Status
Not open for further replies.