So I got the following error once all my mons in my party fainted. Did I set my battle lost event incorrectly or is it something else?
================================Erreur de script================================
Message :
display_message was called inside display_message. Please fix your scene update.
Type : ScriptError
Script : 01450 Systems/00004 Message/00003 GamePlay/00001 DisplayMessage.rb (PSDK)
Ligne : 66
Date : 12/12/2021 14:41:02
Game Version : 256
Logiciel : Pokémon SDK 25.9
===================================Backtraces===================================
[35] : 01450 Systems/00004 Message/00003 GamePlay/00001 DisplayMessage.rb (PSDK) | ligne 66 display_message
[34] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 40 player_loose_sequence
[33] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 267 <class:Logic>
[32] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 79 register
[31] : 00010 Hooks.rb (PSDK) | ligne 57 instance_exec
[30] : 00010 Hooks.rb (PSDK) | ligne 57 exec_hooks
[29] : 00010 Hooks.rb (PSDK) | ligne 55 each
[28] : 00010 Hooks.rb (PSDK) | ligne 55 exec_hooks
[27] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 11 process
[26] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00103 Scene Battle Phase.rb (PSDK) | ligne 38 battle_end
[25] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00100 Scene.rb (PSDK) | ligne 83 next_update_process
[24] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00100 Scene.rb (PSDK) | ligne 73 update
[23] : 01450 Systems/00004 Message/00003 GamePlay/00001 DisplayMessage.rb (PSDK) | ligne 148 message_update_scene
[22] : 01450 Systems/00004 Message/00003 GamePlay/00001 DisplayMessage.rb (PSDK) | ligne 72 display_message
[21] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 40 player_loose_sequence
[20] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 267 <class:Logic>
[19] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 79 register
[18] : 00010 Hooks.rb (PSDK) | ligne 57 instance_exec
[17] : 00010 Hooks.rb (PSDK) | ligne 57 exec_hooks
[16] : 00010 Hooks.rb (PSDK) | ligne 55 each
[15] : 00010 Hooks.rb (PSDK) | ligne 55 exec_hooks
[14] : 01600 Alpha 25 Battle Engine/00200 Battle_Logic/00001 Handlers/01011 BattleEndHandler.rb (PSDK) | ligne 11 process
[13] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00103 Scene Battle Phase.rb (PSDK) | ligne 38 battle_end
[12] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00100 Scene.rb (PSDK) | ligne 83 next_update_process
[11] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00100 Scene.rb (PSDK) | ligne 73 update
[10] : 01450 Systems/00000 General/00003 GamePlay__Base/00000 GamePlay__Base.rb (PSDK) | ligne 260 main_process
[9] : 01450 Systems/00000 General/00003 GamePlay__Base/00000 GamePlay__Base.rb (PSDK) | ligne 153 main
[8] : tools/GameLoader/Z_main.rb (PSDK) | ligne 17 <top (required)>
[7] : tools/GameLoader/3_load_extensions.rb (PSDK) | ligne 34 rgss_main
[6] : tools/GameLoader/50_load_game_uncompiled.rb (PSDK) | ligne 32 <top (required)>
[5] : ScriptLoad.rb (PSDK) | ligne 131 require
[4] : ScriptLoad.rb (PSDK) | ligne 131 load_tool
[3] : tools/GameLoader/Z_load_uncompiled.rb (PSDK) | ligne 10 <top (required)>
[2] : ScriptLoad.rb (PSDK) | ligne 131 require
[1] : ScriptLoad.rb (PSDK) | ligne 131 load_tool
[0] : Game.rb (RMXP) | ligne 8 <main>
===================================Fin du log===================================