When it comes to changing the weapons in the game, the user moves non linear throughout all the screens in the game from region to region. its not done at random so if I'm in Trollmountain23c. and call up Change weapons menu up from that location, the game should just pop me back into trollmountain23c after finishing using with the Change weapons menu, the same if I'm in swamp05 or Dark Forest6, or any other game area location. I don't want the game to just pop me back into a random area but to return me back instead to the same area or whatever game region or screeen area I happen to be in at the time.
So I think for batch code I have to use goto :EOF to make the game return me back into my last known location
Ok I've read the information that was given: I'll try Goto :EOF, put that at the end of my change weapons menu code, it should just return me back to the last known game location after exiting the menu.
Blender is a strange program, I don't particularly like it. I got it working. (somewhat) to put the fence diagonally in the 3d isometric top down view.. and I will try that and see how it turns out like.
I removed the second loop and changed your code to this:
set /a spin=%random% %%20 (double percentages for the formula)
then I set the rest of it to this
if %%f EQU %spin% goto !names{%%F]!
Thank you for showing me the rest of the formula for this array Boogle, i know it seems basic stuff to you but it wasn't basic stuff for me, it was actually pretty hard for me to try to grasp the batch syntax of it because i didn't know the syntax of the batch language that I was programming in because no documentation came with the batch language on my computer and that's why I had trouble knowing how to write the formulas out I can look more into this to see what else it can do with the monsters and other stuff so thanks for giving me a starting point with the array, its amazing just how the array just jumps randomly off into the screens now.
Yes, Boogle did try to help but i needed the correct syntax for this difficult language I'm using and not many people know it because they using those more modern languages. Well I asked another guy on another site and he don't know how to do that one either So to answer I find batch to be good for doing only some things with it, average for doing others, and either weak, or just absolutely abysmal for trying to do other stuff.that without third party programs are outside its limits because batch language dosen't have very much of a bone by the looks of things, so to me batch was more like Old Mother Hubbard who has no goodies in her cupboard so you have to dig around to look for all the goodies because her cupboard has gone bust...
Pity Batch aint like magic pockets where you get lollies and candy and cakes all thown out to you all the time all coming out of a magical whirlwind....
The batch language I find it to be unstable but it somehow seems to work, but so much can go wrong with the code if its just one little tiny thing that is missing then it crashes or gives errors.
But there's a neat little program called batchcodefix and that helped me to get rid of most of the errors to make the code stay stable..
The batch game was just an experiement to see what the game would look like because I wanted to roam all around all the game regions first before thinking of shifting this game into a 3d engine.
So the batch gave me a basic rough outline of a game engine. I didnt want this type of game to be only shackeled to just turn-based or stuck forever in the quagmire of batch... The batch was useful for me because i could script it all very fast with that language but the disadvantage is that it would be an open world turn-based engine, not an open world real time interactive engine like with the proper 3d game engines today.
I did ask for some help elsewhere on another site to try to solve this array problem and did receive the following answer when I posted about the problem, 'Nope, i got nothing.' so truck out there, so i did try to help myself by asking around. You say I've been rude to you, no you msunderstood, I have spoken mainly about the problem I'm having with trying to set up the array for I learn by example.
Well the case of the array is very simple. I don't know where the piece of this puzzle fits in so of course I am not going to know where to correctly place the piece of the puzzle. because I've not seen what the finish puzzle looks like to know where this piece has to go and how it fits into the rest of the picture. So here I am trying to jam in the piece and finding that its the wrong shape because i'm holding it the wrong way around and no matter how much i try to force the piece in to try to get it to fit, it just wont' fit and the computer coughs up errors to tell me that piece is not going to fit. So I cannot complete the puzzle until i know where that piece actually fits in and if you don't fit it in right, errors will result. So Its like doing a puzzle. and its really frustrating that you want to complete the puzzle but can't because you don't know how the piece fits.
In telling me to go by my own experience to figure out how it fits myelf, You fail to realize this one truth, that its not experience that's the best teacher, but it is correct example that is the best teacher. that is the best way to learn.
I learn by watcing others show me the correct example.
Experience is not always the best teache because experience is not based on correct principles but on trial and error.
When it comes to changing the weapons in the game, the user moves non linear throughout all the screens in the game from region to region. its not done at random so if I'm in Trollmountain23c. and call up Change weapons menu up from that location, the game should just pop me back into trollmountain23c after finishing using with the Change weapons menu, the same if I'm in swamp05 or Dark Forest6, or any other game area location. I don't want the game to just pop me back into a random area but to return me back instead to the same area or whatever game region or screeen area I happen to be in at the time.
So I think for batch code I have to use goto :EOF to make the game return me back into my last known location
Ok I've read the information that was given: I'll try Goto :EOF, put that at the end of my change weapons menu code, it should just return me back to the last known game location after exiting the menu.
Blender is a strange program, I don't particularly like it. I got it working. (somewhat) to put the fence diagonally in the 3d isometric top down view.. and I will try that and see how it turns out like.
That was the iron fence I used yes.
Your explanations are very helpful. I don't yet know how many names I can dump into it. don't know what the limit an array can handle.
set /a spin=%random% %%5 (double percentages for the value).
then set the code as this
that was the missing piece I didn't know about.
Thank you Boogle.
I removed the second loop and changed your code to this:
set /a spin=%random% %%20 (double percentages for the formula)
then I set the rest of it to this
if %%f EQU %spin% goto !names{%%F]!
Thank you for showing me the rest of the formula for this array Boogle, i know it seems basic stuff to you but it wasn't basic stuff for me, it was actually pretty hard for me to try to grasp the batch syntax of it because i didn't know the syntax of the batch language that I was programming in because no documentation came with the batch language on my computer and that's why I had trouble knowing how to write the formulas out I can look more into this to see what else it can do with the monsters and other stuff so thanks for giving me a starting point with the array, its amazing just how the array just jumps randomly off into the screens now.
Yes, Boogle did try to help but i needed the correct syntax for this difficult language I'm using and not many people know it because they using those more modern languages. Well I asked another guy on another site and he don't know how to do that one either So to answer I find batch to be good for doing only some things with it, average for doing others, and either weak, or just absolutely abysmal for trying to do other stuff.that without third party programs are outside its limits because batch language dosen't have very much of a bone by the looks of things, so to me batch was more like Old Mother Hubbard who has no goodies in her cupboard so you have to dig around to look for all the goodies because her cupboard has gone bust...
Pity Batch aint like magic pockets where you get lollies and candy and cakes all thown out to you all the time all coming out of a magical whirlwind....
The batch language I find it to be unstable but it somehow seems to work, but so much can go wrong with the code if its just one little tiny thing that is missing then it crashes or gives errors.
But there's a neat little program called batchcodefix and that helped me to get rid of most of the errors to make the code stay stable..
The batch game was just an experiement to see what the game would look like because I wanted to roam all around all the game regions first before thinking of shifting this game into a 3d engine.
So the batch gave me a basic rough outline of a game engine. I didnt want this type of game to be only shackeled to just turn-based or stuck forever in the quagmire of batch... The batch was useful for me because i could script it all very fast with that language but the disadvantage is that it would be an open world turn-based engine, not an open world real time interactive engine like with the proper 3d game engines today.
I did ask for some help elsewhere on another site to try to solve this array problem and did receive the following answer when I posted about the problem, 'Nope, i got nothing.' so truck out there, so i did try to help myself by asking around. You say I've been rude to you, no you msunderstood, I have spoken mainly about the problem I'm having with trying to set up the array for I learn by example.
Well the case of the array is very simple. I don't know where the piece of this puzzle fits in so of course I am not going to know where to correctly place the piece of the puzzle. because I've not seen what the finish puzzle looks like to know where this piece has to go and how it fits into the rest of the picture. So here I am trying to jam in the piece and finding that its the wrong shape because i'm holding it the wrong way around and no matter how much i try to force the piece in to try to get it to fit, it just wont' fit and the computer coughs up errors to tell me that piece is not going to fit. So I cannot complete the puzzle until i know where that piece actually fits in and if you don't fit it in right, errors will result. So Its like doing a puzzle. and its really frustrating that you want to complete the puzzle but can't because you don't know how the piece fits.
In telling me to go by my own experience to figure out how it fits myelf, You fail to realize this one truth, that its not experience that's the best teacher, but it is correct example that is the best teacher. that is the best way to learn.
I learn by watcing others show me the correct example.
Experience is not always the best teache because experience is not based on correct principles but on trial and error.
Pages