I want to create a skill that hits multiple times based on your level (like for example Eldricht Blast from D&D), is there a plugin/in-game way to change the number of repeats it has? Or any other way to recreate the effect (like maybe making the character forget the old skill and learn a new one at their level up)?
Increase the number of times a skill is invoked with the level?
Javascript/Plugin SupportYou can use the user's level in damage calculation with a.level. With some math you can multiple it accordingly. However, if the point is to actually recast it multiple times, then either a common event call or Yanfly's battle plugins (Action Sequence 1? Damage Core? Don't remember) can let you reuse the skill immediately.
A fellow maker did something like this; Have a main skill and a secondary skill (that may do the exact same damage, look, etc). In the main skill, have it call an event that sets up a number based on level, then has the user cast the secondary skill X number of times. If multiple people can get this, then have the main skill set the user's ID into a variable so the event can know who used it.
A fellow maker did something like this; Have a main skill and a secondary skill (that may do the exact same damage, look, etc). In the main skill, have it call an event that sets up a number based on level, then has the user cast the secondary skill X number of times. If multiple people can get this, then have the main skill set the user's ID into a variable so the event can know who used it.
Keep in mind that if you do use a.level in the damage formula, the skill won't be usable by enemies (unless you have another plugin that gives enemies a level).
Modifying the "repeat" parameter of a skill based on level is pretty simple to do in a plugin though - you'd just have to alias Game_Action.prototype.numRepeats.
Modifying the "repeat" parameter of a skill based on level is pretty simple to do in a plugin though - you'd just have to alias Game_Action.prototype.numRepeats.
Original thread: https://forums.rpgmakerweb.com/threads/increase-the-number-of-times-a-skill-is-invoked-with-the-level.122567/