Hi all! I'm currently writing a skript that opens a GUI (Using TuSKe's skript addon) that will have multiple options to enable/disable different skripts. Basically I run a UHC Server and I'm trying to create a scenario manager.
My question is would it be possible to create a multi-tiered options section (or even a .yml file although I've heard bad things about them with skript) so that I can add/remove scenarios without going into the actual code. If that doesn't make sense I've created a little mockup below
So with a yml file something like that, then in the code I could do
Where MyFunction would open ANOTHER GUI and there would be two items, one to run the enable command and one to run the disable command. Is this possible? Any help would be appreciated. Even pointing me toward a tutorial would be great.
My question is would it be possible to create a multi-tiered options section (or even a .yml file although I've heard bad things about them with skript) so that I can add/remove scenarios without going into the actual code. If that doesn't make sense I've created a little mockup below
code_language.skript:
ScenarioAmount: 2
Scenario: 0
Scenario Name: Example Scenario
Scenario Enable Command: /scenexample enable
Scenario Disable Command: /scenexample disbale
Scenario: 1
Scenario Name: Example Scenario 2
Scenario Enable Command: /scenexample2 enable
Scenario Disable Command: /scenexample2 disbale
So with a yml file something like that, then in the code I could do
code_language.skript:
open virtual chest inventory named "Scenario Manager" to player
loop {ScenarioAmount} times:
format slot {ScenNum} of player with "white wool" to run function MyFunction()
Where MyFunction would open ANOTHER GUI and there would be two items, one to run the enable command and one to run the disable command. Is this possible? Any help would be appreciated. Even pointing me toward a tutorial would be great.