Post by MostWanted on Jul 28, 2017 8:26:31 GMT
Hi, so while I am inactive, I am doing some coding, and I experimented a bit with making shc-logic battle calculator.
The project is now finished and you can download it to test and experiment with your compress numbers.
Download files: drive.google.com/drive/folders/0B0n--QUbmhSbV3R4VHpiMFNDZk0?usp=sharing
Instructions for download: Download all the files from the folder, and put them all in the SAME FOLDER on your pc. It is important that files are not in different folders! Then just open lolz.html file. It should be opened in your browser (best is chrome), if it doesn't, open it manually in chrome.
Notes about compress calculator:
- Compress calculator DOES NOT have the exact same stats of troops like SHC. I used my own.
- You can watch how troops die while they are fighting, it is represented by numbers.
- 3 different troops are available, knights, pikeman, and assassins. Combinations are also available.
- First unit to die is pikeman. Second unit to die is knight. Last dying priority is for assassins.
- This program is a CALCULATOR and it only represents 1 PIXEL COMPRESS fights. It is not 2D, it is not 3D, it is very much 1x1 compress where all units
start fighting immidiately, so knights will not have any advantage over pikes in terms of speed. This is why 45 sins beat 40 knights in my simulator. Because they immidiately start hitting knights from 1pixel, which is better than in real life where they are slower.
- If you don't want to wait time to see results of the battle (for example if you are using too much pikes), you can open "lolz.html" as text file, using notepad or any other text editor, search for this:
and change it to this:
- And now the best part. If you DO NOT like my unit stats and think I made some units overpowered, you can change the stats. Again, open the .html file as text editor, and find this part:
Now you can change stats for any troops.
leftArmy = units of left army...
rightArmy = units of right army...
atkP - attack on pikes - this means that unit will hit pikes with some damage in one hit. If you set it to 25, it will be 25.
atkS - attack on sins
atkK - attack on knights
hp - total health of unit
After you make your changes, save the file, and then refresh it in your browser.
Example:
hp of sins = 100
sins have atkS = 20
This means 1 sin will kill 1 sin in 5 hits. (100/2)
Have fun, enjoy it, and leave your comments below!
The project is now finished and you can download it to test and experiment with your compress numbers.
Download files: drive.google.com/drive/folders/0B0n--QUbmhSbV3R4VHpiMFNDZk0?usp=sharing
Instructions for download: Download all the files from the folder, and put them all in the SAME FOLDER on your pc. It is important that files are not in different folders! Then just open lolz.html file. It should be opened in your browser (best is chrome), if it doesn't, open it manually in chrome.
Notes about compress calculator:
- Compress calculator DOES NOT have the exact same stats of troops like SHC. I used my own.
- You can watch how troops die while they are fighting, it is represented by numbers.
- 3 different troops are available, knights, pikeman, and assassins. Combinations are also available.
- First unit to die is pikeman. Second unit to die is knight. Last dying priority is for assassins.
- This program is a CALCULATOR and it only represents 1 PIXEL COMPRESS fights. It is not 2D, it is not 3D, it is very much 1x1 compress where all units
start fighting immidiately, so knights will not have any advantage over pikes in terms of speed. This is why 45 sins beat 40 knights in my simulator. Because they immidiately start hitting knights from 1pixel, which is better than in real life where they are slower.
- If you don't want to wait time to see results of the battle (for example if you are using too much pikes), you can open "lolz.html" as text file, using notepad or any other text editor, search for this:
var b = setInterval(battle, 500);
and change it to this:
var b = setInterval(battle, 1);
- And now the best part. If you DO NOT like my unit stats and think I made some units overpowered, you can change the stats. Again, open the .html file as text editor, and find this part:
// Fill arrays
for (var i = 0; i < leftArmy.piks; i++) {
leftArmy.pikeman.push({atkP:"5", atkK:"7", atkS:"4", hp:"500"});
}
for (var i = 0; i < leftArmy.sins; i++) {
leftArmy.assassin.push({atkP:"21", atkK:"25", atkS:"20", hp:"100"});
}
for (var i = 0; i < leftArmy.knz; i++) {
leftArmy.knights.push({atkP:"20", atkK:"30", atkS:"10", hp:"300"});
}
for (var i = 0; i < rightArmy.piks; i++) {
rightArmy.pikeman.push({atkP:"5", atkK:"7", atkS:"4", hp:"500"});
}
for (var i = 0; i < rightArmy.sins; i++) {
rightArmy.assassin.push({atkP:"21", atkK:"25", atkS:"20", hp:"100"});
}
for (var i = 0; i < rightArmy.knz; i++) {
rightArmy.knights.push({atkP:"20", atkK:"30", atkS:"10", hp:"300"});
}
Now you can change stats for any troops.
leftArmy = units of left army...
rightArmy = units of right army...
atkP - attack on pikes - this means that unit will hit pikes with some damage in one hit. If you set it to 25, it will be 25.
atkS - attack on sins
atkK - attack on knights
hp - total health of unit
After you make your changes, save the file, and then refresh it in your browser.
Example:
hp of sins = 100
sins have atkS = 20
This means 1 sin will kill 1 sin in 5 hits. (100/2)
Have fun, enjoy it, and leave your comments below!