Automatically change \G into an icon?

I know you can use the "adjust limits" script to use a gold icon in the menus. I know you can use \i[361] to use the gold icon in text. But is there a script that will let you use \G in show text, and have it show an icon? I've searched around and can't find anything. 

It seems like an obvious thing, because a lot of people already put a lot of work into their games, and don't want to go back and change all their \G to \i[361]. For me, \g is just much faster to type, and more flexible if I want to change my mind later.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Well I wasn't requesting a script, I was asking if there already was one, or if there was some other workaround. I can't believe there isn't already a way to do this. But I guess in that case, it is a script request. 🙂
If you are asking if there is a script to do something, then you are requesting a script 😉 Doesn't mean you're asking for a NEW one to be written.


And the only non-script workarounds are those you've already listed (tell it to show the icon) which will not affect ALL windows.


There actually MAY be a script out there already. I'm almost certain it's been asked before. I suppose \G is too short for the search terms. Hopefully someone will remember some of the details (or it will be a quick one to write) and give you an answer 🙂
Okay, thanks! I thought this section was for NEW scripts only.
So you just want to type in \g instead of \i[goldicon_index]?
Correct. It's quicker, and then if you change your mind you can switch back to using a text symbol. Also, anyone who is far into developing their game can switch, without having to go through all their messageboxes.
Here you go.
Thanks! I tried it out and it works great, except for a few things:

- it doesn't work in "show choices" (regular \g would show "buy for 100G", but now it's "buy for 100" -- is it possible to add there?)

- the money at the bottom left of the menu when you hit B is now centered, and larger I think -- I'm using the "adjust limits" script to show the gold icon there, and also make the font smaller. Maybe it's conflicting?

- my game will be commercial -- what do you want for a license?
~I didn't think about choices I will add that to.

~I think your right about this try removing it and see if that works. If it does (and I will anyway) I will add an option to change the gold window in the case you don't need to.. If not I will see what I can do.

~I will pm you as soon as I am done adding in the "choices icons" about the license.

*Edit~

Here's the updated script.
Choices work!

The new option does work, but changes it back to "G" (so it overrides the "adjust limits" script) -- however, I moved your script ABOVE the other one, and now everything seems to work perfectly! My menu is the smaller text, correctly aligned, etc.

Perfect!
Thank you! 😀 Glad to help.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-change-g-into-an-icon.23952/