- 107
- Posts
- 4
- Years
- Seen Apr 27, 2023
I'm using the multiple saves script with autosave enabled, and so, I've added a system that autosave happens at the end of each battle.
But in Open World Event Pokemons, the Pokemon disappears after pbSetEventTime, so it will disappear for a certain time.
However, if the player faints a wild Pokemon and receives its experience, closes the game and reopens it, it will remain there and this will cause an infinite loop, thus allowing the user to abuse the experience received by a certain Pokemon.
So, I imagined adding the pbSetEventTime script when starting the battle, right in the pbWildBattle def section or if not at the end of the transition from the beginning of the battle, so the Pokemon wouldn't disappear on our screen at the same time it starts.
However, just adding doesn't solve it, as if it's a wild encounter other than an event, it causes an error.
So, conclude that, the solution would be to check if it is an event for the pbSetEventTime to happen.
can anybody help me?
But in Open World Event Pokemons, the Pokemon disappears after pbSetEventTime, so it will disappear for a certain time.
However, if the player faints a wild Pokemon and receives its experience, closes the game and reopens it, it will remain there and this will cause an infinite loop, thus allowing the user to abuse the experience received by a certain Pokemon.
So, I imagined adding the pbSetEventTime script when starting the battle, right in the pbWildBattle def section or if not at the end of the transition from the beginning of the battle, so the Pokemon wouldn't disappear on our screen at the same time it starts.
However, just adding doesn't solve it, as if it's a wild encounter other than an event, it causes an error.
So, conclude that, the solution would be to check if it is an event for the pbSetEventTime to happen.
can anybody help me?