MZ Hud Maker Ultra and MrTS_StatesEX, stacked statuses in the Hud

I'm using Hud Maker Ultra and a plugin called MrTS_StatesEX, but I'm having trouble with StatesEX. It works otherwise flawlessly, but it cannot draw the number of stacked status effects, probably because HMU (as I understand) disables original hud. So the question is - Is it possible to use the HMU text components code field (or something similar) to return the amount of stacked statuses (and then just make that number a string), and if it is, how?
Picture added for clarification 😊

Plugin used - https://github.com/Trivel/RMMV/blob/master/MrTS_StatesEX.js
Looking at the plugin, the function for stacks is battler.getStateCount(id)

I don't know what your reference is to the battler using HUD Maker to give you the exact code.
Thanks for quick response! I tested with
Code:
var test = $gameParty.members()[0].getStateCount(4);
return test;
on the HMU text/code, and it seems to be working perfectly! I'm not knowledgeble enough to say if this is a good method or not, but atleast it works! 😍 Now it's just a matter of duplicating it for all chars 🙂
The creation of the variable is pointless, you can simply return $gamParty... etc.

But it doesn't hurt anything 🙂

Glad you got it working!
Aah, I was wandering what the correct syntax might be, but didn't try that way! 😔 Anyways thanks again, time to close the topic 😛

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hud-maker-ultra-and-mrts_statesex-stacked-statuses-in-the-hud.154219/