for i in 0...$Trainer.party.length
$Trainer.party.delete_at(i)
The script $Trainer.party.delete_at(index), where "index" is the spot in the player's party, will let you delete even the player's last able pok?mon.
You could set up the script as:
That should do it.Code:for i in 0...$Trainer.party.length $Trainer.party.delete_at(i)
Basically, I'll have to create a new script line on the script section and put the code, than I'd have to to call it on the event?
No, you can use the script I just wrote in the event. If you haven't added a script like to an event before, it's the very last option on the third tab.