MV Any plugin to show states on map

Hi!

I am looking for a plugin to show states on map

Something like a HUD on screen like this:
1666423311509.png


or maybe over the character like this:
1666423385972.png


It should show states affecting any actor in the party

Do you know how to achieve this?

Thank you!
It is possible to display state_Icons or even the state_Overlay from sv battles on map..
Screenshot_1.png
Screenshot_2.png

(the state_icon on map changes and displays all states that are added, the sv_state_overlay just shows the state with the highest priority)

i did that for srpg, but in srpg the battleUnits are events that have the battler data added(including actorData) , that makes it easier to adress the displayed state to the event.

It should also be possible to adress that to the gameplayer or the followers but i dont know much about codes regarding the followers..
(its needed to know the code that tells me which follower has which actor id, same thing for the gameplayer.. in order to adress the displayed state_overlay or state_icons)

also idk if other plugins allready would solve your request,
and i am a bit busy right now.

edit:
( perhaps the srd hudmaker would allready be able to archieve your request )

edit2:
if anybody wanna build a new plugin for that and need some hints how to display the overlay or the icons,those are the plugins which i use for srpg to archieve what i showed on the imgs:
(JS_knowledge required)

state_Icons that change&display all states:
this plugin also adds other stuff like weapon icons and hp hud ect,.. so its only needed to look into code thats related to state icons

sv_State_Overlay:
this plugin only enables sv state overlay for Map on Battler_Events, this would need just little edits to adress gameplayer and followers(related to their actor data) instead of srpg_BattleUnits
I also thought on the srd hudmaker, but I can't imagine how to do it exactly, I think I could make it usin a parallel process to check every actor states and add them in a variable

JavaScript:
vari=500;
$gameParty.members().forEach(function(Game_Actor) {
    Game_Actor._states.forEach(function(State) {
        if(++vari<510) // show 10 icons max (from 501 to 510)
        $gameVariables.setValue(vari, State);
    });
});

and then, use those variables to show the icon...

I will try this method

--- EDIT ---

Ok, there is a problem, it seems like my HUD Maker is not able to add a "TextEx" element to show icons using its id number 😂

1666464634593.png


--- EDIT 2 ---

Solved the hud error, but my code is wrong, it gets the state id, not the icon id, so I am looking for a way to get the icon.
if you have the state id ,you need to look for & use "iconIndex" of that state (atleast i think so)..

here some imgs for better understanding:

plugin example for weapon icons:
Screenshot_1.png


console example to show where "iconIndex" is located:
(funny thing my first state which is the deathstate has also the iconIndex "1" because its the first icon on my iconlist.. this can make confusion if not knowing.. because both state and iconIndex IDs are "1".. but thats just a coinsidence)
Screenshot_2.png

Screenshot_4.png


edit:

for more code infos regarding Hud maker ,you can also look in my signature spoiler were i store script info for the hudmaker usage:
(first open the spoiler "text" at the bottom then you will find it..)
Screenshot_5.png



btw i think moghunter has a "variable hud" which could also be used instead, as soon you got the iconIndex stored in a variable.. but i think the hudmaker can do much more at the end..
It works!
1666469383181.png


This is the script:

JavaScript:
vari=130; // icons will be stored in variable 131, 132, 133... 140
$gameParty.members().forEach(function(Game_Actor) {
    Game_Actor._states.forEach(function(State) {
        if(++vari<=140) // show 10 icons max (from 501 to 510)
        $gameVariables.setValue(vari, $dataStates[State].iconIndex);
    });
});
for(f=vari;f<=140;f++){ // This is for cleaning
    $gameVariables.setValue(vari, 0);
}

So, in Hud Maker, in a TextEx element add this code:
Code:
\i[131]

And that's all!

Thank you dopan!!
Nice congratz!
and it was easier than i thought^^

Spoiler: GamePlayer&follower code in console
However.. just incase it might be needed later, i also found the code how to adress or atleast find "gameplayer" and "follower" -data with the console.
(but it has no actor id , so its not really usefull for what i was looking for.. your solution with using "gameparty member" is better)
Screenshot_6.png
It works!
View attachment 243295

This is the script:

JavaScript:
vari=130; // icons will be stored in variable 131, 132, 133... 140
$gameParty.members().forEach(function(Game_Actor) {
    Game_Actor._states.forEach(function(State) {
        if(++vari<=140) // show 10 icons max (from 501 to 510)
        $gameVariables.setValue(vari, $dataStates[State].iconIndex);
    });
});
for(f=vari;f<=140;f++){ // This is for cleaning
    $gameVariables.setValue(vari, 0);
}

So, in Hud Maker, in a TextEx element add this code:
Code:
\i[131]

And that's all!

Thank you dopan!!
In the long run it may be worth looking into replacing your forEach functions with a for...of loop as forEach can get quite expensive to call and having one loop inside another might end up causing a little bit of slowdown.
It works!
View attachment 243295

This is the script:

JavaScript:
vari=130; // icons will be stored in variable 131, 132, 133... 140
$gameParty.members().forEach(function(Game_Actor) {
    Game_Actor._states.forEach(function(State) {
        if(++vari<=140) // show 10 icons max (from 501 to 510)
        $gameVariables.setValue(vari, $dataStates[State].iconIndex);
    });
});
for(f=vari;f<=140;f++){ // This is for cleaning
    $gameVariables.setValue(vari, 0);
}

So, in Hud Maker, in a TextEx element add this code:
Code:
\i[131]

And that's all!

Thank you dopan!!

I'm looking to implement a similar status icon system in my game, but the TextEx element is drawing the icons using their ID number, instead of the var. How'd you go about fixing this?

Original thread: https://forums.rpgmakerweb.com/threads/any-plugin-to-show-states-on-map.152139/