How would I go about displaying an icon above the player?

Hi! I got my hands on RPG Maker XP about 2 weeks ago and have been messing around with it. I have a nice, promising project going, even slowly learning Ruby as I go.

But right now, I have an issue. I want to find out how I can display an icon above the player, as in they hold it over their head in celebration! How would I go about scripting this??

Link to video demonstration
1753228394925.png
You could just change the character sprite via event command. It should be a sprite that includes both your hero and the item he or she has found.
The game is going to have hundreds of items, so I'd rather not resort to that.
If you do the first part and leave the item or weapon or piece of armor as a secondary sprite, you could exchange the normal hero's sprite with the lucky one AND move a previously created event with the given graphic above the player. To keep the second event hidden, you'd need to use a game switch as its trigger condition. Then right after you save the change hero's graphic command, you'd move the event and turn on the game switch.
Again, I would rather have this as a script.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-go-about-displaying-an-icon-above-the-player.179099/