summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Evolution-moves.md367
-rw-r--r--Tutorials.md2
-rw-r--r--screenshots/evolution-moves.pngbin0 -> 1092 bytes
3 files changed, 368 insertions, 1 deletions
diff --git a/Evolution-moves.md b/Evolution-moves.md
new file mode 100644
index 0000000..c827756
--- /dev/null
+++ b/Evolution-moves.md
@@ -0,0 +1,367 @@
+Gen 7 introduced *evolution moves*: moves that a Pokémon learns when it evolves, regardless of its level. This is fairly simple to implement in pokecrystal.
+
+
+## TOC
+
+
+## 1. Define a table of evolution moves
+
+Create **data/pokemon/evolution_moves.asm**:
+
+```diff
++EvolutionMoves::
++ db NO_MOVE ; BULBASAUR
++ db NO_MOVE ; IVYSAUR
++ db PETAL_DANCE ; VENUSAUR
++ db NO_MOVE ; CHARMANDER
++ db NO_MOVE ; CHARMELEON
++ db WING_ATTACK ; CHARIZARD
++ db NO_MOVE ; SQUIRTLE
++ db NO_MOVE ; WARTORTLE
++ db NO_MOVE ; BLASTOISE
++ ...
++ db NO_MOVE ; CATERPIE
++ db HARDEN ; METAPOD
++ db CONFUSION ; BUTTERFREE
++ db NO_MOVE ; WEEDLE
++ db HARDEN ; KAKUNA
++ db FURY_ATTACK ; BEEDRILL
++ ...
++ db SCARY_FACE ; RATICATE
++ ...
++ db CRUNCH ; ARBOK
++ ...
++ db THUNDERBOLT ; RAICHU
++ ...
++ db GUST ; VENOMOTH
++ ...
++ db TRI_ATTACK ; DUGTRIO
++ ...
++ db SWIFT ; PERSIAN
++ ...
++ db RAGE ; PRIMEAPE
++ ...
++ db SUBMISSION ; POLIWRATH
++ ...
++ db KINESIS ; KADABRA
++ db KINESIS ; ALAKAZAM
++ ...
++ db STRENGTH ; MACHAMP
++ ...
++ db WRAP ; TENTACRUEL
++ ...
++ db FURY_ATTACK ; RAPIDASH
++ ...
++ db WITHDRAW ; SLOWBRO
++ ...
++ db TRI_ATTACK ; MAGNETON
++ ...
++ db TRI_ATTACK ; DODRIO
++ ...
++ db STOMP ; EXEGGUTOR
++ ...
++ db DOUBLE_KICK ; HITMONLEE
++ db COMET_PUNCH ; HITMONCHAN
++ ...
++ db BITE ; GYARADOS
++ ...
++ db WATER_GUN ; VAPOREON
++ db THUNDERSHOCK ; JOLTEON
++ db EMBER ; FLAREON
++ ...
++ db SPIKE_CANNON ; OMASTAR
++ ...
++ db SLASH ; KABUTOPS
++ ...
++ db WING_ATTACK ; DRAGONITE
++ ...
++ db PETAL_DANCE ; MEGANIUM
++ ...
++ db AGILITY ; FURRET
++ ...
++ db SWORDS_DANCE ; ARIADOS
++ ...
++ db THUNDERPUNCH ; AMPHAROS
++ ...
++ db PERISH_SONG ; POLITOED
++ ...
++ db CONFUSION ; ESPEON
++ db PURSUIT ; UMBREON
++ ...
++ db IRON_TAIL ; STEELIX
++ ...
++ db METAL_CLAW ; SCIZOR
++ ...
++ db FURY_ATTACK ; PILOSWINE
++ ...
++ db OCTAZOOKA ; OCTILLERY
++ ...
++ db FURY_ATTACK ; DONPHAN
++ ...
++ db ROLLING_KICK ; HITMONTOP
++ ...
++ db NO_MOVE ; CELEBI
+```
+
+This is simply a table of 251 evolution moves, one for each Pokémon. I've left out the many `NO_MOVE`s. Some of the moves here are taken from [the S/M data](https://www.serebii.net/sunmoon/evolutionmoves.shtml) (like Petal Dance for Venusaur); others are moves that G/S/C Pokémon learned at the same level they evolved (like Thunderpunch for Ampharos); and a few are invented to make up for Gen 7 evolution moves that don't exist in Gen 2 (like Iron Tail for Steelix). Of course, feel free to design your own set.
+
+
+## 2. Revise level-up movesets to match evolution moves
+
+Edit [data/pokemon/evos_attacks.asm](../blob/master/data/pokemon/evos_attacks.asm):
+
+```diff
++INCLUDE "data/pokemon/evolution_moves.asm"
+ INCLUDE "data/pokemon/evos_attacks_pointers.asm"
+
+ ...
+
+ MetapodEvosAttacks:
+ ...
+ db 1, HARDEN
+- db 7, HARDEN
+ ....
+
+ ButterfreeEvosAttacks:
+ ...
+ db 1, CONFUSION
+- db 10, CONFUSION
+ ...
+
+ KakunaEvosAttacks:
+ ...
+ db 1, HARDEN
+- db 7, HARDEN
+ ....
+
+ BeedrillEvosAttacks:
+ ...
+ db 1, FURY_ATTACK
+- db 10, FURY_ATTACK
+ ...
+
+ RaticateEvosAttacks:
+ ...
+- db 20, SCARY_FACE
++ db 19, SCARY_FACE
+ ...
+
+ VenomothEvosAttacks:
+ ...
+- db 31, GUST
++ db 30, GUST
+ ...
+
+ PersianEvosAttacks:
+ ...
++ db 1, SWIFT
+ ...
+
+ PrimeapeEvosAttacks:
+ ...
+- db 28, RAGE
++ db 27, RAGE
+ ...
+
+ PoliwrathEvosAttacks:
+ ...
+ db 1, SUBMISSION
+- db 35, SUBMISSION
+ ...
+
+ MachampEvosAttacks:
+ ...
++ db 27, STRENGTH
+ ...
+
+ TentacruelEvosAttacks:
+ ...
+- db 30, WRAP
++ db 29, WRAP
+ ...
+
+ RapidashEvosAttacks:
+ ...
+- db 40, FURY_ATTACK
++ db 39, FURY_ATTACK
+ ...
+
+ SlowbroEvosAttacks:
+ ...
+- db 37, WITHDRAW
++ db 36, WITHDRAW
+ ...
+
+ MagnetonEvosAttacks:
+ ...
+-if _CRYSTAL
+- db 35, TRI_ATTACK
++ db 29, TRI_ATTACK
+-else
+ db 35, SWIFT
+-endc
+ ...
+
+ DoduoEvosAttacks:
+ ...
+- db 21, TRI_ATTACK
++ db 21, QUICK_ATTACK
+ ...
+
+ DodrioEvosAttacks:
+ ...
+- db 21, TRI_ATTACK
++ db 21, QUICK_ATTACK
+ db 25, RAGE
++ db 30, TRI_ATTACK
+ ...
+
+ ExeggutorEvosAttacks:
+ ...
+- db 19, STOMP
++ db 1, STOMP
+ ...
+
+ GyaradosEvosAttacks:
+ ...
+- db 20, BITE
++ db 1, BITE
+ ...
+
+ OmastarEvosAttacks:
+ ...
+- db 40, SPIKE_CANNON
++ db 39, SPIKE_CANNON
+ ...
+
+ KabutopsEvosAttacks:
+ ...
+- db 40, SLASH
++ db 39, SLASH
+ ...
+
+ DragoniteEvosAttacks:
+ ...
+- db 55, WING_ATTACK
++ db 54, WING_ATTACK
+ ...
+
+ FurretEvosAttacks:
+ ...
++ db 14, AGILITY
+ ...
+
+ AriadosEvosAttacks:
+ ...
++ db 21, SWORDS_DANCE
+ ...
+
+ AmpharosEvosAttacks:
+ ...
+- db 30, THUNDERPUNCH
++ db 29, THUNDERPUNCH
+ ...
+
+ PolitoedEvosAttacks:
+ ...
+- db 35, PERISH_SONG
++ db 1, PERISH_SONG
+ ...
+
+ PiloswineEvosAttacks:
+ ...
+- db 33, FURY_ATTACK
++ db 32, FURY_ATTACK
+ ...
+
+ OctilleryEvosAttacks:
+ ...
+- db 25, OCTAZOOKA
++ db 24, OCTAZOOKA
+ ...
+
+ DonphanEvosAttacks:
+ ...
+- db 25, FURY_ATTACK
++ db 24, FURY_ATTACK
+ ...
+```
+
+Here we `INCLUDE` data/pokemon/evolution_moves.asm in the same bank as the level-up movesets.
+
+We've also revised the learnsets somewhat, in order to guarantee two properties:
+
+- One, evolution moves should not also be learned at level-up. Otherwise, you could be prompted to learn the move twice if you stop learning it the first time. (We do need to allow learning evolution moves and level-up moves separately, since, for example, Abra can evolve into Kadabra at level 16, learn Kinesis by evolution, and learn Confusion by level-up.)
+- Two, evolution moves should still appear in learnsets, in roughly the same order as before. This is so that wild Pokémon and enemy trainers' Pokémon with default movesets will still know those moves.
+
+My solution here is usually to learn moves one level earlier. For example, if Rattata evolves into Raticate at level 20 and Raticate's evolution move is Scary Face, Raticate should learn Scary Face at level 19 instead of level 20.
+
+
+## 3. Actually learn evolution moves
+
+Edit [engine/pokemon/evolve.asm](../blob/master/engine/pokemon/evolve.asm):
+
+```diff
+ EvolvePokemon:
+ ...
+
+ ld a, [wCurSpecies]
+ ld [wd265], a
+ xor a
+ ld [wMonType], a
++ call LearnEvolutionMove
+ call LearnLevelMoves
+ ld a, [wd265]
+ dec a
+ call SetSeenAndCaughtMon
+
+ ...
+
+ .ReturnToMap:
+ ...
+ ret
++
++LearnEvolutionMove:
++ ld a, [wd265]
++ ld [wCurPartySpecies], a
++ dec a
++ ld c, a
++ ld b, 0
++ ld hl, EvolutionMoves
++ add hl, bc
++ ld a, [hl]
++ and a
++ ret z
++
++ push hl
++ ld d, a
++ ld hl, wPartyMon1Moves
++ ld a, [wCurPartyMon]
++ ld bc, PARTYMON_STRUCT_LENGTH
++ call AddNTimes
++
++ ld b, NUM_MOVES
++.check_move
++ ld a, [hli]
++ cp d
++ jr z, .has_move
++ dec b
++ jr nz, .check_move
++
++ ld a, d
++ ld [wPutativeTMHMMove], a
++ ld [wd265], a
++ call GetMoveName
++ call CopyName1
++ predef LearnMove
++ ld a, [wCurPartySpecies]
++ ld [wd265], a
++
++.has_move
++ pop hl
++ ret
+```
+
+That's it; now Pokémon will try to learn their evolution move, if they have one, before their level-up moves.
+
+![Screenshot](screenshots/evolution-moves.png)
diff --git a/Tutorials.md b/Tutorials.md
index ee2af87..e3c233d 100644
--- a/Tutorials.md
+++ b/Tutorials.md
@@ -53,6 +53,7 @@ Tutorials may use diff syntax to show edits:
- [Physical/Special split](Physical-Special-split)
- [Infinitely reusable TMs](Infinitely-reusable-TMs)
- [Automatically reuse Repel](Automatically-reuse-Repel)
+- [Evolution moves](Evolution-moves)
- [Running Shoes](Running-Shoes)
- [Rock Climb](Rock-Climb)
- [Puddles that splash when you walk](Puddles-that-splash-when-you-walk)
@@ -77,6 +78,5 @@ Tutorials may use diff syntax to show edits:
- Implement dynamic overhead+underfoot bridges
- Pan the camera for cutscenes by making the player invisible
- Gain experience from catching Pokémon
-- Evolution moves from Gen 7
- Nuzlocke mode (an in-game enforced [Nuzlocke Challenge](https://bulbapedia.bulbagarden.net/wiki/Nuzlocke_Challenge))
- Useful unused content (`COLL_CURRENT_*`, `HELD_PREVENT_*`, `ENVIRONMENT_5`, `TRADE_GENDER_MALE`, `GROWTH_SLIGHTLY_*`, `SPRITE_UNUSED_GUY`, `PAL_NPC_PINK`, etc)
diff --git a/screenshots/evolution-moves.png b/screenshots/evolution-moves.png
new file mode 100644
index 0000000..ed9cc09
--- /dev/null
+++ b/screenshots/evolution-moves.png
Binary files differ