Skip to content

Target specific list values #5030

Open
Open
@BuggyAl

Description

@BuggyAl

Suggestion

I think it would be useful to be able to target specific values in a list.

If we store a location in each world, it may be stored under {players::UUID::WORLD::location}. What if I wanted to get a list of all player locations in the end dimension?

Current Skript
loop {players::*}:
    add {players::%loop-index%::end::location} to {_locationlist::*}
New Syntax
set {_locationlist::*} to {players::*::end::location}

Another example is a quest system. What if I wanted the list of all items required for every quest?

Current Skript
loop {quest::*}:
    add {quest::%loop-index%::*} to {_questItems::*}
New Syntax
set {_questItems:*} to {quest::*::items::*}

Why?

I want this feature added because it would make list management much easier and allows developers to clean up their redundant loops.

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.priority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).variablesRelated to variables and/or storing them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions