Event script when enemy hp < 1000 condition branch

I hope that pseudo code up there was of use to you? It's what I want to do.

Add a script to an event inside of a conditional loop. It will call enemy(x) (where x is whatever reference i need for a specific enemy) and set it so that if it fall below 1000 the enemy will do something. 

This is how it looks right now.

But it throws an error at me.

Hopefully any of you kind souls know what is going on!
And yes I'm new to this, worked a few hours to get that far hahah. 

Appreciate any help I can get <3

I'm using Falcao's ABS if that would make any difference as to what command to use etc. 

Cheers! and thanks in advance.

Howitlooksnao.jpg
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please provide a link to the script you're using. My answer below is based on no knowledge of Falcao's ABS, and I'm not going to go searching for it.


$Game_Enemy is not how you reference enemies. The name of the instance is $game_enemy, not $Game_Enemy. And you put the index after the instance, not after the property, so it would be $game_enemy[7].max_hp. However, enemies only exist during battle, and your event is on the map, so you're going to get errors anyway (by default - the script you're using may or may not change that).
Thank you! Sorry that I could not find my way on the forums. This is technically my third post now with this one. I'll try my best to find my way later. It will become increasingly easier as I familiarize myself with the forum.

Thank you for some direction. Did not work but then again as you say it was to be quite expected as we are essentially not in what the regular game engine would call combat.. I'm not sure which one of Falcao's ABS scripts would be the relevant one. Here's a list of scripts that makes the ABS system run: 
 

And here is the script:
Pearl documentation

Pearl kernel

Pearl Battler settings

Pearl Skillbad

Pearl sprites

Pearl scenes

Pear Life bars

Pear item pop up

Fantastic Pearl ABS Patch

http://falcaorgss.wordpress.com/2012/12/02/falcao-pearl-abs-liquid-v1/comment-page-1
I'm fairly certain I tracked it down to Pearl Battler and/or kernel. But those classes seems to reference to Game_Battler and then that references back to Game_Battlerbase. I just kind of dived into an 8step tutorial on Ruby to grow a better understanding of what is going on. This is still all quite beyond me. Allow me to post the two suspected scripts for you.

Kernel:
http://pastebin.com/NP74njPJ

Pearl Battler Settings
http://pastebin.com/DNry30K8

Original thread: https://forums.rpgmakerweb.com/threads/event-script-when-enemy-hp-1000-condition-branch.21460/