Skip to content

Automatic ballista control.

User Avatar
#13
Auto-translated
vbn;81268
Yeah, if the hero has the skill to control a ballista, you can enable it to automatic control in the battle settings menu. But in our case, the battle isn't being fought in auto mode :(.
Therefore, there are still 2 options.
You didn't understand. If the hero has the control skill, you need to disable EVERYTHING in this automatic battle settings menu, EXCEPT for the ballista. Then, press the automatic battle button. Then you will control everything yourself, but only the ballista should work on auto. Accordingly, the program should still work correctly according to the previous algorithm! Check it! Maybe it will work that way :)
vbn;81268

Regarding the guarantee that the enemy monster unit won't rush to the additional unit, and then won't attack the ballista itself - you are right. But in the example we are considering, the ballista and the peasant are very far apart; the zombies will only hunt the fairy.
So, how about sending me the program and the source code by email (just in case)
Because in the attached file, I only found this: Ballista.h3m
I have some ideas for improving the program's algorithm, but it probably won't be possible to do it in 10 lines, but it will work and probably take into account the morale of your own unit. Are you interested? Should I describe the idea here?