From c268ef7c405418f75e82b8b0af3fad1cce75fc7b Mon Sep 17 00:00:00 2001 From: Petuuuhhh <42703201+Petuuuhhh@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:58:15 -0400 Subject: [PATCH] Created Temporarily Replace Player or Enemy Party Pokemon (markdown) --- ...ily-Replace-Player-or-Enemy-Party-Pokemon.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Temporarily-Replace-Player-or-Enemy-Party-Pokemon.md diff --git a/Temporarily-Replace-Player-or-Enemy-Party-Pokemon.md b/Temporarily-Replace-Player-or-Enemy-Party-Pokemon.md new file mode 100644 index 0000000..b40d2da --- /dev/null +++ b/Temporarily-Replace-Player-or-Enemy-Party-Pokemon.md @@ -0,0 +1,17 @@ +[![createpartymon Scripting Command](https://images-ext-1.discordapp.net/external/bldDJL4k1ySYYXxYak4NjfO1en3vgykFhxYQM9QRkwc/https/share.redd.it/preview/post/16rv1ru?width=1151&height=600)](https://youtu.be/dT0aj-YW1ww) + +# Introduction +This branch allows you to temporarily replace player/enemy party Pokemon with a "createpartymon" scripting command. For the player, all you have to do is save your party with `special SavePlayerParty`, use the command, then do `special LoadPlayerParty` after a trainer battle. For the enemy, you need to set `FLAG_ENEMY_PARTY`, which replaces the enemy's usual party with the party you specify, and *then* run the command before a trainer battle. Make sure to clear the flag afterward, if you want to go back to normal trainers. + +# Installation +Just do git `remote add petuh https://github.com/Petuuuhhh/pokeemerald` followed by `git pull petuh createpartymon`. + +# Warnings and Possible Issues +Be aware that `ZeroEnemyPartyMons()` does not get run if you set the flag and then start a trainer battle, so if you load in a party with 6 Pokemon, and then next, load in a party with 5, there might be a leftover sixth Pokemon from before (haven't tested, yet). It might even carry over a previous normal trainer's Pokemon if you load in a number that's lower than the party amount a trainer used before. + +# Examples +I use this scripting command to implement Smogon [Gen 3] OU team replacement in [this YouTube video](https://youtu.be/dT0aj-YW1ww). It was made possible through [SBird's Dynamic Multichoice](https://www.pokecommunity.com/showthread.php?t=489984). + +# Contributors +## [ghoulslash](https://github.com/ghoulslash) +* Created [Give Custom Mon](https://www.pokecommunity.com/showpost.php?p=10203404), which I largely based the code around. \ No newline at end of file