Is Member/Owner of Region

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

Aawqq2112

Member
Apr 1, 2021
20
0
1
32
How to make this script work only for a certain region




Code:
on region enter:
    player is the owner of the region
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region
 

Attachments

  • Снимок.PNG
    Снимок.PNG
    36.2 KB · Views: 114
Check for the region at the player in that event. Think you can do it like this but not 100% sure.
Code:
on region enter:
    if "%region at player%" is "region-name":
        # do stuff
 
Code:
on region enter:
    if "%region at player%" is "cafe"
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region
Check for the region at the player in that event. Think you can do it like this but not 100% sure.
Code:
on region enter:
    if "%region at player%" is "region-name":
        # do stuff
Are there any other options?
 

Attachments

  • Снимок.PNG
    Снимок.PNG
    25.1 KB · Views: 119
Code:
on region enter:
    if "%region at player%" is "cafe"
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region

Are there any other options?
What kind of other option would you want? The one Aawqq gave is what you asked for.
 
really? I got 0 errors when using that. What was your full skript?
Code:
on region enter:
    if "%region at player%" is "cafe"
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region
 
Code:
on region enter:
    if "%region at player%" is "cafe"
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region

You didn't indent correctly.
Code:
on region enter:
    if "%region at player%" is "cafe":
        message "Welcome back to %region%!"
        send "%player% just entered %region%!" to all members of the region
 
You didn't indent correctly.
Code:
on region enter:
    if "%region at player%" is "cafe":
        message "Welcome back to %region%!"
        send "%player% just entered %region%!" to all members of the region
there is no error but the script itself does not work what it was asked to do
[doublepost=1617469196,1617396355][/doublepost]
You didn't indent correctly.
Code:
on region enter:
    if "%region at player%" is "cafe":
        message "Welcome back to %region%!"
        send "%player% just entered %region%!" to all members of the region
:/
 
Status
Not open for further replies.