MV Using Yanfly Message Eval OliviaStateTooltip to call a stat from a target

Hey all, title is a bit of a mess. Here's what I'm trying to do:

  1. OliviaStateTooltip allows me to write a help description in a state.
  2. Yanfly Message Eval text allows me to use \evalText<<code>> to input code into text messages.
  3. The stat I want to check is battler.barrierPoints(), and I'm trying to use this for both Actors and enemies since Absorption barrier can place a state on anyone who has a barrier.
Is it possible to make a message that says "Target is protected from [current amount of barrier] points of damage."? I'm having trouble figuring out what the target is when it's who the state is currently on, rather than the target of a skill. Keep in mind an enemy might also have a barrier up while the player has one at the same time.

Screenshot for visual reference (ignore the grammatical error please):

1711180604157.png
This sounds like it would be reasonably simple: just figure out where OliviaStateTooltip stores the currently inspected battler and use that. The only problem is that since that plugin is paid you'd need to find someone that has it to help you.

Alternatively you could try to message Olivia directly asking about how to reference the battler that's currently being inspected.
The only problem
Actually, to be the barer of bad news, it's not the only problem. Olivia obfuscates the paid plugins 😅
Asking Olivia is the best option, but I suspect you'd be lucky to receive a reply at all, let alone a fix.
I still have unobfuscated version of that plugin, so I got lucky, problem is,
I dont get much sense out of it yet as I studied how things are linked.

can check later for you for the variable needed as previous given.
but contacting olivia might be hard either.

but I think its the best way if there is nothing in the helpfile that can help you.
Olivia obfuscates the paid plugins
Explicitly stating in a plugin's terms "You are allowed to edit the code." and then obfuscating said code so that it's impossible to edit it is... not something I expected xD

We'll see if ShadowDragon can figure something out, but the nuclear option would be to remake the part of the plugin that's responsible for determining if a tooltip should be displayed, i.e. check the mouse position and if it's over any state icons, and get the battler from there.
Explicitly stating in a plugin's terms "You are allowed to edit the code." and then obfuscating said code so that it's impossible to edit it is... not something I expected xD
I might be wrong. I also purchased one of her plugins recently and it wasn't obfuscated. But I actually assisted Woo with his project because he was having performance problems and I remember one of the plugins he was using is obfuscated...I can't recall which but I thought it was hers.

Edit:
Yep, checked my chat history with him. It was indeed this plugin that was obfuscated.
I might be wrong.
nope. this one is obfuscated. In the past i tried looking into it cause it would cause performance issues if the mouse wasnt within the game window's boundaries during battle. I had to drop the plugin altogether because i wasnt able to edit it

EDIT: @woootbm try
Code:
SceneManager._scene._stateIconTooltipWindow._battler
as your battler reference.
1711190103088.png
it's like Robro33 said, the code is most targetted to those and -._battler.
so that's your best shot.

you can also check with the console.log to see what it prints to be sure 🙂
Sorry I sent the original message so late and only now got to a computer to try it out. @Robro33 is exactly right! Man, I didn't think to check the states plugin. I figured this kind of thing would be handled by the base game. Good thinking!

1711253105366.png


It works with multiple barriers on different targets and it updates after taking damage as well. Brilliant!

For anyone curious with the same set of plugins, the full thing looks like this:

Code:
<Help Description>
Target is protected and will absorb up to \evalText<<SceneManager._scene._stateIconTooltipWindow._battler.barrierPoints()>> points of damage.
</Help Description>
@woootbm it looks really cool and thank you for the example how it looks like.
good luck with your project.

Original thread: https://forums.rpgmakerweb.com/threads/using-yanfly-message-eval-oliviastatetooltip-to-call-a-stat-from-a-target.167083/