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

mk5912

Member
Jan 20, 2022
1
0
1
I apologise if this is a duplicate, I couldn't find any other posts about this.

I am trying to write a script that uses a yaml config file containing nested arrays which would normally be queried by
yml value "key1.array1[0].key2" from "yaml.yml"
for the yaml contents below:
YAML:
key1:
  array1:
    - key2: value
    - array2:
    - - key3: value
      - key4: value
But using this approach in a Skript file after loading the yaml config it cannot parse the array(s).

Am I doing something wrong or is this just not implemented into Skript-YAML yet?

I have also tested writing an array to a file using
set yml value "key5.array3[0].key6" from "yaml.yml" to "value"
But that results in
YAML:
key5:
  array3[0]:
  - key6: value
and not
YAML:
key5:
  array3:
  - key6: value