- Joined
- May 8, 2015
- Messages
- 52
- Reaction score
- 19
- First Language
- English
- Primarily Uses
Outside of SV battle, a character can take damage and die. What is a GOOD way to do that for NPCs and monster events while in a map scene?
NOTE: I've made my character swing his sword in the right direction when you hit the appropriate key, and I can get the event data of the monster that would be hit, so those parts are working. The 'damage' that would be dealt is calculated properly, as is the max HP of the target (based on monster type and level). I just need some way to track the current hp of an event with reasonable and forward-facing code.
NOTE: I've made my character swing his sword in the right direction when you hit the appropriate key, and I can get the event data of the monster that would be hit, so those parts are working. The 'damage' that would be dealt is calculated properly, as is the max HP of the target (based on monster type and level). I just need some way to track the current hp of an event with reasonable and forward-facing code.