Hey all,
I am working with a script in HUDMaker that i think @caethyril (?) helped me with
In battle this works just fine, it cycles throuuggh the battlers states in order and omits the state i don't want it to show. What i'm looking to do is apply this same sort of icon cycling within a window. Rather than the traditional way drawActorIcons works. The problem is Window_MenuStatus wouuld only uupdate the icons while the window is activated and being interacted with.
Does anyone have a Window_Base or Window_StatusBase function handy that can handle drawing a sequence of icons refreshing on its own?
I am working with a script in HUDMaker that i think @caethyril (?) helped me with
const actor = $gameParty.members()[0]; // leaderconst states = actor?.states().filter(state => state.id !== 2); // Filter out Guard state (ID 2)if (states && states.length > 0) { // Ensure there are states to process const icons = states.map(state => state.iconIndex); if (icons.length === 1) { return icons[0]; // Only one icon, return it without cycling } const c = icons.length; // icon count const t = 60; // frames per icon const f = Graphics.frameCount % (c * t); // time loop of c * t duration const currentIndex = Math.floor(f / t); return icons[currentIndex]; // Return the current icon} else { return null; // No states, return null or a default value}In battle this works just fine, it cycles throuuggh the battlers states in order and omits the state i don't want it to show. What i'm looking to do is apply this same sort of icon cycling within a window. Rather than the traditional way drawActorIcons works. The problem is Window_MenuStatus wouuld only uupdate the icons while the window is activated and being interacted with.
Does anyone have a Window_Base or Window_StatusBase function handy that can handle drawing a sequence of icons refreshing on its own?