Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
As in an HUD? There are lots of ways to do it, the ways that use events involve using pictures and conditional branches (ie. if the variable is X, display picture X).
Although it'd be more practical to check out a script. Try searching the forums, specifically the script section.