while i already found a way to make it so that a char transforms below 25% health with battle events and a little of visuMZBattlecore so that it repeats in every battle, i cant find a way to make it so that after 25% health the class receives a new skill, does anyone know of a good way to do it (im very dumb with RPGMaker so i may take a while here) (these are the plugins im using also if theres a good way to do it using one of them)
MZ add an ability above a % of health
Javascript/Plugin Supportif youve already evented the transformation, then youd be able to also give the actor a state that adds the skills to them when you transform them. But also since youre using Visustella plugins, you can also either make the skills only appear if the user is below 25% hp or make a passive state with the skill attached that only activates below 25% hp with the notetags of the skills and states plugin
sorry, really didnt explain well my problem, my problem is that i want the transformation to get the ability to go back after going 25% hp or above. basically the idea is that after the transformation you can only turn back once you recover 25% hp or above. i made this thing in the battle events that repeat in every battle but it doesn't seem to add the ability-.
i added this to the battlevent that applies to every battle but doesnt seem to work
Im not familiar with visustella setups so I dont know if one of their plugins allows troop events to be ran regardless of their conditions, but your troop event has no conditions and under normal circumstances will not run. also youre trying to teach the actor the skill when theyre above 25%, but youre not dividing the max hp variable by 4. if the event is being ran, the actor only needs to be above 4% hp (maxMp/25)
what i said before still applies though. you can have the actor know the skill as a trait so that they always have it, but use a notetag to make it so that its only visible when theyre above 25%
Code:
<JS Skill Visible>
visible = user.hpRate() >= .25;
</JS Skill Visible>
can i make that note be applied based on class? the way the char changes makes it so that they change class once they go 25% or below, and the idea would be that only while he is in that form he can use that skill
sorry, didnt understand at first, IM TESTING AND IT SEEMS TO BE WORKING
THANK YOU SM, you helped me a lot here.
confirmation: it worked 😀
Original thread: https://forums.rpgmakerweb.com/threads/add-an-ability-above-a-of-health.177974/