I'm trying to make a skill where it's a 50/50 chance either the attacker dies or the defender dies. it's supposed to be a last stand/hail mary option.
I set up a common event to determine whether the attacker or defender is picked but the problem rises where the only option for changing health is either for a certain character or the entire party. I just want the attacker or defender to be effected not the entire party.
I saw some similar posts recommending calling the variable or event in the damage formula but I'm not familiar with it enough to know what and how to write a formula to call the event! Thanks a million in advance!
[EDIT1] Thanks to the awesome help of everyone I was able to get the skill working! Aesiea's code was a perfect fit!
Code:
Math.random() < 0.5 ? a.gainHp(-999) : b.gainHp(-9999); 0
Thanks again everyone for help! Appreciate it tons!
I set up a common event to determine whether the attacker or defender is picked but the problem rises where the only option for changing health is either for a certain character or the entire party. I just want the attacker or defender to be effected not the entire party.
I saw some similar posts recommending calling the variable or event in the damage formula but I'm not familiar with it enough to know what and how to write a formula to call the event! Thanks a million in advance!
[EDIT1] Thanks to the awesome help of everyone I was able to get the skill working! Aesiea's code was a perfect fit!
Code:
Math.random() < 0.5 ? a.gainHp(-999) : b.gainHp(-9999); 0
Thanks again everyone for help! Appreciate it tons!