Hi everyone! Since yesterday I have a problem with battle system. When I create a battle against boss, I turn off opportunity to escape. But in battle scene the escape option is avalibe! How to fix it?
Battle system problem
RPG Maker VXAce SupportHm, you can only escape from battles called in events if the escape option is activated. Assuming you did not allow Losing, your battle should show:
Battle Processing: Chimera
and not:
Battle Processing: Chimera
Win
>
Escape
>
If your battle processing looks like the first one, Escape should be grayed out. I'm also sure that by default, neither options are selected meaning that it shows the first version of the process.
Considering RPG Maker shouldn't ship out with errors like that, we would like to know if you added or modified any scripts if messing with the other options don't work.
Battle Processing: Chimera
and not:
Battle Processing: Chimera
Win
>
Escape
>
If your battle processing looks like the first one, Escape should be grayed out. I'm also sure that by default, neither options are selected meaning that it shows the first version of the process.
Considering RPG Maker shouldn't ship out with errors like that, we would like to know if you added or modified any scripts if messing with the other options don't work.
From what I understand (for the technical-minded):
-Game_Interpreter sets up the battle (troop id, can escape, can lose), and this is mainly set up through your event page.
-For BattleManager's setup by default, can escape and can lose are true unless a variable is put in.
-can escape is assigned to a variable, and there is one method used to see true/false just by calling this variable.
-The can escape method in this case is used mainly to enable/disable the escape command in the Party Command window.
---
So we would have to see if you changed Window_PartyCommand's command_list or anywhere that alters @can_escape or can_escape? inside BattleManager's setup. Very few scripts alter Game_Interpreter, so command_301 should be the last thing to check.
-Game_Interpreter sets up the battle (troop id, can escape, can lose), and this is mainly set up through your event page.
-For BattleManager's setup by default, can escape and can lose are true unless a variable is put in.
-can escape is assigned to a variable, and there is one method used to see true/false just by calling this variable.
-The can escape method in this case is used mainly to enable/disable the escape command in the Party Command window.
---
So we would have to see if you changed Window_PartyCommand's command_list or anywhere that alters @can_escape or can_escape? inside BattleManager's setup. Very few scripts alter Game_Interpreter, so command_301 should be the last thing to check.
Okay, I found a reason of this problem. I have a script which allow to retry a battle or load save file. When I deleted this script, everything works fine.
But it's cool and useful script, so I'm sorry to delete it. Maybe you can check this script and tell what's wrong.
Script:
But it's cool and useful script, so I'm sorry to delete it. Maybe you can check this script and tell what's wrong.
Script:
Line 202, under the script's module BattlerManager inside the def self.setup method. There's an alias called self.setup_old(troop_id, can_escape = true, can_lose = false). The problem is that can_escape and can_lose are arguments in the line above but variables in this line, so they get true and false.
Replace self.setup_old(troop_id, can_escape = true, can_lose = false) with self.setup_old(troop_id, can_escape, can_lose) . I tested this and it works as it should.
Replace self.setup_old(troop_id, can_escape = true, can_lose = false) with self.setup_old(troop_id, can_escape, can_lose) . I tested this and it works as it should.
Everything works fine! Thanks for help!
Original thread: https://forums.rpgmakerweb.com/threads/battle-system-problem.76665/