Hello! Using Sumrndude's HUDmaker plugin I have made it so that the player portraits are meant to change when inflicted with a state, However instead of that the portraits will only update once with the first inflicted status and will not change when another status is inflicted.
I have checked to see if it was related to states stacking on each-other however that doesn't seem to be the case.
I'll link my project file below for anyone to take a look.
Thankyou for the help!
changing states mostly takes the highest priority set and can change while
you select the actor again.
which does in the refresh method there and condition.
if you want to show all states when inflicted, you need to condition like that
with using || (OR) method.
if the highest states wear off, the 2nd highest priority state takes effects.
if this doesn't happen, I can take a look when I get time or someone else.
Speaking for myself, I'm not super motivated to download a project, unzip it, and dig around to try to find where you have things set up just to try to help you with your question 😉
If you post the code you're using in your conditions, you're more likely to get a quick response.
by condition, he mean, each state has its value and condition to set,
that condition become red (invalid/false) or green (valid/true) which you can
check during battle.
if you removed the state and doesn't change the look, this means you did
code to revert it back like:
if (a.isStateAffected == null) {set normal state here} else { do other stuff}
and you can even make it better if you add a custom plugin to it like:
changeActor = function() {
you statement on changing actor}
than use the condtion: "changeActor()" to take that function to keep it
cleaner so the changes are easier to make than in a 1 liner.
also, states have priorities, so if 3 states has priority 100, the lowest ID
will take place, so you have to make them correctly.
you could also show a screenshot of your current look and what happens after
and should happen if another states shows (I didn't had time to look) but the
more info you set and screenshots with details, advance coders can help you
set the correct condition.
the refresh does work correct in my custom hud part though, but can you show
the condition you used for those portraits?