How do I block a skill from being used only if the user's life is < or = a X%?
I tried to do it via onPcUseSkillEvent however this means that even if the skill is blocked, it goes on cooldown
void changeToTen(int *ptr) {
*ptr = 10;
}
Is it possible to do a similar function in NPC scripts? required of a generic function that receives a variable and changes the value of the received variable