summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormimi <65136112+mimi-m@users.noreply.github.com>2021-09-05 01:20:14 +0800
committermimi <65136112+mimi-m@users.noreply.github.com>2021-09-05 01:20:14 +0800
commitf376b39d6afbe4154daf86cde0623cdd8777b305 (patch)
treeddecbfbce5b7ceb6c19578b0516da1c5878fea29
parent95be1f2a33db06c4e8d5b32092bac55c2dd58fec (diff)
Updated Add a new phone contact (markdown)
-rw-r--r--Add-a-new-phone-contact.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/Add-a-new-phone-contact.md b/Add-a-new-phone-contact.md
index aa3dfaf..e3ed1f5 100644
--- a/Add-a-new-phone-contact.md
+++ b/Add-a-new-phone-contact.md
@@ -159,7 +159,7 @@ This makes it so that the `DELETE` option when you select the number is absent.
## 5. Create the files for when you call them
-Now, let's make a file for `RivalPhoneCalleeScript` and the text it uses. You can use another file as a guide, like Buena's ([buena.asm](../blob/master/engine/phone/scripts/buena.asm)) or Bill's ([bill.asm](../blob/master/engine/phone/scripts/bill.asm))!
+Now, let's make a file for `RivalPhoneCalleeScript` and the text it uses. You can use another file as a guide, like Buena's ([engine/phone/scripts/buena.asm](../blob/master/engine/phone/scripts/buena.asm)) or Bill's ([engine/phone/scripts/bill.asm](../blob/master/engine/phone/scripts/bill.asm))!
Create **engine/phone/scripts/rival_callee.asm**.
@@ -414,6 +414,23 @@ And that's all! You now have a new, custom phone contact in your game!
![Screenshot](https://raw.githubusercontent.com/mimi-m/pokecrystal/master/docs/images/screenshot.png)
-Don't forget to add a script in the game that gives the player the new phone number!
+Don't forget to add a script in the game that gives the player the new phone number! Here's an example from Elm's Lab ([maps/ElmsLab.asm](../blob/master/maps/ElmsLab.asm#L250)):
+```diff
+ElmDirectionsScript:
+...
+ addcellnum PHONE_ELM
+ opentext
+ writetext GotElmsNumberText
+ playsound SFX_REGISTER_PHONE_NUMBER
+ waitsfx
+ waitbutton
+ closetext
+...
+
+GotElmsNumberText:
+ text "<PLAYER> got ELM's"
+ line "phone number."
+ done
+```
Special/Scripted calls (TODO)