You can check it in a script with two copybyte calls, unfortunately, there is no way to load a halfword, so it takes two calls. First step is to free a temporary variable. For example:
Quote:
copybyte 0x20370B8 0x20242DA ' load bottom 8 bits of HP
copybyte 0x20370B9 0x20242DB ' load top 8 bits of HP
|
This would put in var 0x8000 would have the current HP value for the first Pokemon. For the second Pokemon, you would add 0x64 to 0x20242DB and 0x20242DA respectively, and so on for subsequent Pokemon. You would need to hard code these increments because well...that's scripting for you.