- Joined
- Apr 23, 2013
- Messages
- 7
- Reaction score
- 2
- Primarily Uses
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:
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?
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:
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?
Last edited by a moderator:

