Change Weapon after the 10th random battle

Hello,


I am a novice and my Idea for my game was, after a specific number of battles you fight with your weapon, it changes into a newer and stronger weapon.


My weapon the Twig should evolve after the 10th random battle into the Stick. The Twig should just be replaced with the Stick. I think I need triggers to do this, but I have searched the internet for several hours and didn't find something appropriate. I anyone can help me, I would really appreciate it. The troop to battle is a Baby Slime. I don't know if I must use a common event with this or in the troop window or something entirely different. The enemies are visible running around, and this is what I tried to do:

Getting the Stick.jpg

Getting the Stick1.png
I think you should read some tutorials on eventing, because there are a lot of mistakes in those events - I suggest following the link to the starting point in my signature to find those tutorials.


1) common event autorun only runs if the assigned switch is ON - and it's assigned to switch #001. So the control switch #001 inside that common event is useless - either the switch is already ON (in which case the command does nothing) or the switch is OFF (in which case the event doesn't run and the command never gets executed).


2) common events cannot be erased - only map events can, and that is only temporary.


3) there is nothing counting the battles - you'll need a control variable command for that.


That control variable command needs to be counted +1 for each win against a baby slime - best probably in the slime event where the if win is.


4) as erase event is only temporary, all those slimes will be back if you leave the map and return to it.


Your decision if you want that or not - if not you'll need to use switches and a second event page to prevent the slimes from returning.
I think you should read some tutorials on eventing, because there are a lot of mistakes in those events - I suggest following the link to the starting point in my signature to find those tutorials.


1) common event autorun only runs if the assigned switch is ON - and it's assigned to switch #001. So the control switch #001 inside that common event is useless - either the switch is already ON (in which case the command does nothing) or the switch is OFF (in which case the event doesn't run and the command never gets executed).


2) common events cannot be erased - only map events can, and that is only temporary.


3) there is nothing counting the battles - you'll need a control variable command for that.


That control variable command needs to be counted +1 for each win against a baby slime - best probably in the slime event where the if win is.


4) as erase event is only temporary, all those slimes will be back if you leave the map and return to it.


Your decision if you want that or not - if not you'll need to use switches and a second event page to prevent the slimes from returning.

Thanks for your reply, I will look into this.

Original thread: https://forums.rpgmakerweb.com/threads/change-weapon-after-the-10th-random-battle.61999/