Skip to content

calloption function #4786

Closed as not planned
Closed as not planned
@Zabrid

Description

@Zabrid

Suggestion

I was talking to some people yesterday in the SkUnity discord to try and see if it was possible to get skript options without hard code calling them.

on example being
command /getoption [<text>]: trigger: send "{@%arg 1%}"

Figured out this was impossible but I had an idea, what if there was a function for example, calloption(), that would allow you to get an option converted into a string like calloption("prefix") and it would return the prefix as a string, even if the prefix wasn't necessarily written as a string. You could maybe make this work with numbers or integers but idk enough about java for that.

Just thought this would be a neat idea and would help with making better configs in script.

Why?

Would be very useful

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).up for debateWhen the decision is yet to be debated on the issue in question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions