Help with a skill/state idea

Ok so i want to make archer abilities that can make the enemy have a prone state. The prone state doesn't really do anything other than making them have that state. What i want is to have another skill check to see if the target is prone or not. and if it is prone =  does more damage. afterwards i want the prone state to disappear. any way i could do that?
You can do that in the damage formula. If your prone state has the ID #2, it would look like this:


if (b.isStateAffected(2)) { b.removeState(2); 1000 } else { 100 }


This checks if the target is affected with state #2. If it is, it removes the state and deals 1000 damage (you can of course replace the 1000 with your damage formula), otherwise it only deals 100 damage (again, replace the 100 with your formula).
hey thanks friend
You're welcome 🙂
damage formula coding is probably the easiest way - you can have the target checked for a specific state and give different damage formulae based on the result.


There is a pinned topic about the damage formula in this forum, that will give you examples and explanations on how to do that (sorry, I don't remember the exact syntax at the moment - you'll have to search for it yourself). That topic is also linked in my starting point if you can't find it otherwise.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-skill-state-idea.73071/