jakenbakery Posted September 2, 2020 Share Posted September 2, 2020 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! Quote Link to comment Share on other sites More sharing options...
Lightcosmo Posted September 2, 2020 Share Posted September 2, 2020 That sounds like something doable with events, pretty easily I should think. What game is it? Quote Link to comment Share on other sites More sharing options...
jakenbakery Posted September 2, 2020 Author Share Posted September 2, 2020 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. Quote Link to comment Share on other sites More sharing options...
Lightcosmo Posted September 2, 2020 Share Posted September 2, 2020 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. Quote Link to comment Share on other sites More sharing options...
jakenbakery Posted September 2, 2020 Author Share Posted September 2, 2020 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? Quote Link to comment Share on other sites More sharing options...
Lightcosmo Posted September 2, 2020 Share Posted September 2, 2020 (edited) 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 September 2, 2020 by lightcosmo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.