Solved how do i make a random event in batch

July 22, 2016 at 19:43:27
Specs: Windows 8.1
So I want to make a game like romance of the three kingdoms so you have allies also you have enemies so heres how it would go you have for example 100 allies and randomly you encounter enemies and you have a chance of winning and losing allies also if you can I want a replica of the game in batch so I can test around with it. If you have the time to do it that would be much appreciated.

See More: how do i make a random event in batch

Report •

July 22, 2016 at 20:47:07
✔ Best Answer
:: elite.bat 2016-07-23 10:48:55.64
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

:: generate one of 100 choices
set/a C=!RANDOM!%%100+1
goto :eof
::====== script ends here =================


M2 Get custom script or take private lessons

Report •
Related Solutions

Ask Question