I am trying to create a heal that will heal extra if the target is below 50%, but only if the caster has learned a certain passive skill, in my game it is skill 422. I am terrible at this and basically just winging it but here is my experimental formula that returns 0 when he actually heals.
(isLearnedSkill(422)) & (b.hp < b.mhp/2) ? 300 + a.mat * 4 : 300 + a.mat * 2;
I know I am missing something on the backend of 'isLearnedSkill' about the actor. In my action sequences I have a script for $gameActors.actor(number).isLearnedSkill(number) which works great but unfortunately there is no conditional in gamedata to look at the current target's hp, which is why I'm resorting to damage formula instead.
(isLearnedSkill(422)) & (b.hp < b.mhp/2) ? 300 + a.mat * 4 : 300 + a.mat * 2;
I know I am missing something on the backend of 'isLearnedSkill' about the actor. In my action sequences I have a script for $gameActors.actor(number).isLearnedSkill(number) which works great but unfortunately there is no conditional in gamedata to look at the current target's hp, which is why I'm resorting to damage formula instead.