Galv, I noticed that if I try to dynamically add an x,y popup without using the Show Text command, in an event command (or common event command), it doesn't seem to respect the x,y pop-up. Instead, I would guess it strips away that as invalid messaging?
let message = "\\pop[800,400]\\c[5]Tree \\v[200]"
let nTree = 100+$gameVariables.value(200);
if (nTree >100 && nTree < 110){
let glyf = $gameVariables.value(nTree);
if (glyf > 0 && glyf < 10){
let icon = 9+glyf;
message+=" is projecting\\i["+icon+"]"
if ($gameSwitches.value(88)){ message+="\\n which is value \\c[1]"+glyf.toString()+"."; }
else { message+= " looks like a tree."}
} else { message+= " looks like a tree."}
}
$gameMessage.add(message);
Is there a way to use the javascript
$gameMessage.add(message) so that it will accept my dynamic use of the pop[x,y] escape code?
I want to do this because, as you can see in the code snippet, I want to dynamically change a few qualities of the text including the icon being shown without having to modify the way icons are parsed in variables.