{"id":16996229,"url":"https://github.com/rustyraptor/decisions","last_synced_at":"2025-04-05T18:41:04.984Z","repository":{"id":86489643,"uuid":"283949103","full_name":"RustyRaptor/decisions","owner":"RustyRaptor","description":"A completely normal decision making game. ","archived":false,"fork":false,"pushed_at":"2020-08-05T22:33:18.000Z","size":26,"stargazers_count":1,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T15:59:10.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RustyRaptor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-31T05:18:43.000Z","updated_at":"2020-08-05T22:33:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cedeb72-427e-4734-b9ca-e502635f8352","html_url":"https://github.com/RustyRaptor/decisions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustyRaptor%2Fdecisions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustyRaptor%2Fdecisions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustyRaptor%2Fdecisions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustyRaptor%2Fdecisions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustyRaptor","download_url":"https://codeload.github.com/RustyRaptor/decisions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385379,"owners_count":20930591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T03:51:53.727Z","updated_at":"2025-04-05T18:41:04.964Z","avatar_url":"https://github.com/RustyRaptor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# decisions\nA text base decision making game engine.\nAllows the creation of text based decision story games by writing a simple text file. \n\n## Setup for development\n1. Fork this repo to your own github account.\n2. Clone your version into IntelliJ Idea\n3. Make sure IntelliJ is using Java SDK 14\n    - Here are detailed instructions.\n    - https://imgur.com/a/KGvqWus\n4. Make sure the src directory is set to your \"sources\"\n    - It should be set to this by default. Try executing code in the src directory to test it. \n5. Open the Main class and right click it's tab at the top\n    - click \"Run\" in the rightclick menu\n\n\n## How it works\nThe program will read a script from the scripts folder.\nThe script will describe how the story works and where decisions will take you.\n\nThe program will also ask you for information like your name so it can personalize the dialog for you.\n\n\n## How to make a script.\n\nAn example script exists in the scripts folder.\n\nHere is an explanation of how it works. \n\n```C\n\n// BRANCHES\nWELCOME:  // Words that end with a colon : are branches and indicate the start of a story branch.\n// The first line of any story script MUST BE A BRANCH\n// If it is not a BRANCH the story will end immediately. \n\n// DIALOG\n// Lines that start with DLG are dialog lines and will print dialog to the screen.\nDLG Hi, welcome to the game. Are you ready to begin? \n\n// OPTIONS (DECISIONS)\n// Lines that start with OPT are option lines and will append an option to be compiled and shown to the user.\nOPT YES -\u003e BEGIN   \nOPT NO  -\u003e BEGINANYWAY // THe arrow symbol in the middle points to which tag this option will take you to. \nOPT IDK -\u003e BEGINANYWAY \n\n// END OF BRANCH AND COMPILE OPTIONS\n// If a line starts with FIN it will compile the options and let the user choose one\nFIN \n// then it will take the reader to the branch that their option takes them to.\n\n\nBEGIN:\nDLG Okidokey, lets get started \n\n// OPTs and FINs are optional\n// Branches don't need to have OPT and they don't need to end in FIN.\n// Just know that if that's the case it will just keep reading on to the next line. \n\nBEGINANYWAY:\n// you can have as many dialogue and options as you want in a single branch. \nDLG Well too bad we are starting anyway.\nDLG Now pick a class.\nOPT ROGUE -\u003e ROGUE\nOPT WARRIOR -\u003e WARRIOR\nOPT MAGE -\u003e MAGE\nFIN\n\nROGUE:\nDLG AH the rogue. Agile and clever\n\n// ENDING THE STORY\nHALT // The HALT command will end the story immediately. \n// HALTs are probably what you want to have in your many different endings to your story or if the user dies.\n// It's important to understand that unless you guide the story to a specific branch it will just keep reading on.\n\nWARRIOR:\nDLG Warrior powerful and brave\nHALT // If this HALT is removed it will keep reading into the MAGE: tag.\n\nMAGE:\nDLG You are a mage, Master of the Arcana.\nHALT\n\n***IMPORTANT*** DO NOT USE THIS CODE IN A SCRIPT PLEASE USE THE RAW FILE UNDER THE /scripts FOLDER. THIS CODE WILL BREAK\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustyraptor%2Fdecisions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustyraptor%2Fdecisions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustyraptor%2Fdecisions/lists"}