I want to set a variable as resource for player's skill.
I used the YEP to make the variable decrease when player cast the skill. (e.g. The variable named "DP", and a skill FIREBALL cost 10 DP)
But the question is when the DP is less than 10, I can still cast the FIREBALL, and the DP decreased to negative.
Anyone knows how to limit the skill when the variable can't afford the cost.
thanks.
I used the YEP to make the variable decrease when player cast the skill. (e.g. The variable named "DP", and a skill FIREBALL cost 10 DP)
But the question is when the DP is less than 10, I can still cast the FIREBALL, and the DP decreased to negative.
Anyone knows how to limit the skill when the variable can't afford the cost.
thanks.