Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region priority (Overlapping regions) #4

Open
Q2Lummox opened this issue Oct 12, 2020 · 3 comments
Open

Region priority (Overlapping regions) #4

Q2Lummox opened this issue Oct 12, 2020 · 3 comments
Labels
enhancement New feature or request PR Available Issues which have a yet-to-be merged PR resolving it

Comments

@Q2Lummox
Copy link

Q2Lummox commented Oct 12, 2020

When you are in a region that overlaps with another region, how can you specify that it only "sees" the region with the highest priority?

If I am in region 3 (priority 100) that is within region 2 (priority 50) and at the same time, within region 1 (priority 10)...

set {_region} to "%region at player%"
broadcast "%{_region}%"

It always returns the name of all overlapping regions (region 3, region 2 and region 1) regardless of their priority.

You could add a

set {_max} to region with max priority at player

To be able to do something like this

set {_max} to region with max priority at player
broadcast "%{_max}%"

So that it only returns "region 3"

If there is already a way to do it, I appreciate if you tell me how to do it.

@APickledWalrus APickledWalrus added the enhancement New feature or request label Oct 13, 2020
@takatalvi
Copy link

i see this is still open. is there no way of pulling priority from worldguard regions and using them in skript? i love how worldguard is supported, but overlapping regions is a normal part of using worldguard, and having the option to specify regions based on priority is a must, in order for scripts to work properly.

@AyhamAl-Ali
Copy link
Member

i see this is still open. is there no way of pulling priority from worldguard regions and using them in skript? i love how worldguard is supported, but overlapping regions is a normal part of using worldguard, and having the option to specify regions based on priority is a must, in order for scripts to work properly.

Skript worldguard support is increasing, make sure to follow https://github.com/SkriptLang/skript-worldguard

@AyhamAl-Ali AyhamAl-Ali transferred this issue from SkriptLang/Skript Apr 17, 2023
@takatalvi
Copy link

i see this is still open. is there no way of pulling priority from worldguard regions and using them in skript? i love how worldguard is supported, but overlapping regions is a normal part of using worldguard, and having the option to specify regions based on priority is a must, in order for scripts to work properly.

Skript worldguard support is increasing, make sure to follow https://github.com/SkriptLang/skript-worldguard

this sounds very promising, i'll be following the project. thanks for the suggestion!

@AyhamAl-Ali AyhamAl-Ali added the PR Available Issues which have a yet-to-be merged PR resolving it label May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR Available Issues which have a yet-to-be merged PR resolving it
Projects
None yet
Development

No branches or pull requests

4 participants