Solved Contains/is doesn't work.

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

Status
Not open for further replies.

Hyao

Active Member
Apr 1, 2017
73
4
8
33
Skript 2.2-dev29 by Bensku
Unsure about addons I use, if you need any other versions - ask, but should be on the most recent ones found under "Resources ▼".

I have a string, being set like this:
Code:
set {curEvo.%{_id}%} to "chicken"

And I check it like this, but it returns NOTHING, not a single thing. If I broadcast the string, it is exactly what i'm "contains"-ing for - but it just doesn't give a damn.
Code:
        set {_str} to "%{curEvo.%{_id}%}%" parsed as string
        if {_str} contains "chicken":
            send "i contain chicken1" to {_p}
        if "%{_str}%" contains "chicken":
            send "i contain chicken2" to {_p}
        if "%{curEvo.%{_id}%}%" contains "chicken":
            send "pig" to {_p}

Note: The code snippet above uses multiple different solutions I've tried. None work.

Note 2: {_id} uuid of {_p}

Note 3: Yes I have checked that {_id} works properly.
[doublepost=1503138322,1503098988][/doublepost]Update: turned off PC, went to sleep, woke up, works. Gee.
 
Status
Not open for further replies.