Hello,
I've been tinkering with name boxes and I've noticed that after a troop event, the engine won't draw the name boxes again.
If I leave the map and come back, it's fixed.
Is there a way via comment event or else to reload the map at the end of the battle? Thank you!
if it does require to refresh, try to run $gameMap.requestRefresh()
or $gameMap.requestMapRefresh() as scriptcall, I forgot which one though.
but if its used inside battle, than probably a fix inside the plugin is better.
or a patch in the battleManager after victory processing.
but I don't have time to check as I don't use the messageCore though.
you can check if ATT_Turan Terrific Fixes thread has a fix for it.
as it has MANY fixes for various YEP plugins, so try to check that out.
can you show us screenshots of your plugin manager so that we can see which plugins you're using and in which order they are installed?
and additionally one of those troop events that causes this problem?
I suspect its the SRD AutoNameBox, can you turn this one OFF
as testing purpose, and use \n<name> however it was called
by yanfly messageCore?
if this confirm it working without the scriptcall, its an issue in
SRD plugin.
you can rule out the scriptcall if you place // in front of it.
Then please give a screenshot of the troop event like I asked above - the troop event in the database that causes the problem, not the map event that calls the battle.
the refresh scriptcall I had first was correct: $gameMap.requestRefresh();.
but why it doesn't work is a riddle.
can you confirm (random encounters) instead on map (as test)?
if that one works, than on map is missing something.
if the scriptcall does work afterwards, than something is missing
in the messageCore as I have no clue though, as I'm out of options afterwards.
Random encounters are the same, no name box afterwards.
However I found a solution for transfering the player back to the same spot after the battle, reloading the name boxes.
It's all fixed, thank you for your time!!
a tiny tip if that works for work around, save the info on a common event.
call it like "victory refresh" and call that after winning/losing/drawing.
so you don't have to redo it for each enemy.
if something messes up, the only thing you fix is the common event 🙂