YEP_SkillRewards: giving EXP

Is it possible to have one of the rewards give EXP?
For instance if the skill kills the enemy, a given amount of EXP is awarded to the actor (could be in a variable too).
Adding experience via script goes like this:
JavaScript:
actor.gainExp(100);
So, following the pattern of the other entries in the parameters of the Skill Rewards plugin, I'm guessing this sort of thing will do what you're after (untested):
JavaScript:
} else if (data.match(/([\+\-]\d+)[ ]EXP/i)) {
  // "+X EXP" - add fixed amount of experience
  if (user.isActor()) {
    value = parseInt(RegExp.$1);
    user.gainExp(value);
    animation = animation || miscAnimation;
  } else skip = true;
} else if (data.match(/([\+\-])V\[(\d+)\][ ]EXP/i)) {
  // "+V[X] EXP" - add experience equal to current value of game variable X
  if (user.isActor()) {
    value = v[parseInt(RegExp.$2)] || 0;
    if (RegExp.$1 === "-") value *= -1;
    user.gainExp(value);
    animation = animation || miscAnimation;
  } else skip = true;
Try adding that to the Effect Code parameter in the Plugin Manager (just above the "Add new effects above this line" part), stick something like a <Defeat Reward: +100 EXP> notetag into your skill's notebox, save your project (to apply the Plugin Manager changes) and test~ 😮‍💨

For reference, the "match" parts of the code are regular expressions; technical details here:
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yep_skillrewards-giving-exp.122126/