Hey all
I am working on a custom HUD for my battles using SumRdDde Hud Maker. I am using the YEP Absorption Barrier plugin to give my enemies shields. I can use the script call below to get the current value of their shield:
But it doesn't work - I think I need to define what "battler" is. Can someone help? With my hero I do this:
I want to get the enemies shield though. Is it something like:
Also have no idea how to do this for multiple enemies and also how to place the shield on the HUD for multiple enemies... since the HUD maker wouldn't know how many enemies are in play.
Any ideas on both?
Update: I can get my enemies barrier like this:
More problems exist - see below
I am working on a custom HUD for my battles using SumRdDde Hud Maker. I am using the YEP Absorption Barrier plugin to give my enemies shields. I can use the script call below to get the current value of their shield:
Code:
battler.barrierPoints()
But it doesn't work - I think I need to define what "battler" is. Can someone help? With my hero I do this:
Code:
var battler = $gameActors.actor(1);
var cur_shield = battler.barrierPoints());
I want to get the enemies shield though. Is it something like:
Code:
var battler = $gameEnemy.actor(1);
var cur_shield = battler.barrierPoints());
Also have no idea how to do this for multiple enemies and also how to place the shield on the HUD for multiple enemies... since the HUD maker wouldn't know how many enemies are in play.
Any ideas on both?
Update: I can get my enemies barrier like this:
Code:
$gameTroop.members()[0].barrierPoints()