1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Command List Scenarios(Text)

Discussion in 'Requests' started by Chemically, Jan 20, 2020.

  1. Chemically

    Chemically New Member

    Joined:
    Feb 27, 2019
    Messages:
    7
    Likes Received:
    0
    Category: UHC

    Spigot/Skript Version: PaperSpigot 1.8.8-R0.1-Snapshot, Skript: 2.2 dev 36

    What I want:
    Ok so, I run a server and host games frequently but players keep wanting to know what game modes the game is each time (different all the time).

    I need something where I do /scenadd <scen1> <scen2> <scen3> etc.. (or individually)

    Then players can do /scens or /scenarios to view all the scenarios as text popping up in chat or as a GUI.

    Example: /scenadd Cutclean

    (If GUI) A iron ingot appears with a description of cutclean being “Ores are smelted on mine and animals drop cooked food on death.”

    (If test) Just text saying “Ores are smelted on mine and animals drop cooked food on death.” appears.

    If this example was added in with the thing I wanted, that would be amazing as then I can add my own things with that example to go off. Not sure how it would work though.

    Perhaps a individual thing would be better where it is /scenadd name description (then this can be done many times)

    And then a /scenreset command for when we have different scenarios.

    scens.op

    When I'd like it by: A week or two.
     
  2. Best Answer:
    Post #2 by Conutik, Jan 21, 2020
  3. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1
    Please dm me what the scenarios are so i can help
    --- Double Post Merged, Jan 21, 2020, Original Post Date: Jan 21, 2020 ---
    Here is a template:

    Code (Text):
    1. command /scenadd [<text>]:
    2.   permission: scen.admin
    3.   permission message: "&eNo Perms!"
    4.   trigger:
    5.     if {scen::*} contains arg-1:
    6.       send "&eThis scenario is already added!" to player
    7.     else:
    8.       add arg-1 to {scen::*}
    9.       send "&eScenario has been added"
    10.  
    11. command /scenreset:
    12.   permission: scen.admin
    13.   permission message: "&eNo Perms!"
    14.   trigger:
    15.     clear {scen::*}
    16.     send "&eScenarios Have been reset!"
    17.    
    18. command /scenarios:
    19.   aliases: /scens
    20.   trigger:
    21.     send "&b&lScens:"
    22.     send "&e---------------" #edit the amount of --- idk how much to put
    23.     loop {scen::*}:
    24.       if "%loop-value%" is "CutClean":
    25.         send "&fCutClean:"
    26.         send "&fOres are smelted on mine and animals drop cooked food on death"
    27.         send "&e----------"
    28.       else if "%loop-value%" is "Timber":
    29.         send "&fTimber:"
    30.         send "&fTrees break instantly when chopped."
    31.         send "&e------------"
    32.       else if "%loop-value%" is "Hastey Boys":
    33.         send "&fHastey Boys:"
    34.         send "&fAll tools are efficiency 3"
    35.         send "&e----------------"
    36.      
     
    #2 Conutik, Jan 21, 2020
    Last edited: Jan 22, 2020
  4. Chemically

    Chemically New Member

    Joined:
    Feb 27, 2019
    Messages:
    7
    Likes Received:
    0
    Just what I needed! Thanks! Oh and for the other scenarios it was just Timber: Trees break instantly when chopped. and Hastey Boys: All tools are efficiency 3. But could you add a way where it begins with saying "Scenarios:" then maybe a ----------------------- after each scenarios description? If not, thanks this works perfectly.
     
  5. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1
    Code (Text):
    1. command /scenadd [<text>]:
    2.   permission: scen.admin
    3.   permission message: "&eNo Perms!"
    4.   trigger:
    5.     if {scen::*} contains arg-1:
    6.       send "&eThis scenario is already added!" to player
    7.     else:
    8.       add arg-1 to {scen::*}
    9.       send "&eScenario has been added"
    10.  
    11. command /scenreset:
    12.   permission: scen.admin
    13.   permission message: "&eNo Perms!"
    14.   trigger:
    15.     clear {scen::*}
    16.     send "&eScenarios Have been reset!"
    17.  
    18. command /scenarios:
    19.   aliases: /scens
    20.   trigger:
    21.     send "&b&lScens:"
    22.     send "&e---------------" #edit the amount of --- idk how much to put
    23.     loop {scen::*}:
    24.       if "%loop-value%" is "CutClean":
    25.         send "&fCutClean:"
    26.         send "&fOres are smelted on mine and animals drop cooked food on death"
    27.         send "&e----------"
    28.       else if "%loop-value%" is "Timber":
    29.         send "&fTimber:"
    30.         send "&fTrees break instantly when chopped."
    31.         send "&e------------"
    32.       else if "%loop-value%" is "Hastey Boys":
    33.         send "&fHastey Boys:"
    34.         send "&fAll tools are efficiency 3"
    35.         send "&e----------------"
    Please change the amount of dashes because idk how much to put
     

Share This Page

Loading...