mirror of https://github.com/pret/pokeemerald.git
Created Temporarily Replace Player or Enemy Party Pokemon (markdown)
parent
70d8bcae97
commit
c268ef7c40
|
@ -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.
|
Loading…
Reference in New Issue