Skip to content
#832
Auto-translated
Mostovik
In the Real-Time Arena (RTA), it's necessary to display a list of possible heroes that the opponent has acquired. Currently, I've implemented it so that their names are repeatedly shown above the opponent's castle using a fly-text message. However, it's visually difficult to recognize the heroes by their names; it would be better if their faces were visible. I considered using posters, but it would be too time-consuming – I'd need to create 88 posters. Creating posters for the 48 spells took me about 3 hours, but it was necessary because the spells need to be displayed in every game, while the possible heroes only need to be shown when the Scouting perk is acquired.
Another quick option would be to retrieve the necessary heroes from the reserve and keep them in a special enclosure with their movement points deducted, but then the heroes would also appear in the bottom panel, which isn't ideal.
Overall, after some digging, I found a way to display more than one icon in a MessageBox. But this raises another problem – how to call up the necessary icons using a script, i.e., a reference to the texture. It exists in TalkBox as one of the parameters (you can vary it with variables from an array) – but again, there's only one parameter, i.e., one icon. The MessageBox doesn't have such a parameter (only text).
Overall, the poster implementation will be simpler and faster :smile33: