Event that accompanies player

Good afternoon everyone, first time participating in a community here


I need help with my project I don't know if this is the right place to ask but anyway


I'm creating a protagonist and I'm in the second part where I play with 2 characters but their paths cross but each one has their own objective in the second I would like him to evolve the weapon over a certain amount of battles


Create items from 1 to 4 so he can gain these weapons when evolving and destroying the current one, so to speak, on the first map I can do this well because I created a common event where he checks the number of battles and shows me, then I created an event on the parallel map where he checks that when the battle reaches 10, for example, he gains a stronger weapon, so far, everything is fine, but if I change the map, the common event continues to count, but the map event doesn't, how do I make it follow the player all the time?


Boa tarde pessoal primeira vez participando de uma comunidade aqui
preciso de ajuda com meu projeto não sei se este é o lugar certo para perguntar mas enfim
estou criando um protagonista e estou na segunda parte onde jogo com 2 personagens porém os caminhos deles se cruzam mas cada um tem seu objetivo no segundo gostaria que ele evoluísse a arma a uma certa quantidade de batalhas
Crie os itens do 1 ao 4 para ele ganhar estas armas ao evoluir e destruir a atual digamos assim ni primeiro mapa consigo fazer isto de boa pois criei um evento comum onde ele verifica a quantidade de batalhas me mostra aí criei um evento no mapa paralelo onde ele verifica que quando a batalha atingir por exemplo 10 ele ganha uma arma mais forte até aí tudo bem mas se eu mudar de mapa o evento comum continua contabilizando mas o do mapa não como faço para ele acompanhar o jogador o tempo todo
I created an event on the parallel map where he checks that when the battle reaches 10
if your problem is desynchronization between parts, don't count through separate parts: count AT the important event.... in this case, the battle itself.
at the end of each battle, run a common event that would ping your main counter by 1.
then, validate only at the point of having to check that value, not constantly through the whole game.

parallel events are for things that can't be possibly split into more manageable processes.
this, you can split.
if your problem is desynchronization between parts, don't count through separate parts: count AT the important event.... in this case, the battle itself.
at the end of each battle, run a common event that would ping your main counter by 1.
then, validate only at the point of having to check that value, not constantly through the whole game.

parallel events are for things that can't be possibly split into more manageable processes.
this, you can split.
If You're using battle core from Visuatella, it's more simple. If I'm not mistaken, every code you put on the first monster encounter, is replicated for the others.

As gvtv87 said, just make a variable to count as the battle progress. Just make sure how you wanna count. I don't remember with you can conditioning as "End of battle", but if you can make sure to put "If hero is alive". Or something similar.

Original thread: https://forums.rpgmakerweb.com/threads/event-that-accompanies-player.167774/