Is there a way to make a counter for State steps?

So I recently played through a RPG maker VX ace game called MarikinOnline4, and the game has an item that makes you not encounter enemies in the overworld, it keeps track of the amount of steps you have left until the "stealth" expires.
1774278606392.png

Could someone help me recreate something similar to this in RPG maker MV? maybe a plugin or using the SRD Hud maker?

Edit: Another thing; if possible, could it also show a pop up when it runs out like "your stealth ran out"?
If you mean against encounters, Yanfly has Repel & Lure Encounter plugin where you can set a variable to how many steps there will be no encounters and for it to run a common event when the repel effect ends. So you make the common event make a text popup. There's many plugins for that, for example Galv has Timer Message Popups, though I think that one has the messages inside windows but there's others too.
If you mean against encounters, Yanfly has Repel & Lure Encounter plugin where you can set a variable to how many steps there will be no encounters and for it to run a common event when the repel effect ends. So you make the common event make a text popup. There's many plugins for that, for example Galv has Timer Message Popups, though I think that one has the messages inside windows but there's others too.
ill see what i can do with those plugins
Right so, I got the thing working and now I have a encounter repellent item. However, I'm still not sure how to do the display hud...
Since you said you were using SRD Hudmaker, you can make it show that variable you use for repel and make the visibility condition that that variable > 0 (that way it only shows when you use the repel item to give the variable a value)
Ok so uhh Im pretty new to this SRD hud maker... it would be nice if you could help me with it lol

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-make-a-counter-for-state-steps.182988/