summaryrefslogtreecommitdiff
path: root/Move-Tutor-and-Tutor-Moves.md
diff options
context:
space:
mode:
authorKDLPro <38602758+KDLPro@users.noreply.github.com>2020-11-22 23:57:57 +0800
committerKDLPro <38602758+KDLPro@users.noreply.github.com>2020-11-22 23:57:57 +0800
commit3d18f4e35b6cde92beed032e38c6a8a89636f260 (patch)
tree0ebdc1773a2c426121f55239edc11b9a8d9e8dcf /Move-Tutor-and-Tutor-Moves.md
parentbdfcba128d02372e5e72af979a497210f2d9209e (diff)
Initial edits to Step 5: Copying Goldenrod Move Tutor
Diffstat (limited to 'Move-Tutor-and-Tutor-Moves.md')
-rw-r--r--Move-Tutor-and-Tutor-Moves.md38
1 files changed, 35 insertions, 3 deletions
diff --git a/Move-Tutor-and-Tutor-Moves.md b/Move-Tutor-and-Tutor-Moves.md
index eb64358..9fe3c4e 100644
--- a/Move-Tutor-and-Tutor-Moves.md
+++ b/Move-Tutor-and-Tutor-Moves.md
@@ -7,7 +7,8 @@ In this tutorial we will be expanding the existing move tutor code in pokecrysta
2. [Edit Goldenrod Move Tutor to support the new changes](#2-edit-goldenrod-move-tutor-to-support-the-new-changes)
3. [Create a new tutor move](#3-create-a-new-tutor-move)
4. [Create a new Move Tutor script](#4-create-a-new-move-tutor-script)
-5. [Other examples](#5-other-examples)
+5. [Create a new Move Tutor similar to Goldenrod Move Tutor](#5-create-a-move-tutor-similar-to-goldenrod-move-tutor)
+6. [Other examples](#5-other-examples)
## 1. Edit existing move tutor code
@@ -392,8 +393,39 @@ There we go! A brand new move tutor! Now you know how it's done, you can expand
![Screenshot](https://i.imgur.com/hwPB2of.png)
-## 5. Other examples
-Now that new tutors can be added to the game, what else could you do? Like the tutors from Gen 3 onwards, you can charge a price, or demand a specific item. Adding a `checkitem` command is very simple, but effective! For this example, we will be using a `POKE_DOLL`.
+
+## 5. Create a new Move Tutor similar to Goldenrod Move Tutor
+We can copy the Goldenrod Move Tutor script to create a new move tutor in New Bark Town, for example. But first, we need to modify [maps/GoldenrodCity.asm](../blob/master/maps/GoldenrodCity.asm)
+
+```diff
+MoveTutorScript:
+ faceplayer
+ opentext
+ writetext GoldenrodCityMoveTutorAskTeachAMoveText
+ yesorno
+ iffalse .Refused
+ special DisplayCoinCaseBalance
+ writetext GoldenrodCityMoveTutorAsk4000CoinsOkayText
+ yesorno
+ iffalse .Refused2
+ checkcoins 4000
+ ifequal HAVE_LESS, .NotEnoughMoney
+ writetext GoldenrodCityMoveTutorWhichMoveShouldITeachText
+ loadmenu .MoveMenuHeader
+ verticalmenu
+ closewindow+
+- ifequal MOVETUTOR_FLAMETHROWER, .Flamethrower
+- ifequal MOVETUTOR_THUNDERBOLT, .Thunderbolt
+- ifequal MOVETUTOR_ICE_BEAM, .IceBeam
++ ifequal 1, .Flamethrower
++ ifequal 2, .Thunderbolt
++ ifequal 3, .IceBeam
+ sjump .Incompatible
+```
+
+
+## 6. Other examples
+Now that new tutors can be added to the game, what else could you do? Like the tutors from Gen 3 onwards, you can charge a price, or demand a specific item. Adding a `checkitem` command is very simple, but effective! For this example, we will be using a `POKE_DOLL` to the Celadon City move tutor.
```diff
CeladonCityTutorSoftboiledScript: