Hi, so I've been creating a game recently and my project is coming along nicely, however I'm trying to create a few skills that do certain things that I'm having serious trouble doing. I'll be listing all the skills I've been having extra trouble making and I hope I'll get some answers and assistance.
Let's start with a skill called Revenge, which is meant to deal 80% of the user's Attack stat (I'll use the acronym AD as in attack damage from here on out) but increases that damage by 2% for every 1% health the user has lost. I know that you can easily do this via hp points but percentage is what I'm having a hard time with. (Ex: User has 100 Atk and has lost 50% of his HP, dealing 100% more damage or the equivalent of 200 Atk)
Next is a skill called Healing Shield, which is meant to heal all party members 15% of the damage any party member with the shield applied takes. This one I can't figure out at all. (Ex: Party Member has Healing shield up and is hit for 100 Hp damage. Every member of the party is healed for 15 Hp)
Next up, Holy Strike. The skill is meant to heal the most hurt party member by 40% of the damage that it deals to an enemy. I thought I might accomplish this through variables but I cannot figure out how to set a variable based on how much damage an attack dealt. (Ex: Party Member A uses Holy Strike and deals 100 Hp damage, healing party member B for 40 Hp because party member B has the least HP in the party)
Another move, which I think may be the toughest, is Devotion, a move meant to make a party member take 35% less damage and the user of Devotion takes the damage instead. I haven't the slightest clue as to where to begin with this. (Ex: Party Member A applies Devotion to Party Member B, and an enemy attacks B. Enemy would deal 100 hp damage to B but instead deals 65 hp damage to A.)
Next may be simpler, the move Feral Assault, which deals 60% AD is meant to deal 150% more damage to enemies with a harmful effect on them. I'm not sure how to do this, perhaps to use the initial move to trigger a common event to check for states that I consider harmful and if the condition is met then use an attack of either 1.5 AD or 1.0 AD? (Ex: Target has a harmful effect such as Stun which means instead of taking 60 Hp damage twice he takes 90 Hp damage twice)
Ancestral Protection is the last move I'd like to have solved for now, which simply applies a harmful state to an enemy if the enemy attacks the Party Member being protected. I.E. if an enemy hits an actor with the state Ancestral Protection then said enemy now deals 40% less damage.
I really appreciate help and ideas with all of these. Thanks a heap!
Let's start with a skill called Revenge, which is meant to deal 80% of the user's Attack stat (I'll use the acronym AD as in attack damage from here on out) but increases that damage by 2% for every 1% health the user has lost. I know that you can easily do this via hp points but percentage is what I'm having a hard time with. (Ex: User has 100 Atk and has lost 50% of his HP, dealing 100% more damage or the equivalent of 200 Atk)
Next is a skill called Healing Shield, which is meant to heal all party members 15% of the damage any party member with the shield applied takes. This one I can't figure out at all. (Ex: Party Member has Healing shield up and is hit for 100 Hp damage. Every member of the party is healed for 15 Hp)
Next up, Holy Strike. The skill is meant to heal the most hurt party member by 40% of the damage that it deals to an enemy. I thought I might accomplish this through variables but I cannot figure out how to set a variable based on how much damage an attack dealt. (Ex: Party Member A uses Holy Strike and deals 100 Hp damage, healing party member B for 40 Hp because party member B has the least HP in the party)
Another move, which I think may be the toughest, is Devotion, a move meant to make a party member take 35% less damage and the user of Devotion takes the damage instead. I haven't the slightest clue as to where to begin with this. (Ex: Party Member A applies Devotion to Party Member B, and an enemy attacks B. Enemy would deal 100 hp damage to B but instead deals 65 hp damage to A.)
Next may be simpler, the move Feral Assault, which deals 60% AD is meant to deal 150% more damage to enemies with a harmful effect on them. I'm not sure how to do this, perhaps to use the initial move to trigger a common event to check for states that I consider harmful and if the condition is met then use an attack of either 1.5 AD or 1.0 AD? (Ex: Target has a harmful effect such as Stun which means instead of taking 60 Hp damage twice he takes 90 Hp damage twice)
Ancestral Protection is the last move I'd like to have solved for now, which simply applies a harmful state to an enemy if the enemy attacks the Party Member being protected. I.E. if an enemy hits an actor with the state Ancestral Protection then said enemy now deals 40% less damage.
I really appreciate help and ideas with all of these. Thanks a heap!