Hello everyone,
I've been thinking of adding a cheating death system in my game which features a skill tree. I wanted to make it quite similar to the one in The Evil Within 2, where the player can survive a lethal hit if the hit does only slightly more damage than the remaining hp of the player. The skill is upgradable which improves the threshold at which the skill is triggered. Yanfly's work on "Second chance" (Link here: http://yanfly.moe/2016/03/23/tips-tricks-second-chance-kingdom-hearts/ ) helps me a lot but the passive can trigger even if a massive blow hits the player with 2hp, which breaks the realistic vibe of my game.
So here's my question: Is it possible to trigger the passive on the following conditions? Here's an example: Player has 20/100 hp left. His "cheat death" threshold is at 5% which means if an enemy hits him for 25 damage, he will survive with 1hp, If it inflicts 26 damage or more, the player will die. Additionally, to prevent surviving small blows, he has to have more than only 1 hp for the passive to trigger. This skill can be upgraded in the skill tree after unlocking, improving the threshold from 5% to 10% for example.
I think the biggest issue here is to calculate whether the player will survive the hit depending on his current HP and maxHP.
Hope I made my problem understandable!
Thank you in advance for your help 🙂
PS: I don't know if this post is in the right location, considering whether it is a Maker issue or Plugin related. Excuse me in advance if it's not!
I've been thinking of adding a cheating death system in my game which features a skill tree. I wanted to make it quite similar to the one in The Evil Within 2, where the player can survive a lethal hit if the hit does only slightly more damage than the remaining hp of the player. The skill is upgradable which improves the threshold at which the skill is triggered. Yanfly's work on "Second chance" (Link here: http://yanfly.moe/2016/03/23/tips-tricks-second-chance-kingdom-hearts/ ) helps me a lot but the passive can trigger even if a massive blow hits the player with 2hp, which breaks the realistic vibe of my game.
So here's my question: Is it possible to trigger the passive on the following conditions? Here's an example: Player has 20/100 hp left. His "cheat death" threshold is at 5% which means if an enemy hits him for 25 damage, he will survive with 1hp, If it inflicts 26 damage or more, the player will die. Additionally, to prevent surviving small blows, he has to have more than only 1 hp for the passive to trigger. This skill can be upgraded in the skill tree after unlocking, improving the threshold from 5% to 10% for example.
I think the biggest issue here is to calculate whether the player will survive the hit depending on his current HP and maxHP.
Hope I made my problem understandable!
Thank you in advance for your help 🙂
PS: I don't know if this post is in the right location, considering whether it is a Maker issue or Plugin related. Excuse me in advance if it's not!