Cant Compare If Arg-2 to text

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

AddieGBA

New Member
Jul 29, 2025
7
2
3
Ok so i have this code
Code:
command /setability <string> <string:
    description: description
    permission: op
    trigger:
        if arg-1 is "Passive":
            if arg-2  = "Fire":
                set {Passive::%player%} to "Fire"
            if arg-2  is "Thunder":
                set {Passive::%player%} to "Thunder"
            if arg-2  is "Ice":
                set {Passive::%player%} to "Ice"
            if arg-2  is "Earth":
                set {Passive::%player%} to "Earth"
            if arg-2  is "Air":
                set {Passive::%player%} to "Air"
            if arg-2  is "None":
                delete {Passive::%player%}
But When i Run it i get this error so if someone could help me figure out whats wrong that'd be nice
1754748486875.png