- Joined
- Jun 15, 2014
- Messages
- 240
- Reaction score
- 41
- First Language
- English Spanish
- Primarily Uses
Hi! Im using ths plugin: http://yanfly.moe/2015/12/06/yep-39-battle-statistics/
This plug in stores the kill count for every actor. What I need is to place the kill count on a variable when a SPECIFIC actor makes the kill.
Sounds easy but I cant get it to work with this code (the code is storing every kill count, not only the ones Actor 11 kills.)
Thanks!!
This plug in stores the kill count for every actor. What I need is to place the kill count on a variable when a SPECIFIC actor makes the kill.
Sounds easy but I cant get it to work with this code (the code is storing every kill count, not only the ones Actor 11 kills.)
Code:
Game_Actor.prototype.increaseKillCount = function(value) {
user = $gameActors.actor(11);
value = value || 1;
if (this._killCount === undefined) this.initBattleStatistics();
this._killCount += value;
if (user.actorId() === 11) {
$gameVariables.setValue(105, $gameVariables.value(105) + 1) };
};

