Skip to content

Automatic ballista control.

User Avatar
#65
Auto-translated
So, our cycle is complete. But before running the program for a long time, it is worth conducting a test (the "Test" button), i.e., performing a single run of the cycle you just set, and seeing if everything works correctly. And if, for example, you see that after the turn of the fairies and zombies, when the turn is passed to the peasant, he stands still for a long time (well, about 1 second, for example) and does not pass the turn, then you can reduce the delay from 3000 to 2500 or to 2000 ms, the main thing is not to overdo it, it is better to have a slightly longer delay, but a stable program. If, after testing, the test cycle runs successfully, you can start the "autobattle" using the program. Let's calculate how many rounds the program will need to kill 94 zombies. In our example, the average damage of a ballista is 22 HP. 94 zombies have 94 x 20 = 1880 HP. Therefore, the ballista must fire 1880/22 ~ 86 times. 86 times is 43 cycles of the program (since the ballista in our cycle from step 1 to step 5 fires twice). Thus, in the "Rounds to pause" field, we set a number close to 43 (say, 40 or 45), but not 5000 :) otherwise, the program will kill the zombies and will not stop for a long time. Good luck!
Attachments 1
1 file attached • Total size: 133.9 KB
Клан Homo homini

Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up,
Doth not behave itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil;
Rejoiceth not in iniquity, but rejoiceth in the truth;
Beareth all things, believeth all things, hopeth all things, endureth all things. Charity never faileth...