damage buff progression system

i have a plugin that keeps track of enemy kills through variables. but was wondering how would one create a "bonus damage" progression system. eg. if player kills 25 goblins, the title of hunter will be given and player receives a 0.5% damage to goblins buff, then once they kill 50 goblins title of slayer is given, and receives a 1% damage to goblins buff, so on and so forth.
Hmmm, at the start of game make a variable (change all the Xs to variable id) an array:
$gameVariables.setValue(X, []);
Then use VisuStella Battle Core and Skills and States Core notetags (on death state and actors):
<JS On Add State>
if (target.isEnemy()) {
if (!$gameVariables.value(X)[target.enemyId()])
$gameVariables.value(X)[target.enemyId()] = 0;
$gameVariables.value(X)[target.enemyId()] += 1;
}
</JS On Add State>

<JS Pre-Damage as User>
if (target.isEnemy() && $gameVariables.value(X)[target.enemyId()]) {
const bonus = value * 0.005 * Math.floor($gameVariables.value(X)[target.enemyId()] / 25);
value += bonus;
}
</JS Pre-Damage as User>

You can add there checks when it hits the specific values, you give those titles (with items or with whatever mechanic you want to use).

EDIT: Oh I missed you already had a plugin to keep track of the kills. Idea is the same still though.
EDIT2: Added missing bracket.
cool where do i put these script calls.im still fairly new so i havent fully grasped script calls and stuff yet
{redacted}
Those are VisuStella plugin notetags (Battle Core + Skills and States Core). Except for the first line that turned a game variable into an array, which you can put in script event command and run in an autorun event at game start (though you can also use data from the plugin you said which tracks kills).
ah sweet cheers

Original thread: https://forums.rpgmakerweb.com/threads/damage-buff-progression-system.182258/