RMMZ code not working when there is more than 1 actor in battle

ferallag

Veteran
Veteran
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
 

Attachments

ferallag

Veteran
Veteran
Joined
Aug 5, 2020
Messages
38
Reaction score
4
First Language
english
Primarily Uses
RMMV
anyone with the slightest idea as to why this is happening ... it would be great... just point me in the right direction!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top