Solved How to change options?

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

Scholler

Active Member
Aug 6, 2018
130
9
0
25
Hello, let's say I have an option:

Code:
options:
    option1: Something

And how can I change it within a command, like this:


Code:
command /changeoption <Text>:
    trigger:
        player is op
        set "{@option1}" to "Something else"
?

I tried with this, but I got an error: optionname can't be set to anything.
 
You can't change options via Skript, you have to change them in the file. You could use variables instead, and set that variable to the option if the variable is not set (in on load).
 
Status
Not open for further replies.