System Random Idea

HydraRancher

Truth begins in lies
Reaction score
197
Description
Ever get that feeling when you want to make a random idea? Well this map allows you to add things to a list and choose a random thing from it using the commands provided.

Commands:
-Remove [Text] - This will remove a specific item from your list - it must exist
-Clear - this will clear all
-[Text] this will add to the list
-Display this will display all
-Choose this will choose a random item from the list

All commands are case sensitive.

Triggers:
Adding:
Trigger:
  • Add A Thing A Ling
    • Events
    • Conditions
      • (Substring((Entered chat string), 1, 1)) Equal to (==) -
      • (Substring((Entered chat string), 2, (Length of (Entered chat string)))) Not equal to (!=) <Empty String>
      • (Entered chat string) Not equal to (!=) -Clear
      • (Entered chat string) Not equal to (!=) -Choose
      • (Substring((Entered chat string), 1, 7)) Not equal to (!=) -Remove
      • (Entered chat string) Not equal to (!=) -Display
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TingALingInteger Equal to (==) 100
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Game - Display to (Picked player), at offset (0.00, 0.00) the text: You have 100 string...
        • Else - Actions
          • Set TingALingInteger = (TingALingInteger + 1)
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Game - Display to (Picked player), at offset (0.00, 0.00) the text: ((Substring((Entered chat string), 2, (Length of (Entered chat string)))) + has been added.)
          • Set TingALingString[TingALingInteger] = (Substring((Entered chat string), 2, (Length of (Entered chat string))))
Event Adding:
Trigger:
  • Add A trigger
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to Add A Thing A Ling <gen> the event (Player - (Player((Integer A))) types a chat message containing - as A substring)
          • Trigger - Add to Remove Specific <gen> the event (Player - (Player((Integer A))) types a chat message containing -Remove as A substring)
          • Trigger - Add to Clear A Thing A Ling <gen> the event (Player - (Player((Integer A))) types a chat message containing -Clear as An exact match)
          • Trigger - Add to Random <gen> the event (Player - (Player((Integer A))) types a chat message containing -Choose as An exact match)
          • Trigger - Add to Display <gen> the event (Player - (Player((Integer A))) types a chat message containing -Display as An exact match)
Clear All:
Trigger:
  • Clear A Thing A Ling
    • Events
    • Conditions
      • (Entered chat string) Equal to (==) -Clear
    • Actions
      • Set TingALingInteger = 0
        • Do Multiple ActionsFor each (Integer A) from 1 to 99, do (Actions)
          • Loop - Actions
            • Set TingALingString[(Integer A)] = <Empty String>
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Game - Display to (Picked player), at offset (0.00, 0.00) the text: The Random Integers...
Choose:
Trigger:
  • Random
    • Events
    • Conditions
      • (Entered chat string) Equal to (==) -Choose
    • Actions
      • Set TingALingRandomInteger = (Random integer number between 1 and TingALingInteger)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TingALingString[TingALingRandomInteger] Not equal to (!=) <Empty String>
            • Then - Actions
              • Game - Display to (Picked player), at offset (0.00, 0.00) the text: (TingALingString[TingALingRandomInteger] + is chosen.)
            • Else - Actions
              • Game - Display to (Picked player), at offset (0.00, 0.00) the text: There is nothing to...
Remove Specific:
Trigger:
  • Remove Specific
    • Events
    • Conditions
      • (Substring((Entered chat string), 1, 7)) Equal to (==) -Remove
      • (Substring((Entered chat string), 9, (Length of (Entered chat string)))) Not equal to (!=) <Empty String>
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to TingALingInteger, do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TingALingString[(Integer A)] Equal to (==) (Substring((Entered chat string), 9, (Length of (Entered chat string))))
            • Then - Actions
              • Player Group - Pick every player in (All players) and do (Actions)
                • Loop - Actions
                  • Game - Display to (Picked player), at offset (0.00, 0.00) the text: (TingALingString[(Integer A)] + has been erased.)
              • Set TingALingString[(Integer A)] = <Empty String>
              • Set TingALingInteger = (TingALingInteger - 1)
              • Set TingALingString[(Integer A)] = TingALingString[TingALingInteger]
              • Skip remaining actions
            • Else - Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Game - Display to (Picked player), at offset (0.00, 0.00) the text: ((Substring((Entered chat string), 9, (Length of (Entered chat string)))) + doesn't exist.)
Display:
Trigger:
  • Display
    • Events
    • Conditions
      • (Entered chat string) Equal to (==) -Display
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Game - Display to (Picked player), at offset (0.00, 0.00) the text: List:
        • Do Multiple ActionsFor each (Integer A) from 1 to TingALingInteger, do (Actions)
          • Loop - Actions
            • Player Group - Pick every player in (All players) and do (Actions)
              • Loop - Actions
                • Game - Display to (Picked player), at offset (0.00, 0.00) the text: TingALingString[(Integer A)]
            • Wait 0.50 seconds

Changelog
1.0: Made

Description Updated
 

Kenny

Back for now.
Reaction score
202
To be honest I dont expect this to be approved, I might make it more detailed if it does however.

This WILL be graveyarded unless you provide us with a proper description, detailed usage instructions, a picture, the code/script and all that junk. So i suggest you do it now. Please read the submission rules before submitting something to ensure what you have is eligible for approval at all.
 

Romek

Super Moderator
Reaction score
963
Rules said:
We want Quality, not Quantity. Thus, submit only what you think is good! If your post contains something like "check out my crappy spell" it will hit graveyard right away.

GY'ed
 

UndeadDragon

Super Moderator
Reaction score
447
When I saw the title "Random Idea" I was thinking, getRandomIdea()? :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top