Hey Batch guys,
I'm on vacation right now with nothing to do but make a random batch RPG for educational purposes.
I can post the code if needed but it's kind of irrelevant to my question,
which is, how can I make it so after a scene of, lets say, a bear comes and attacks you,
Your CMD flashes black and white or black and purple etc. very fast, maybe 3 times a second?
•so far for this I'm thinking of something like this
Mind you, I'm a rookie, so it's pretty obvious that using timeout will only let me flash the screen in one second intervals. My hypothesis is that if I put a bunch of spaghetti code to make the program load and then change the color, then repeat, that maybe it'll take like a fraction of a second to load the next color. Haven't tested this yet.
So far for this I
Also, in a fight scene, how can I give the option to fight with a 30% win chance and a 60% chance of running away, and a 10% chance of using a trap?
I have no idea how to accomplish this, a reference for how to do this would be great.
(P.S. Sorry if this is random, I don't expect anybody to just write all the code for me, referencing me to a source is fine, or tips)
I'm on vacation right now with nothing to do but make a random batch RPG for educational purposes.
I can post the code if needed but it's kind of irrelevant to my question,
which is, how can I make it so after a scene of, lets say, a bear comes and attacks you,
Your CMD flashes black and white or black and purple etc. very fast, maybe 3 times a second?
•so far for this I'm thinking of something like this
Code
...
cls
Color 70
TIMEOUT /t 1
Color 7f
TIMEOUT /t 1
Color 70
...
cls
Goto nextSo far for this I
Also, in a fight scene, how can I give the option to fight with a 30% win chance and a 60% chance of running away, and a 10% chance of using a trap?
I have no idea how to accomplish this, a reference for how to do this would be great.
(P.S. Sorry if this is random, I don't expect anybody to just write all the code for me, referencing me to a source is fine, or tips)

