Solved Region name not being recognized properly.

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

mmaalex22112

New Member
Aug 3, 2020
5
0
0
25
Hey all.

For some reason, for the life of me I can't get this to work. I'm only ever getting the message one triggered. It seems like it is only reading the pk1 part of the name.

Code:
on region enter:
    if "%region at player%" is "%{pk1_mine}%":
        if {pk1_mine.%player%} is true:
            message "&8&lMessage One"
            stop
        else:
            set {pk1_mine.%player%} to true
            message "&8&lMessage One Second"
    else if "%region at player%" is "%{pk1_aqua1}%":
        if {pk1_aqua1.%player%} is true:
            message "&8&lMessage Two"
            stop
        else:
            set {pk1_aqua1.%player%} to true
            message "&8&lMessage Two Second"

Thanks much in advance!
Alex.
[doublepost=1596500818,1596499632][/doublepost]Edit: I'm using 1.16.1, and Skript 2.5-beta1. As well as Skquery and Skellett

 
Last edited:
Use the contains effect instead .

Yes I've also tried

Code:
on region enter:
    if "%region at player%" contains "pk1_mine":
        if {pk1_mine.%player%} is true:
            message "&8&lMessage One"
            stop

No dice. :\
Nothing registers at all when I use it.
 
Last edited:
Yes I've also tried

Code:
on region enter:
    if "%region at player%" contains "pk1_mine":
        if {pk1_mine.%player%} is true:
            message "&8&lMessage One"
            stop

No dice. :\
Nothing registers at all when I use it.
Use Event-Region
 
Status
Not open for further replies.