GP Claim ID

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

ShaneBee

Supporter +
Addon Developer
Sep 7, 2017
2,248
241
73
Vancouver, Canada
@Donut I need your help on this one.

I am trying to get claim ID's of claims.

I need to get the claim id from a click event to be able to get the corner.
When I get the ID I keep getting the error
"{loc.%claim IDs%} can only be set to one object, not more
"

This is my test code so far just to find the right stuff

code_language.skript:
on right click with poisonous potato:
    set {_loc.%claim%} to the id of the GP basic claim at event-location
    send "claim: %{_loc.%claim%}%" to player
    set {_corner} to the greater boundary corner of the GP claim with id {_loc}
    send "Corner: %{_corner}%" to player
 
Last edited:
There can be multiple claims at one spot, so you have to set it in a list variable
 
technically im pretty sure there can only be 1 basic claim at a given loc but youll still have to use a list variable because of the way i made the syntax

also in line 4 you use {_loc} not {_loc.%claim%}
 
Status
Not open for further replies.