MV Yanfly Core Engine

Hi I was just wondering if it was possible to use a script call or plugin command to change the Gold Icon within an event? I saw in her script that she included an option to change it within the plugin parameters but I couldn't find information about changing it or any of the other plugin commands (other than gain/lose gold) within the game itself.

- Thanks
Where/how are you using it?

If it's in a Show Text or something, you can just use the built in \I escape code to display whatever icon you like.

The technical answer is the number you specified is stored in the global variable Yanfly.Icon.Gold, so you can use a script call to change that to whatever value you like.
It's being used in an event to change the gold icon displayed in the menu/shop interface, is this how you would write the script call?

$gameVariables.setValue(Yanfly.Icon.Gold, 76);

76 being the icon number?

I tried this and I didn't get any errors but it also didn't change anything.
No, Yanfly.Icon.Gold is an actual javascript global variable. You simply set it with:
JavaScript:
Yanfly.Icon.Gold = 76;

$gameVariables.setValue(Yanfly.Icon.Gold, 76);
This doesn't produce an error message because it is still valid javascript. If your currrent icon is 123, this will set the game variable 123 to the value 76.
I tried this and I didn't get any errors but it also didn't change anything.
As @eomereolsson pointed out, it's not a game variable. It's one created by a plugin.

You'd use the Script event command and type it in as he demonstrated in his post.
Oh I see, I got it working now thanks to both of you.
Ty very much.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-core-engine.166550/