Some trouble with traits and skills.

Simply put I'm trying to make some skills depend on a state. But i can not find out how to properly implement the following parts about the skill.

- The skill will only work while affected by a certain state. During this state you can only use this one skill to remove the state.

- The skill succes rate would be based on a chance based on the stat diffence between the affected character and the enemy.

- If the skill would fail the character using it would have a better chance of succeeding one turn later.

- If the state is not removed within a certain amount of turns the state is removed and automatically replaced by a worse state.

- this other state would deal damage over time but another skill could be used to enhance this damge over time.

My main question is how I could implement this and if there possibly is a plugin for this?
There are probably multiple solutions to a lot of this, but as I'm most familiar with the Yanfly Engine:
- The skill will only work while affected by a certain state.
You can do this with the Skill Core. You can also do it with the Target Core, which is even more slick because it will both force you to only target a valid actor and grey out the skill if it's unusable.

During this state you can only use this one skill to remove the state.
I'm not sure what you mean here. Do you mean that only this skill removes the state? So don't put the state removal for it on anything else.

Do you mean that when you have the state the only thing you can do is select this skill? Use the Skill Seal/Skill Type Seal traits on the state.

- The skill succes rate would be based on a chance based on the stat diffence between the affected character and the enemy.
Don't put the state removal as an effect of the skill, put the appropriate formula into a Skill Core notetag.

- If the skill would fail the character using it would have a better chance of succeeding one turn later.
Can also track that in the above notetag code.

- If the state is not removed within a certain amount of turns the state is removed and automatically replaced by a worse state.
Yanfly Buffs & States.

- this other state would deal damage over time but another skill could be used to enhance this damge over time.
I don't know what "another skill could be used to enhance" the damage over time means, but you can surely do it with some combination of the Skill Core and Buffs & States.

If you need more specific help than that, you'll have to give more specific mechanics.
There are probably multiple solutions to a lot of this, but as I'm most familiar with the Yanfly Engine:

You can do this with the Skill Core. You can also do it with the Target Core, which is even more slick because it will both force you to only target a valid actor and grey out the skill if it's unusable.


I'm not sure what you mean here. Do you mean that only this skill removes the state? So don't put the state removal for it on anything else.

Do you mean that when you have the state the only thing you can do is select this skill? Use the Skill Seal/Skill Type Seal traits on the state.


Don't put the state removal as an effect of the skill, put the appropriate formula into a Skill Core notetag.


Can also track that in the above notetag code.


Yanfly Buffs & States.


I don't know what "another skill could be used to enhance" the damage over time means, but you can surely do it with some combination of the Skill Core and Buffs & States.

If you need more specific help than that, you'll have to give more specific mechanics.
Hi thankyou for the reply I looked into the skill core plugin but noticed how it would require some form of java script and besides the bits that are given I would not be sure how to go about it.

The state would be a virus infection with a limited amount of turn to cure it before it deals a large amount of damage and is no longer cureable. Then there is this other skill which would be a ball of sludge in simple terms. The ball would make the effect of the virus worse.
Hi thankyou for the reply I looked into the skill core plugin but noticed how it would require some form of java script and besides the bits that are given I would not be sure how to go about it.
There are a number of people on the forum who will happily help you with that, but as I said above - we need specifics. You can't tell code to just "do stuff."

The state would be...
Unfortunately, none of this is particularly useful. This is all what we call "flavor text" - you're describing what something does from the lens of the game world.

What you do in RPG Maker the editor and what you'd do in the code for your states and skills has nothing to do with flavor text.

We need to know, mechanically, what you want your skill and state to do. The parameters you have defined in your classes and the numbers you typed into your skills' damage formulae are examples of mechanics.

It doesn't matter whether the character is throwing a ball of sludge, pouring concrete on someone, or shooting them with a laser beam, we need to know what you want to actually happen in terms of the game.

Original thread: https://forums.rpgmakerweb.com/threads/some-trouble-with-traits-and-skills.158386/