- Joined
- Apr 22, 2022
- Messages
- 34
- Reaction score
- 17
- First Language
- English
- Primarily Uses
- RMMV
Hello all, I will start with what I am trying to do I am using Yanfly victory aftermath and it shows the actors portraits along with their experience gained and so on. I'm trying to execute a common event BEFORE that screen comes up to change my actors portraits, I've looked for plugins that execute common events upon victory but they all seem to either activate after the victory screen pops up or upon travelig back to the map. I tried editing the code of victoryAftermath by adding this line:
$gameTemp.reserveCommonEvent(20);
into multiple places but it either triggers at the start of battle or after battle on the map screen. I feel like I've moved it all over the place but some of the places i tried it were:
BattleManager.startVictoryPhase = function() {
$gameTemp.reserveCommonEvent(20);
this._victoryCheerWait = 0;
this._victoryStep = 0;
this.prepareVictoryInfo();
};
which dosent activate till map screen and :
BattleManager.processVictory = function() {
$gameTemp.reserveCommonEvent(20);
$gameParty.performVictory();
if (this.isVictoryPhase()) return;
if (this._windowLayer) this._windowLayer.x = 0;
$gameParty.removeBattleStates();
this._victoryPhase = true;
if ($gameSystem.skipVictoryAftermath()) {
this.processSkipVictory();
} else {
this.processNormalVictory();
}
};
which has the same effect, I'm also using yanfly battleenginecore and have tried putting it here:
Yanfly.BEC.BattleManager_processVictory = BattleManager.processVictory;
BattleManager.processVictory = function() {
$gameTemp.reserveCommonEvent(20);
this._logWindow.clear();
this._victoryPhase = true;
if (this._windowLayer) this._windowLayer.x = 0;
Yanfly.BEC.BattleManager_processVictory.call(this);
};
but this one has no effect... If anyone sees what I'm doing wrong here or has a better idea on how to go about doing this I would love to hear it.. I'm getting so sick of fighting this same battle over and over again just to see if my common event activates lol
$gameTemp.reserveCommonEvent(20);
into multiple places but it either triggers at the start of battle or after battle on the map screen. I feel like I've moved it all over the place but some of the places i tried it were:
BattleManager.startVictoryPhase = function() {
$gameTemp.reserveCommonEvent(20);
this._victoryCheerWait = 0;
this._victoryStep = 0;
this.prepareVictoryInfo();
};
which dosent activate till map screen and :
BattleManager.processVictory = function() {
$gameTemp.reserveCommonEvent(20);
$gameParty.performVictory();
if (this.isVictoryPhase()) return;
if (this._windowLayer) this._windowLayer.x = 0;
$gameParty.removeBattleStates();
this._victoryPhase = true;
if ($gameSystem.skipVictoryAftermath()) {
this.processSkipVictory();
} else {
this.processNormalVictory();
}
};
which has the same effect, I'm also using yanfly battleenginecore and have tried putting it here:
Yanfly.BEC.BattleManager_processVictory = BattleManager.processVictory;
BattleManager.processVictory = function() {
$gameTemp.reserveCommonEvent(20);
this._logWindow.clear();
this._victoryPhase = true;
if (this._windowLayer) this._windowLayer.x = 0;
Yanfly.BEC.BattleManager_processVictory.call(this);
};
but this one has no effect... If anyone sees what I'm doing wrong here or has a better idea on how to go about doing this I would love to hear it.. I'm getting so sick of fighting this same battle over and over again just to see if my common event activates lol