The hero is offered to sacrifice his army at the altar.
Then, a check is performed on the number of creatures in the hero's army.
If there are more than 12, dialog(2) is triggered.
If not, dialog(3) is triggered.
The problem is that the hero only starts interacting with the altar, and the program has already managed to count his army and, after the sacrifice, shows dialog(2). How can I make the check for the number of creatures run after the hero sacrifices his army?