Any text boxWHERE do you want to show the icon?
for any text field like show text the text code given two posts above is correct.
And IconIndex is ALWAYS the number of the icon - that is what index means. It is never the icon itself, which is drawn by functions referencing the index.
then your answer was given already
will show the icon with the number icon index n inside the text message.
will show the icon whose icon index is stored in variable with ID in the text message.
If that is not enough, then you need to explain to us which icon exactly you want to display, and where you stored it's iconindex (or where you want to get the index from)
it does - and your screenshot proves it.not yet
it does - and your screenshot proves it.
The first icon in the iconset is always invisible - it needs to be for the battlescreen to handle states correctly.
so I'm guessing you didn't store any number in the variable and the textcode was correctly converted to the invisible icon #0, because otherwise you would read the text of the wrong text code there
What I do?The icon with the ID number 1 seems to be invisible, which is why you can't see it.
But I want to show the icon according with variable.Go to your icon index and find the icon you need. At the bottom of that window there will be a number, which is the ID of the icon. Write that ID to show the icon.
then you need to store that number into the variable before the show text.But I want to show the icon according with variable.
The number of icon I know.
This line is absolute nonsense that will always result in zero, which is why the invisible icon was displayed.$dataItems\i[$gameVariables.value(237)].iconIndex