Skill coding of chance chains

Junane

Veteran
Veteran
Joined
Feb 10, 2018
Messages
86
Reaction score
10
First Language
English
Primarily Uses
RMMV
Before I start, I'll clarify the term "chance chains" in the title. This simply means there's a chance-based property in the skill and, if that succeeds, another chance property pops up.

For instance, programming my skill, Protective Light, beyond the initial heal is getting difficult, because I also want it to cure a random debuff state present on the targeted ally. If this succeeds, I then want it to do a 25% chance to remove another random debuff state. Of course, this has to adhere to how many states are on the target at once.

Will this require a script/plugin to do?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
yes and no.

there are ways to do this without a plugin, but they are tedious and limiting. So if you have a lot of such effects, a custom plugin might be better.

1) it could be done by damage coding, placing ifs into the damage formula of the skill.
However, that is complex and the damage formula has a limited length for entering code.

2) your skill could call a common event, and in that event you could handle the chances and the additional effects.
Unfortunately by default common events attached to skills are executed at the end of the battleturn, not when the skill is executed.

and as said the only alternative to these two options is a custom plugin.
 

Junane

Veteran
Veteran
Joined
Feb 10, 2018
Messages
86
Reaction score
10
First Language
English
Primarily Uses
RMMV
yes and no.

there are ways to do this without a plugin, but they are tedious and limiting. So if you have a lot of such effects, a custom plugin might be better.

1) it could be done by damage coding, placing ifs into the damage formula of the skill.
However, that is complex and the damage formula has a limited length for entering code.

2) your skill could call a common event, and in that event you could handle the chances and the additional effects.
Unfortunately by default common events attached to skills are executed at the end of the battleturn, not when the skill is executed.

and as said the only alternative to these two options is a custom plugin.
@1, I agree with this; encountered that problem with entering code for two effects with long formulas

@2, this shouldn't be a concern for me as I use Yanfly's turn battle plugins so the turn ends when the skill is selected (or in the case of ATB, when the turn bar turns 100% red). I think a loop or a chain of conditional branches may be needed.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top