Making a script that changes text based on a variable

I'd like to create a small script, but don't know where to start and wondered if someone could point me in a direction that could help (RGSS3). I don't need you to make it for me, but i'm wondering were i could find info on how to make a script that would change text color based on a variable, but would only change text in items that have a note tag, something like <Text change: Color, Variable less than X>
I forgot to mention this in your other Thread:

\c[\v[1]]Hello World
This changes the Hello World Color depending on the value of variable1.
Sadly not working in Item Name. Only in Item description. Hope this still helps somehow.

Edit:
This Script seems to allow Colored Item Names. Not sure if it allows changing them on the go. Else you could work around it by creating 3 different colored Items for Hunger and just exchange them when needed. Items in Menu are sorted by Database Id.
https://rpgmaker.net/scripts/461/
@Oddball Script Support is for help getting a script you already have to work in the way you want it to. This appears to be a Script Request.
Moderator note: You frequently post threads in an incorrect forum, despite several requests to be more careful. Please take a lot more care about where you put things. If you are unsure about the purpose of a particular forum, read the forum's description.
Moderator note: Moving this to RGSS3 Script Requests.
@Kes I wanted to write it myself
Sorry - I can't give one-on-one help via PM. Can you please ask in the forum? Either RGSSx Script Support if you want to do it yourself and just need a bit of assistance, or RGSS3 Script Requests and someone can write it for you.
I think it would be better in Learning Ruby and RGSSx as you will need guidance on what to do.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-script-that-changes-text-based-on-a-variable.113545/