03
ноя
I am new to these forums, and I thought this would be a great introduction for both parties. I am creating a text-based adventure game as a.bat file, just for fun, and would like to share. I am looking for constructive criticism and advice, as I hope that this little project gives me a more advanced knowledge of.bat scripting. Here's what I have so far: @echo off title Adventure Game set manRoomVal= 0:manRoom echo; echo Your basic controls are: echo Enter L for Left echo Enter R for Right echo Enter F for Forward echo Enter B for Backward echo Enter S for Search echo Enter H for Hear/Listen if%manRoomVal% EQU 1 goto mainRoom if%manRoomVal% EQU 0 goto introduction:introduction set manRoomVal= 1 echo; echo You are standing in a cold hallway, wielding a gun. You're sweating and you don't recall much. Echo There is a door infront of you, a desk to the left, a dark opening to a corridor behind you, and nothing to your right.
Remember, creating games in Batch script has limitations. You will not be able to create more of a game than a text-based game. It can be a quiz or a scenario game, but you will have only text. As to whether or not you want to have ASCII graphics is up to you, but the game will still be based entirely on text input. I want to make a text-based adventure game with gamemaker. I don't want to take the time to learn how to use other programs and/or languages. I'm somewhat familiar with gml, but I don't know how since the show_message_ext is now obselete, and the manual says that show_message should only be used for debug purposes.
What do you do? Set mainRoomLeftVal= 0 set mainRoomSearchVal= 0 set mainRoomHearVal= 0 set mainRoomRightVal= 0 goto mainRoom:mainRoom echo; set /p directionChoice= What will you do? If%directionChoice% EQU L goto mainRoomLeft if%directionChoice% EQU R goto mainRoomRight if%directionChoice% EQU F goto mainRoomForward if%directionChoice% EQU B goto mainRoomBackward if%directionChoice% EQU S goto mainRoomSearch if%directionChoice% EQU H goto mainRoomHear if%directionChoice% EQU man goto manRoom pause:rejectionRoom echo; echo You've already done this! Goto mainRoom:mainRoomLeft if%mainRoomLeftVal% EQU 1 goto rejectionRoom if%mainRoomLeftVal% EQU 0 echo; echo You turn left and move towards the desk. You look it over.
There some papers on it, and perhaps something in the drawer. Echo; set /p deskChoice= (S)earch it or (L)eave it and turn back the way you were facing before? If%deskChoice% EQU S goto deskSearch if%deskChoice% EQU L goto mainRoom:deskSearch echo; echo You examine the paperwork on the top of the desk more closely. It's all very official looking; long writing files with drab words. Echo You can't seem to focus on everything it says.
Echo You open the drawer hoping something jumps out of at you in there. Echo There's another gun in there, as well as a set of keys, and a pack of cigarettes. Echo You pocket it all and then move back to the spot you were standing at before.
Echo; set mainRoomLeftVal= 1 goto mainRoom:mainRoomRight if%mainRoomRightVal% EQU 1 goto rejectionRoom if%mainRoomRIghtVal% EQU 0 echo; echo You turn to your right to move but there is nothing there besides a dull wall. Set mainRoomRightVal= 1 goto mainRoom:mainRoomSearch if%mainRoomSearchVal% EQU 1 goto rejectionRoom if%mainRoomSearchVal% EQU 0 echo; echo Frantically you try to look around the room and process everything.
Your heart is beating so fast and your pupils are dancing with each beat. Echo You notice the walls are cold gray tile, kind of modern looking.
There is a fading flourescent light fixture about your head. 2.00 download psp update 6.20 m33. Echo There's nothing on the floor except garbage. Echo There's blood on your clothes.
Why is there blood on your clothes? Echo; set mainRoomSearchVal= 1 goto mainRoom:mainRoomHear if%mainRoomHearVal% EQU 1 goto rejectionRoom if%mainRoomHearVal% EQU 0 echo; echo You try to listen to the noises of the room. It is difficult.
I am new to these forums, and I thought this would be a great introduction for both parties. I am creating a text-based adventure game as a.bat file, just for fun, and would like to share. I am looking for constructive criticism and advice, as I hope that this little project gives me a more advanced knowledge of.bat scripting. Here\'s what I have so far: @echo off title Adventure Game set manRoomVal= 0:manRoom echo; echo Your basic controls are: echo Enter L for Left echo Enter R for Right echo Enter F for Forward echo Enter B for Backward echo Enter S for Search echo Enter H for Hear/Listen if%manRoomVal% EQU 1 goto mainRoom if%manRoomVal% EQU 0 goto introduction:introduction set manRoomVal= 1 echo; echo You are standing in a cold hallway, wielding a gun. You\'re sweating and you don\'t recall much. Echo There is a door infront of you, a desk to the left, a dark opening to a corridor behind you, and nothing to your right.
Remember, creating games in Batch script has limitations. You will not be able to create more of a game than a text-based game. It can be a quiz or a scenario game, but you will have only text. As to whether or not you want to have ASCII graphics is up to you, but the game will still be based entirely on text input. I want to make a text-based adventure game with gamemaker. I don\'t want to take the time to learn how to use other programs and/or languages. I\'m somewhat familiar with gml, but I don\'t know how since the show_message_ext is now obselete, and the manual says that show_message should only be used for debug purposes.
What do you do? Set mainRoomLeftVal= 0 set mainRoomSearchVal= 0 set mainRoomHearVal= 0 set mainRoomRightVal= 0 goto mainRoom:mainRoom echo; set /p directionChoice= What will you do? If%directionChoice% EQU L goto mainRoomLeft if%directionChoice% EQU R goto mainRoomRight if%directionChoice% EQU F goto mainRoomForward if%directionChoice% EQU B goto mainRoomBackward if%directionChoice% EQU S goto mainRoomSearch if%directionChoice% EQU H goto mainRoomHear if%directionChoice% EQU man goto manRoom pause:rejectionRoom echo; echo You\'ve already done this! Goto mainRoom:mainRoomLeft if%mainRoomLeftVal% EQU 1 goto rejectionRoom if%mainRoomLeftVal% EQU 0 echo; echo You turn left and move towards the desk. You look it over.
There some papers on it, and perhaps something in the drawer. Echo; set /p deskChoice= (S)earch it or (L)eave it and turn back the way you were facing before? If%deskChoice% EQU S goto deskSearch if%deskChoice% EQU L goto mainRoom:deskSearch echo; echo You examine the paperwork on the top of the desk more closely. It\'s all very official looking; long writing files with drab words. Echo You can\'t seem to focus on everything it says.
Echo You open the drawer hoping something jumps out of at you in there. Echo There\'s another gun in there, as well as a set of keys, and a pack of cigarettes. Echo You pocket it all and then move back to the spot you were standing at before.
Echo; set mainRoomLeftVal= 1 goto mainRoom:mainRoomRight if%mainRoomRightVal% EQU 1 goto rejectionRoom if%mainRoomRIghtVal% EQU 0 echo; echo You turn to your right to move but there is nothing there besides a dull wall. Set mainRoomRightVal= 1 goto mainRoom:mainRoomSearch if%mainRoomSearchVal% EQU 1 goto rejectionRoom if%mainRoomSearchVal% EQU 0 echo; echo Frantically you try to look around the room and process everything.
Your heart is beating so fast and your pupils are dancing with each beat. Echo You notice the walls are cold gray tile, kind of modern looking.
There is a fading flourescent light fixture about your head. 2.00 download psp update 6.20 m33. Echo There\'s nothing on the floor except garbage. Echo There\'s blood on your clothes.
Why is there blood on your clothes? Echo; set mainRoomSearchVal= 1 goto mainRoom:mainRoomHear if%mainRoomHearVal% EQU 1 goto rejectionRoom if%mainRoomHearVal% EQU 0 echo; echo You try to listen to the noises of the room. It is difficult.
...'>How To Make A Text Based Game In Batch Script(03.11.2018)I am new to these forums, and I thought this would be a great introduction for both parties. I am creating a text-based adventure game as a.bat file, just for fun, and would like to share. I am looking for constructive criticism and advice, as I hope that this little project gives me a more advanced knowledge of.bat scripting. Here\'s what I have so far: @echo off title Adventure Game set manRoomVal= 0:manRoom echo; echo Your basic controls are: echo Enter L for Left echo Enter R for Right echo Enter F for Forward echo Enter B for Backward echo Enter S for Search echo Enter H for Hear/Listen if%manRoomVal% EQU 1 goto mainRoom if%manRoomVal% EQU 0 goto introduction:introduction set manRoomVal= 1 echo; echo You are standing in a cold hallway, wielding a gun. You\'re sweating and you don\'t recall much. Echo There is a door infront of you, a desk to the left, a dark opening to a corridor behind you, and nothing to your right.
Remember, creating games in Batch script has limitations. You will not be able to create more of a game than a text-based game. It can be a quiz or a scenario game, but you will have only text. As to whether or not you want to have ASCII graphics is up to you, but the game will still be based entirely on text input. I want to make a text-based adventure game with gamemaker. I don\'t want to take the time to learn how to use other programs and/or languages. I\'m somewhat familiar with gml, but I don\'t know how since the show_message_ext is now obselete, and the manual says that show_message should only be used for debug purposes.
What do you do? Set mainRoomLeftVal= 0 set mainRoomSearchVal= 0 set mainRoomHearVal= 0 set mainRoomRightVal= 0 goto mainRoom:mainRoom echo; set /p directionChoice= What will you do? If%directionChoice% EQU L goto mainRoomLeft if%directionChoice% EQU R goto mainRoomRight if%directionChoice% EQU F goto mainRoomForward if%directionChoice% EQU B goto mainRoomBackward if%directionChoice% EQU S goto mainRoomSearch if%directionChoice% EQU H goto mainRoomHear if%directionChoice% EQU man goto manRoom pause:rejectionRoom echo; echo You\'ve already done this! Goto mainRoom:mainRoomLeft if%mainRoomLeftVal% EQU 1 goto rejectionRoom if%mainRoomLeftVal% EQU 0 echo; echo You turn left and move towards the desk. You look it over.
There some papers on it, and perhaps something in the drawer. Echo; set /p deskChoice= (S)earch it or (L)eave it and turn back the way you were facing before? If%deskChoice% EQU S goto deskSearch if%deskChoice% EQU L goto mainRoom:deskSearch echo; echo You examine the paperwork on the top of the desk more closely. It\'s all very official looking; long writing files with drab words. Echo You can\'t seem to focus on everything it says.
Echo You open the drawer hoping something jumps out of at you in there. Echo There\'s another gun in there, as well as a set of keys, and a pack of cigarettes. Echo You pocket it all and then move back to the spot you were standing at before.
Echo; set mainRoomLeftVal= 1 goto mainRoom:mainRoomRight if%mainRoomRightVal% EQU 1 goto rejectionRoom if%mainRoomRIghtVal% EQU 0 echo; echo You turn to your right to move but there is nothing there besides a dull wall. Set mainRoomRightVal= 1 goto mainRoom:mainRoomSearch if%mainRoomSearchVal% EQU 1 goto rejectionRoom if%mainRoomSearchVal% EQU 0 echo; echo Frantically you try to look around the room and process everything.
Your heart is beating so fast and your pupils are dancing with each beat. Echo You notice the walls are cold gray tile, kind of modern looking.
There is a fading flourescent light fixture about your head. 2.00 download psp update 6.20 m33. Echo There\'s nothing on the floor except garbage. Echo There\'s blood on your clothes.
Why is there blood on your clothes? Echo; set mainRoomSearchVal= 1 goto mainRoom:mainRoomHear if%mainRoomHearVal% EQU 1 goto rejectionRoom if%mainRoomHearVal% EQU 0 echo; echo You try to listen to the noises of the room. It is difficult.
...'>How To Make A Text Based Game In Batch Script(03.11.2018)