- Joined
- Sep 6, 2016
- Messages
- 22
- Reaction score
- 40
- First Language
- French
- Primarily Uses
Hello. I would like to send this post to Yanfly himself, but his report bug post is locked, and I can't start a conversation with him, then... I hope he will see this.
I'll try to make a plugin, and to adapt it to its plugin YEP_TargetCore, but I've read this :
Yanfly.Target.Game_Action_isForOpponent = Game_Action.prototype.isForOpponent;
Game_Action.prototype.isForOpponent = function() {
if (this.item().scope === 'EVERYBODY') return true;
if (this.item().scope === 'RANDOM ANY') return true;
if (this.item().scope === 'TARGET ALL FOES') return true;
if (this.item().scope === 'TARGET RANDOM FOES') return true;
if (this.item().scope === 'MULTIPLE') {
if (this.item().multipleOf.contains('EVERYBODY')) return true;
if (this.item().multipleOf.contains('OPPONENTS')) return true;
}
if (this.item().scope === 'ENEMY ROW') return true;
if (this.item().scope === 'FRONT ENEMY ROW') return true;
if (this.item().scope === 'BACK ENEMY ROW') return true;
if (this.item().scope === 'SPECIFIC ENEMY ROW') return true;
return Yanfly.Target.Game_Action_isForOpponent.call(this);
};
Yanfly.Target.Game_Action_isForFriend = Game_Action.prototype.isForFriend;
Game_Action.prototype.isForFriend = function() {
if (this.item().scope === 'EVERYBODY') return true;
if (this.item().scope === 'ALL BUT USER') return true;
if (this.item().scope === 'TARGET ALL ALLIES') return true;
if (this.item().scope === 'TARGET RANDOM ALLIES') return true;
if (this.item().scope === 'RANDOM ALLIES') return true;
if (this.item().scope === 'MULTIPLE') {
if (this.item().multipleOf.contains('FRIENDS')) return true;
}
if (this.item().scope === 'ALLY ROW') return true;
if (this.item().scope === 'FRONT ALLY ROW') return true;
if (this.item().scope === 'BACK ALLY ROW') return true;
if (this.item().scope === 'SPECIFIC ALLY ROW') return true;
return Yanfly.Target.Game_Action_isForFriend.call(this);
};
If I follow the logic of this code, actually, the Multiple Target Scope of subtype "Everyone" targets foes only.
(This is the last version of this plugin).
If you read these lines, Yanfly, I want also to thank you for your gargantuan work !
See you,
Volcanods
I'll try to make a plugin, and to adapt it to its plugin YEP_TargetCore, but I've read this :
Yanfly.Target.Game_Action_isForOpponent = Game_Action.prototype.isForOpponent;
Game_Action.prototype.isForOpponent = function() {
if (this.item().scope === 'EVERYBODY') return true;
if (this.item().scope === 'RANDOM ANY') return true;
if (this.item().scope === 'TARGET ALL FOES') return true;
if (this.item().scope === 'TARGET RANDOM FOES') return true;
if (this.item().scope === 'MULTIPLE') {
if (this.item().multipleOf.contains('EVERYBODY')) return true;
if (this.item().multipleOf.contains('OPPONENTS')) return true;
}
if (this.item().scope === 'ENEMY ROW') return true;
if (this.item().scope === 'FRONT ENEMY ROW') return true;
if (this.item().scope === 'BACK ENEMY ROW') return true;
if (this.item().scope === 'SPECIFIC ENEMY ROW') return true;
return Yanfly.Target.Game_Action_isForOpponent.call(this);
};
Yanfly.Target.Game_Action_isForFriend = Game_Action.prototype.isForFriend;
Game_Action.prototype.isForFriend = function() {
if (this.item().scope === 'EVERYBODY') return true;
if (this.item().scope === 'ALL BUT USER') return true;
if (this.item().scope === 'TARGET ALL ALLIES') return true;
if (this.item().scope === 'TARGET RANDOM ALLIES') return true;
if (this.item().scope === 'RANDOM ALLIES') return true;
if (this.item().scope === 'MULTIPLE') {
if (this.item().multipleOf.contains('FRIENDS')) return true;
}
if (this.item().scope === 'ALLY ROW') return true;
if (this.item().scope === 'FRONT ALLY ROW') return true;
if (this.item().scope === 'BACK ALLY ROW') return true;
if (this.item().scope === 'SPECIFIC ALLY ROW') return true;
return Yanfly.Target.Game_Action_isForFriend.call(this);
};
If I follow the logic of this code, actually, the Multiple Target Scope of subtype "Everyone" targets foes only.
(This is the last version of this plugin).
If you read these lines, Yanfly, I want also to thank you for your gargantuan work !
See you,
Volcanods