Help getting a variable from $game_map.events[x] using Sapphire Action System

Hello everyone!

Quick question I hope. Using Sapphire Action System - and i would like to get the HP of an enemy. Because enemies are just events.

I figured I should be able to pull any information I need right from said event. When called $game_map.events[14] I do get an output of the following:

[IMG]http://i.imgur.com/Pz1KPmD.png[/IMG]

You can see in red and blue - there are two HP values. I need both.

how would I go about accessing them (all methods I have tried have failed sadly)

UPDATE:

I just made a function inside the script

def get_enemy_hp()return @enemy.hpendthat returns the hp (so thats good) - so this is a good enough work around for now. But still - if I did not make this functions, what would have been my solution?
class Game_Event < Game_Character attr_accessor :hpendPublic Instance Variable?
class Game_Event < Game_Character attr_accessor :hpendPublic Instance Variable?
Hey! I dont think you understood ( I might not have explained it well enough).

But my solution is working okay enough. So all is good anyway🙂
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/help-getting-a-variable-from-game_map-events-x-using-sapphire-action-system.24203/