Possible to add new effects to skills?

Is it possible to add new effects to a specific actors skills, or would all characters be able to access these changes?

From what I've seen the actors just have a numerical list of skills available which then pulls the relevant data from $data_skills when needed, so could no actor specific features be added unless each actor was given a complete list of their skills (including the formula, effects etc)? I thought the skills method might be a way in but have no idea how to tackle that :S

I'm fairly new to scripting and just wondering if this is possible without being really difficult / script breaking 🙂
It really depends what you're trying to accomplish.

The least painful approach is to copy the Skill and make specialized versions for each Actor or Class.   To make this easier, separate out each Actor's skill set so, say, Actor #1 has Skill 3 through 30, Actor #2 has 31 through 60, and maybe NPCs start at Skill #150.

Then, when you learn the new Skill, the event that does this will add the proper Skill for the Actor.
You can keep track of actor-specific effects with the actor and then pull from it when you're evaluating the skill's effects.


But I don't like that approach because now you're storing data that should be stored with the object itself, outside of the object.
You could like use my Skill Apply extension script to make skills run something else if used by a certain actor.

Or you could also just utilize the damage formula for that.. so like make a script

Code:
module CD  def self.damage(a,    case a    when $game_actors[1]      #whatever should happen if actor 1 uses the skill    when $game_actors[2]      #whatever should happen if actor 2 uses the skill    and so on    end   endend
Then on your damage formula, just put
Code:
CD.damage(a,
Thank you all for the replies 🙂

I'm adding some new methods to Mr Bubbles Tales of Graces Title System to have a bit of scripting practice. I can make the titles give bonuses to skill effects that the skill already has, but adding a totally new effect (eg if an actor reaches Rank 1 of a certain title then their Dual Attack skill can inflict bleeding) is causing problems. Because the titles all work through Game_Actor I assume any changes I have to make would need to be saved to the actor (like Tsukihime suggests), but as you've said it's a bit of a messy approach :/ if that's the only option available though then I'll just have to try and make it work!

EDIT::

So I've managed to make it work by creating the new effect and binding it to the actor, then checking the actor effects in Game_Battler as shown below:

class Game_Battler < Game_BattlerBase def item_apply(user, item) @result.clear @result.used = item_test(user, item) @result.missed = (@result.used && rand >= item_hit(user, item)) @result.evaded = ([email protected] && rand < item_eva(user, item)) if @result.hit? unless item.damage.none? @result.critical = (rand < item_cri(user, item)) make_damage_value(user, item) execute_damage(user) end ### CHANGE MADE HERE if item.is_a?(RPG::Skill) && user.actor? if user.skill_boons[item.id] && user.skill_boons[item.id][:effects] user.skill_boons[item.id][:effects].each {|effect| item_effect_apply(user, item, effect)} end end ### END CHANGES item.effects.each {|effect| item_effect_apply(user, item, effect)} item_user_effect(user, item) end endendHowever, now when I use the Double Strike skill in battle (hits one enemy twice) the skill damage and effects are sometimes not applied on the first, second or on both hits, This usually just happens for the first move of the battle, and fixes itself thereafter. Is this just lag / skipping as a result of the way I'm doing things, or have I cause some horrible bugs to appear in the code somewhere?

EDIT 2:

All fixed now, thank you all 🙂 It was the script order playing havoc with other aliases of this method.

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-add-new-effects-to-skills.36457/