Skip to content

Illusion of victory.

#78
Auto-translated
Heroist

I don't even know – this option isn't that complicated, but how do we handle the fact that the hero will leave some reinforcements in the fort? It's no longer possible to check how many he took from there, and if we do check, it will be very difficult. Secondly, how do we handle the resource check? After all, the fort window kind of "blocks" all the scripts, so the player will be able to take all the reinforcements without any problems, and the check will only start later. So, at the very least, it won't look good.
I have some ideas on how to implement a resource check. Here's the algorithm: the player agrees to summon creatures. Immediately, the resources are deducted from his balance, and according to their availability, troops are summoned to a virtual garrison (i.e., if there is a shortage of a certain type of resource, those creatures will not be in the garrison). After that, the player rearranges the troops. The window closes. The creatures that remain in the garrison are exchanged for the corresponding resources at a certain rate, and they, in turn, are returned to the player's account. There will be no problem with the player taking more than he should.