Skip to content

We are propping up the AI with workarounds.

User Avatar
#10
Auto-translated
Long

Definitely. As mentioned above, the functions triggered by clicking the "OK" and "Cancel" buttons are not executed by the computer. You'll have to implement a check to determine if the hero belongs to the AI, and if so, immediately direct them to the function associated with the "OK" button.

Added 10 minutes later
Or a special function for the AI.
I am referring to what Ment wrote, about the possibility of not giving the bot anything at all. And if nothing is given, then it generally doesn't matter that it ignores the message, because its actions are not of interest to us anyway.
Of course, if you are processing the bot's interaction, then checks are definitely needed.


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.