Get Point 1 and 2 (WorldGuard 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 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!

Status
Not open for further replies.

Bethins

Member
May 27, 2017
4
1
3
https://docs.skunity.com/syntax/expressions/Get Point1

Can anyone help me with this expression? I've tried like 50 different ways and i always get a "Can't understand this expression" error. If i use a variable list, i get a "Latter is not an object" error.

I'm aiming for the TUSKE syntax, but ive also tried to get PirateSk to work as well, with no luck. Also have SKSharp because one forum post mentioned that there had probably been a merge of the addons... At this point, I don't care what I use if i can just get those points into a variable.

I just need to put the 2 points of a region into a variable.

Here are some of the ones I've tried...

code_language.skript:
         set {_point1::*} to point 1 of region "%{_address}%" parsed as location
         set {_point2::*} to point 2 of "address"
         set {_point3::*} to sharpsk worldguard point 2 of region "region" parsed as region
         set {_point4} to point 1 of region "%{_address}%" in %world%
         set {_point4::*} to point 1 of region "%{_address}%" in %world%
         set {_point} to point 1 of region "%{_address}%" parsed as region
         set {_point4::*} to sharpsk worldguard point 1 of region "%{_address}%" in %world%


Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?several days worth of rewriting, searching google and this site, searching other skript sites, updating and downgrading plugins. A lot of the above lines I wrote just out of pure desperation because of skripts general fickleness... I've used strings instead of variables, I've parsed the points differently.
 
https://docs.skunity.com/syntax/expressions/Get Point1

Can anyone help me with this expression? I've tried like 50 different ways and i always get a "Can't understand this expression" error. If i use a variable list, i get a "Latter is not an object" error.

I'm aiming for the TUSKE syntax, but ive also tried to get PirateSk to work as well, with no luck. Also have SKSharp because one forum post mentioned that there had probably been a merge of the addons... At this point, I don't care what I use if i can just get those points into a variable.

I just need to put the 2 points of a region into a variable.

Here are some of the ones I've tried...

code_language.skript:
         set {_point1::*} to point 1 of region "%{_address}%" parsed as location
         set {_point2::*} to point 2 of "address"
         set {_point3::*} to sharpsk worldguard point 2 of region "region" parsed as region
         set {_point4} to point 1 of region "%{_address}%" in %world%
         set {_point4::*} to point 1 of region "%{_address}%" in %world%
         set {_point} to point 1 of region "%{_address}%" parsed as region
         set {_point4::*} to sharpsk worldguard point 1 of region "%{_address}%" in %world%


Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?several days worth of rewriting, searching google and this site, searching other skript sites, updating and downgrading plugins. A lot of the above lines I wrote just out of pure desperation because of skripts general fickleness... I've used strings instead of variables, I've parsed the points differently.
Try
code_language.skript:
set {_point::1} to point 1 of region "address" in world "World"
 
Thanks, but still the same error. I'm wondering if I can pull the boundaries from the worldguard config file. I'll tinker with that next.
 
Status
Not open for further replies.