

InterviewSolution
Saved Bookmarks
1. |
Solve : Multi user batch file, Multi player batch game, start problems, saving problems?? |
Answer» <html><body><p>I WANT to make my batch game have <a href="https://interviewquestions.tuteehub.com/tag/music-1379" style="font-weight:bold;" target="_blank" title="Click to know more about MUSIC">MUSIC</a>, be multiplayer and save your progress. Please help with any that you can, including the multiplayer.OK, what have you got now?Multi <a href="https://interviewquestions.tuteehub.com/tag/player-601487" style="font-weight:bold;" target="_blank" title="Click to know more about PLAYER">PLAYER</a> problems.<br/>God I need to learn more batch before making a game with it :-(. Quote from: tommyroyall on February 18, 2010, 05:39:00 PM</p><blockquote>Multi player problems.<br/>God I need to learn more batch before making a game with it :-(.<br/></blockquote> I mean what is your current code...CURRENTLY (but still in devlopment):<br/>::TO DO:<br/>::1.Finish screens.<br/>::2.Finish items.<br/>::3.Get a skill.<br/>::4.Add my engines.<br/>::5.Make a reference.<br/>::6.Finish the game map.<br/>echo off<br/>:BOOLEAN<br/>set spritewing=0<br/>set hammer=0<br/>set hppotion=0<br/>set mppotion=0<br/>set orange=0<br/>set rose=0<br/>set sword=0<br/>if %sword%==1 playerattack=%playerattack%+15<br/>set shield=0<br/>if %shield%==1 playerdefense=%playerdefense%+15<br/>set spritedust=0<br/>goto VARIABLES<br/>:VARIABLES<br/>set playerhp=25<br/>set playerattack=5<br/>set playerdefense=10<br/>set lightspritehp=5<br/>set lightspriteattack=3<br/>set lightspritedefense=2<br/>set darkspritehp=5<br/>set darkspriteattack=3<br/>set darkspritedefense=2<br/>set waterspritehp=5<br/>set waterspriteattack=3<br/>set waterspritedefense=2<br/>set firespritehp=5<br/>set firespriteattack=3<br/>set firespritedefense=2<br/>set windspritehp=5<br/>set windspriteattack=3<br/>set windspritedefense=2<br/>set lightningspritehp=5<br/>set lightningspriteattack=3<br/>set lightningspritedefense=2<br/>set mindspritehp=5<br/>set mindspriteattack=3<br/>set mindspritedefense=2<br/>set earthspritehp=5<br/>set earthspriteattack=3<br/>set earthspritedefense=2<br/>set livingredwoodhp=15<br/>set livingredwoodattack=11<br/>set livingredwooddefense=7<br/>set livingoakhp=10<br/>set livingoakattack=6<br/>set livingoakdefense=3<br/>set livingmaplehp=13<br/>set livingmapleattack=8<br/>set livingmapledefense=5<br/>set elfhp=20<br/>set elfattack=10<br/>set elfdefense=13<br/>set traphp=1<br/>set trapattack=10<br/>set trapdefense=0<br/>set babyspiderhp=10<br/>set babyspiderattack=10<br/>set babyspiderdefense=10<br/>if %playerhp%==0 goto PLAYERDEAD<br/>if %lightspritehp%==0 goto LIGHTSPRITEDEAD<br/>if %darkspritehp%==0 goto DARKSPRITEDEAD<br/>if %waterspritehp%==0 goto WATERSPRITEDEAD<br/>if %firespritehp%==0 goto FIRESPRITEDEAD<br/>if %lightningspritehp%==0 goto LIGHTNINGSPRITEDEAD<br/>if %windspritehp%==0 goto WINDSPRITEDEAD<br/>if %mindspritehp%==0 goto MINDSPRITEDEAD<br/>if %earthspritehp%==0 goto EARTHSPRITEDEAD<br/>if %livingoakhp%==0 goto LIVINGOAKDEAD<br/>if %livingmaplehp%==0 goto LIVINGMAPLEDEAD<br/>if %livingredwoodhp%==0 goto LIVINGREDWOODDEAD<br/>if %babyspiderhp%==0 goto BABYSPIDERDEAD<br/>if %traphp%==0 goto TRAPDEAD<br/>if %elfhp%==0 goto ELFDEAD<br/>goto MAIN <br/>:MAIN<br/>start "/min" "c:\Users\Owner\Desktop\ALL\Exploration72\drumdance.mp3"<br/>set n=North<br/>set s=South<br/>set e=East<br/>set w=West<br/>echo Welcome to the Exploration <a href="https://interviewquestions.tuteehub.com/tag/72-243969" style="font-weight:bold;" target="_blank" title="Click to know more about 72">72</a> alpha testing. There is 1 monster, 1 class, 1 area, 1 item and 1 skill.<br/>echo To go to the game, type in P and press ENTER.<br/>echo To exit, type in E and press ENTER.<br/>echo To look in the instructions, type in I and press ENTER.<br/>echo To look in the reference, type in R and press ENTER.<br/>set /p input=COMMAND?<br/>if %input%==P goto LOGIN<br/>if %input%==E goto EXIT<br/>if %input%==I goto INSTRUCTIONS<br/>if %input%==R goto REFERENCE<br/>:EXIT<br/>cls<br/>pause<br/>exit<br/>:INSTRUCTIONS<br/>cls<br/>echo In this game you create your character and you can explore the text based world, hunt monsters and level up.<br/>pause<br/>goto MAIN<br/>:REFERENCE<br/>cls<br/>echo Sorry, there is currently no reference as the game is so small<br/>pause<br/>goto MAIN<br/>:LOGIN<br/>cls<br/>echo Enter your password:<br/>set /p input=Password:<br/>if %input%==MOMMY1 goto CHARACTERCREATION<br/>:CHARACTERCREATION<br/>cls<br/>echo Enter your characters name:<br/>set /p name=Name:<br/>pause<br/>goto CLASS<br/>:CLASS<br/>goto STR<br/>:STR<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p STR=Roll:<br/>pause<br/>goto INT<br/>:INT<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p INT=Roll:<br/>pause<br/>goto WIS<br/>:WIS<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p WIS=Roll:<br/>pause<br/>goto END<br/>:END<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p END=Roll:<br/>pause<br/>goto DEX<br/>:DEX<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p DEX=Roll:<br/>pause<br/>goto AGI<br/>:AGI<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p AGI=Roll:<br/>pause<br/>goto LUK<br/>:CHA<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p CHA=Roll:<br/>pause<br/>goto LUK<br/>:LUK<br/>cls<br/>echo Roll a 6 sided die, then multiply by three. What is your outcome?<br/>set /p LUK=Roll:<br/>pause<br/>goto DESCRIPTION<br/>:DESCRIPTION<br/>cls<br/>echo Enter a description for your character.<br/>set /p description=Description:<br/>pause<br/>goto EYE<br/>:EYE<br/>cls<br/>echo Type in your eyes.<br/>echo ,,o,0,*,O,.,?,!,,#^,,+,=,-,_,v,V,',"<br/>set /p eyes=Eyes: <br/>pause<br/>goto NOSE<br/>:NOSE<br/>cls<br/>echo Type in your nose.<br/>echo o,*,<a href="/cdn-cgi/l/email-protection">[email protected]</a>,#,O,.,,,',",?,,v,V<br/>set /p nose=Nose:<br/>pause<br/>goto MOUTH<br/>:MOUTH<br/>cls<br/>echo Type in your mouth.<br/>echo ,o,O,!,,#,.,,,',",?,,v,V<br/>set /p mouth=Mouth:<br/>pause<br/>goto FINI<br/>:FINI<br/>cls<br/>echo Your result is this:<br/>echo Name: %name%<br/>echo description: %description%<br/>echo STR: %STR%<br/>echo INT: %INT%<br/>echo WIS: %WIS%<br/>echo DEX: %DEX%<br/>echo AGI: %AGI%<br/>echo LUK: %LUK%<br/>echo END: %END%<br/>echo CHA: %CHA%<br/>echo Portrait:<br/>echo %eyes% %eyes%<br/>echo %nose%<br/>echo %mouth%<br/>pause<br/>goto FOREST1<br/>:FOREST1<br/>cls<br/>echo *****<br/>echo *******<br/>echo *********<br/>echo ***********<br/>echo **********<br/>echo ********<br/>echo ******<br/>echo | |<br/>echo | |<br/>echo | O |<br/>echo | |<br/>echo | |<br/>echo | |<br/>echo / \<br/>echo __/ \__<br/>echo You have newly entered the world. You are in a forest.<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:ROSE<br/>cls<br/>echo You have stumbled upon a rose. Do you wish to pick it up?<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:MPPOTION<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:ORANGE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:HAMMER<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:SHIELD<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:FOUNTAIN<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:BABY_SPIDER<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:SWORD<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:DEAD_GOBLIN<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:SHIELD<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:GOBLIN<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:LIVINGOAK<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:LIVINGMAPLE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:LIVINGREDWOOD<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:LIGHTSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:DARKSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:FLAMESPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:WATERSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:LIGHTNINGSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:WINDSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto :<br/>:MINDSPRITE<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:MERCHANT<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:TRAP<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto <br/>:NATIVEELF<br/>cls<br/>echo<br/>set /p input=N, E, S or W?<br/>if %input%==N goto <br/>if %input%==E goto <br/>if %input%==S goto <br/>if %input%==W goto Ok, first off, I suggest you start off WAAY <a href="https://interviewquestions.tuteehub.com/tag/smaller-1213327" style="font-weight:bold;" target="_blank" title="Click to know more about SMALLER">SMALLER</a>. Judging by your code, you need to take smaller steps and learn as you go, instead of jumping into the world of batch scripting head-first. <br/><br/>If you really want to make a batch game now, just do the <strong>absolute</strong> basics. Health and attack. Don't worry about STR, LUK, faries, shields, etc. until you learn how to do the small version properly first.<br/><br/>If you need <a href="https://interviewquestions.tuteehub.com/tag/guidance-25562" style="font-weight:bold;" target="_blank" title="Click to know more about GUIDANCE">GUIDANCE</a>, that's what we're here for. You don't have to take my advice, but trust me, you will thank me when you finish your batch game and it works.</body></html> | |