#(gthoro) Iterate over world guard regions, check member and do some commands

19 messages · Page 1 of 1 (latest)

sleek sandal
#

Hello 👋 is it possible to create script that will iterate over predefined world guard regions (or at least one region), check players who are members and if so, execute some commands? That last part is trivial but I'm having issues with enumerating region members.

latent cypressBOT
#

(gthoro) Iterate over world guard regions, check member and do some commands

latent cypressBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

gaunt token
#

!t worldtag.list_regions

smoky streamBOT
gaunt token
#

!t worldguardregiontag.members

smoky streamBOT
sleek sandal
#
  script:
    - foreach <server.worlds> as:world:
      - foreach <[world].list_regions> as:entry:
        - narrate "Region ID: <[entry]> in world <[world]>"

gives me

[02:11:45 INFO] Additional Error Info: Error Message: Tag <[world].list_regions> is invalid!
[02:11:45 INFO] Additional Error Info: Unfilled or unrecognized sub-tag(s) 'list_regions' for tag <[world].list_regions>!
[02:11:45 INFO] Additional Error Info: The returned value from initial tag fragment '[world]' was: 'w@world'.
gaunt token
#

!debug

smoky streamBOT
# gaunt token !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

sleek sandal
gaunt token
#

ah

#

you need depenizen in order to use this tag

#

!update depenizen

smoky streamBOT
sleek sandal
#

amazing, everything works now, thank you very much

frank shuttleBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@sleek sandal