Hello everyone, I used command: $dataItems[$gameVariables.value(237)].iconIndex in order to show icon image, but showed icon number.
Is there anyway to show icon image?
$dataItems\i[$gameVariables.value(237)].iconIndex
I used this, but show only number.
Thanks for answear
WHERE do you want to show the icon?
for any text field like show text the text code given two posts above is correct.
your alternative from the post above will never work because it mixes text code and javascript code.
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
\i[n]
will show the icon with the number icon index n inside the text message.
\i[v[id]]
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)
I forgot the second slash
\I[\V[id]]
will work
The icon with the ID number 1 seems to be invisible, which is why you can't see it.
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.
I get that but either there's no icon matching with the ID or you have done something wrong with the variable. Try to look at your variable and see if you made a mistake somewhere.
Worked now!
I removed \i before $gamevariables.
Thank so much man!
$dataItems[$gameVariables.value(237)].iconIndex
\I[\V[1]]
None of the things you did were what people suggested. You always changed them in some way compared to how they were posted. Even your last post isn't right (so if it works, what you posted is not exactly what you did).
\i[\v[237]]
should be all you need.