- 80
- Posts
- 6
- Years
- Seen Nov 5, 2023
So... I have added two simple scripts to my game
And the pbBackupTeam parts works,
My idea is that after I backup the team I set the Team level to 50 for a trainer battle and after that the Levels return to whatever they were. This is why I run after pbBackupTeam a script that sets the levels of the entire team to 50
But here comes the problem, when I use pbReturnParty afterwards. My Team stays the same
Please help
Why does
Thanks in advance!
-TritraSerpifeu
Code:
def pbBackupTeam
$game_variables[40]=$Trainer.party
end
def pbReturnParty
$Trainer.party=$game_variables[40]
end
And the pbBackupTeam parts works,
My idea is that after I backup the team I set the Team level to 50 for a trainer battle and after that the Levels return to whatever they were. This is why I run after pbBackupTeam a script that sets the levels of the entire team to 50
for poke in $Trainer.party
poke.level = 50
poke.calcStats
poke.heal
end
But here comes the problem, when I use pbReturnParty afterwards. My Team stays the same
Please help
Why does
not work?def pbReturnParty
$Trainer.party=$game_variables[40]
end
Thanks in advance!
-TritraSerpifeu