::Set the next variable to the choice name, and reset variables ::Choice, the choice variable includes all the options ::For each number, echo the key and the choice (the left bracket has a caret to escape it, to prevent the CMD interpreter from thinking it's the end)įOR /F "tokens=1-2 delims= " %%A in ("!cho!") DO ( ::Display text (the first part of the parameter) ::Make an array out of them, giving each one a numbered definition, to be referenced later. ::%*, take in all the variables, since they are separated by a space (a delimiter) Something like this is what I came up with: :STORY We want to echo the text (the first quoted text), then echo the list of choices with their number. Midnight hair cascades down her bare back." "1 Touch her" "2 Whisper" "3 Feast" Let's say: SET begin="You see a beautiful girl walking in the water. You would set this to a variable, along with the choices you would want and where they and the key to bind them to. Midnight hair cascades down her bare back. For example, let's say you have the following text you want to display: You see a beautiful girl walking in the water. You can then have a key -> value pair up. Many "batch games" will have a shit ton of GOTO and IFs that are very well unneeded for the game this is why you need something called functions, with parameters. The thing is, you don't need to have any GOTO statements. However, I believe the first possibility, branches, is a lot more efficient, especially if you have a complex story. It's just a loading screen./u/JustALeapingFrog put some really good suggestions out there, especially the "variables" possibility. just copy and paste it, or edit if you want to. If any problem occurs with this, please try an errorlevel program, or check for anything wrong with your computer (wireless connection effects this). Type in PLAY and press ENTER to go to the main screen. It should only be used once, that's on the loading screen.) If you do not know all of those commands try to learn them from every batch article on Wikihow (ping localhost may not be on here, but it is for testing the connection of the network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |