MZ [SRD HUD Maker Ultra] Changing States Icons

Hello!

I’m trying to add dynamic state/buff icons what automatically change when an actor is affected with multiple states. Is there anyway I can do this within HUD Maker?
You might be able to use Graphics.frameCount somewhere? E.g. (untested):

const actor = $gameParty.members()[0]; // leader const icons = actor.allIcons(); // all icon indices const c = icons.length; // icon count const t = 30; // frames per icon const f = Graphics.frameCount % (c * t); // time loop of c * t duration return icons[Math.floor(f / t)];
This'll return an icon index, not sure if that's what you need. Also, this example is function code. I don't remember what SRD's plugin expects - if you need an eval, just remove the return word. 👋

Original thread: https://forums.rpgmakerweb.com/threads/srd-hud-maker-ultra-changing-states-icons.152302/