Jump to content

FEBuilderGBA - Flag to Test for a Unit's Current HP?


jakenbakery
 Share

Recommended Posts

Basically, I would like an NPC unit to begin the map at 1HP and to have its AI be inactive until/unless it is healed. So, is there an event flag that can test either whether her HP is above 1, or if an adjacent unit uses healing magic on her? Or something else to similar effect?

Thanks in advance!

Link to comment
Share on other sites

5 minutes ago, jakenbakery said:

Sacred Stones. It looks like, at least in Units Other, the only templates that check a unit's current state check:

A. whether it's dead or alive.

B. whether it knows a particular skill.

You can install a patch called GET unit HP or Get unit status, and use that to check if HP is equal to 1, and if yes change AI not to move, and if more than 1, change AI to move.

Link to comment
Share on other sites

8 hours ago, jakenbakery said:

Awesome, it worked!! One more question though - when you use this command, where is the value stored? It's like a specific memory byte, right?

Pretty sure it's memory slot C, as stated in the FE Builder.

It seems like most things that pertain to character's stats, are stored in memory slot C.

Also, glad to hear that it worked for you!

Edited by lightcosmo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...