I'm using hud maker ultra, and I'm making a targeting window that will show some info about an enemy when you mouse over them or highlight them through selection. I'm using most of visustella's plugins, including the battle core, if that makes a difference. Could someone help with what the code is that would simply detect if enemy 1 through 5 is highlighted, so i can plug that into the display conditions? Thank you!!!
MZ How to detect if mousing over/highlighting an enemy during battle
Javascript/Plugin SupportTry this:
I.e. "is the first member of the enemy troop selected?". Replace
$gameTroop.members()[0].isSelected()I.e. "is the first member of the enemy troop selected?". Replace
0 with 1 for the second member, 2 for the third, etc.unfortunately this didn't work. the info doesnt appear when they're selected.
It returns correct values for me without plugins (via the console), so maybe it's a VisuStella thing? Regardless, since this is about configuring SRD's HUD Maker:
I've moved this thread to Plugin Support (from MZ Support). Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-detect-if-mousing-over-highlighting-an-enemy-during-battle.155547/