I played around with this and I learned how to add a variable value to the attack of a certain weapon id with this simple plugin.
PHP:
Game_Action.prototype.executeHpDamageCached = Game_Action.prototype.executeHpDamage;
Game_Action.prototype.executeHpDamage = function(target, value) {
if($dataActors[this._subjectActorId] !== null) {
if($dataActors[this._subjectActorId].equips[0] === 5) // id of day/night weapon (5 for example)
value += $gameVariables.value(69); // variable of weapon increase
}
return this.executeHpDamageCached.apply(this, arguments);
};
This is the plugin you describe, but you might consider an if boolean with two values based on a variable from your day/night script instead of a game variable, unless of course if your day/night plugin automatically changes the variable.
Yes actually, my pluggin automaticly change value from 1 o 4 depending of the period of the day.
Your code was really helpfull for start my coding. In fact what i wnt exactly, is to be able to put in note of weapon additional parameter.
For exemple: if a sppecified variable = a specified value, then a spefic stat increate or decrease by a specific value.
exemple of a possible comment; <Change_Attack:77,4,5>
where 77 was the variable, 4 was the value, 5 was the change.
I will try to do something, but any help will be apreciate =:0)