- Joined
- Aug 5, 2020
- Messages
- 38
- Reaction score
- 4
- First Language
- english
- Primarily Uses
- RMMV
hello
i've been working on a new battle system and its 90% finished! HOWEVER when its only 1 battler its working perfectly
when its two or more it doesn't work like it should and because of that i get errors.
the specific issue is in
Window_BattleLog.prototype.startAction = function(subject, action, targets) {
BattleManager._subject.canInput = function() {
//subject.canInput = function() {
return false;
}
const item = action.item();
this.push("performActionStart", subject, action);
this.push("waitForMovement");
this.push("performAction", subject, action);
this.push("showAnimation", subject, targets.clone(), item.animationId);
this.displayAction(subject, item);
};
when its only 1 battler , after using any action the Fight menu disapears and when the action is completed the fight menu comes back
with two or more for some reason the fight menu stay there and i can keep pressing diffrent commands ... Nothing happens but i can still keep pressing...
which sometimes results in a setAttack not defined error.
now WHY?!?!?!!?!? wouldn't the rest of the battlers have the fight menu disapear for them?!?!!?
i have been hitting my head on this with no solution!!!
i bring back the input
in this code :
Game_Actor.prototype.continueTpbChargeTime = function() {
this.startTpbTurn();
this._tpbState = "charging";
this.canInput = function() {
return true;}
};
anyone with an idea of how to fix it would be great!!!
attached is my (work in progress) plugin
i've been working on a new battle system and its 90% finished! HOWEVER when its only 1 battler its working perfectly
when its two or more it doesn't work like it should and because of that i get errors.
the specific issue is in
Window_BattleLog.prototype.startAction = function(subject, action, targets) {
BattleManager._subject.canInput = function() {
//subject.canInput = function() {
return false;
}
const item = action.item();
this.push("performActionStart", subject, action);
this.push("waitForMovement");
this.push("performAction", subject, action);
this.push("showAnimation", subject, targets.clone(), item.animationId);
this.displayAction(subject, item);
};
when its only 1 battler , after using any action the Fight menu disapears and when the action is completed the fight menu comes back
with two or more for some reason the fight menu stay there and i can keep pressing diffrent commands ... Nothing happens but i can still keep pressing...
which sometimes results in a setAttack not defined error.
now WHY?!?!?!!?!? wouldn't the rest of the battlers have the fight menu disapear for them?!?!!?
i have been hitting my head on this with no solution!!!
i bring back the input
in this code :
Game_Actor.prototype.continueTpbChargeTime = function() {
this.startTpbTurn();
this._tpbState = "charging";
this.canInput = function() {
return true;}
};
anyone with an idea of how to fix it would be great!!!
attached is my (work in progress) plugin
Attachments
-
2.2 KB Views: 0
