Script Boost damage of specific skill types?

Hi everyone,

So, I'm trying to add some accessories to my game that boost the damage of specific skill types (Specifically atm, a quiver that boosts the Archery skill type). But I'm not sure how to do that in-engine, and I can't find a script that allows for it. I know it's possible, I've played a game in VX ace that did the same thing, but the scripts for that game are in japanese and I can't find any source (i'm pretty sure they were coded by the game creator anyway).

Does anyone know a script that could do that? I'm using Craze's elemental booster so I'm looking for something kinda similar to that.
An easy way to do this is to just make an element named after the skill-type then use the elemental booster.
I may be misreading it.. but you can use item notes.
in the quiver item note use
<archery : #> // where # is the bonus

and then this script needs to be added into materials.. might double check it, but I think this is correct! Still getting the hang of it myself, but i've been playing with item notes a lot lately.

Spoiler: game_actor for bow modifier
class Game_Actor < Game_Battler
BOW_WTYPE_ID = 7 # this needs to match the bonus weapon(s)
alias :archery_bonus_param :param
def param(param_id)
n = archery_bonus_param(param_id) #sets default
# === if bow is equiped // calculate for bonus ===
if param_id == 2 && weapons.any? { |w| w.wtype_id == BOW_TYPE_ID }
n += archery_note_bonus
end

return n
end

# === <archery : #> in note of item // # is the bonus value ==
def archery_note_bonus
bonus = 0
equips.compact.each do |item|
if item.note =~ /<archery\s*:\s*(\d+)>/i
bonus += $1.to_i
end
end
return bonus
end
end

However, if you are creating items that cause modifiers for weapons or armor.. they might be better off as key items, and no consume.. I have a couple items set up in the fashion that they allow a script event to run if in inventory (camp kit as example), and put them in key items to minimize clutter in my usable items.
An easy way to do this is to just make an element named after the skill-type then use the elemental booster.
This would be a simple way to do it, but that would then override things like elemental weapons. My goal is for the actual skill category itself to be what gets boosted, not an element assigned to it. Like, something that boosts the "black magic" skill type, which includes fire, ice, and elemental spells. I wouldn't be able to have both.
My goal isn't for the weapon itself to be what gets boosted, but rather the skill type. Like "Songs", or "Magic", or "Archery" rather than "Instruments", or "Staves", or "Bows". You feel me?
This would be a simple way to do it, but that would then override things like elemental weapons. My goal is for the actual skill category itself to be what gets boosted, not an element assigned to it. Like, something that boosts the "black magic" skill type, which includes fire, ice, and elemental spells. I wouldn't be able to have both.

My goal isn't for the weapon itself to be what gets boosted, but rather the skill type. Like "Songs", or "Magic", or "Archery" rather than "Instruments", or "Staves", or "Bows". You feel me?
Doesn't elementals stack with eachother? I don't know what menus you have, but you can always like "hide" these element types, too, but I get what you mean.
If it helps, this specifically is what i'm trying to boost, not the elements category above it.
Im away from my pc for a while, but the skill database has a script option.. I think. Just add the $game_party.has_item?(your item) then do math...
sorry for crude but.. phone response

Edit... I have also seen some games use jsn files to add modifiers like you appear to describe.. I have no knowledge of that usage yet
Im away from my pc for a while, but the skill database has a script option.. I think. Just add the $game_party.has_item?(your item) then do math...
sorry for crude but.. phone response

Edit... I have also seen some games use jsn files to add modifiers like you appear to describe.. I have no knowledge of that usage yet
oh interesting, that could be something. Is there a way to specify it if the skill user has it equipped?

Original thread: https://forums.rpgmakerweb.com/threads/script-boost-damage-of-specific-skill-types.183064/