summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-07-05 15:00:08 -0500
committerExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-07-05 15:00:08 -0500
commitbb42970a5141bd81c3e5f2dd97940c91b5e77bbd (patch)
treea3cff3473e0c419d3c5aa0b20e2ffdf591f805fa
parent4393111967c5204e89ee32e0989f61095eb6c598 (diff)
not finished yet, saving for later
-rw-r--r--Gen-6-Exp-Share.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/Gen-6-Exp-Share.md b/Gen-6-Exp-Share.md
new file mode 100644
index 0000000..95b6845
--- /dev/null
+++ b/Gen-6-Exp-Share.md
@@ -0,0 +1,50 @@
+Credit to BluRose for writing this in pokeruby, Lunos for porting this to pokeemerald, and ExpoSeed for modifying it.
+
+THIS TUTORIAL IS NOT COMPLETE YET, DO NOT USE IT YET
+
+This tutorial will add the new Exp All mechanics from Gen 6. This entails making it a toggleable key item, modifying the associated text, distributing all the exp in battle, and displaying the proper message.
+
+## Contents
+1. [Edit behavior out of battle](#1-edit-behavior-out-of-battle)
+2. [Edit behavior in battle](#2-edit-behavior-in-battle)
+
+## 1. Edit behavior out of battle
+
+First, we will need some new strings.
+
+Add these declarations to [include/strings.h](../blob/master/include/strings.h):
+```c
+extern const u8 gText_ExpShareOn[];
+extern const u8 gText_ExpShareOff[];
+```
+And define it as such in [src/strings.h](../blob/master/src/strings.h):
+```c
+const u8 gText_ExpShareOn[] = _("Turned on the Exp. Share.\pParty will now gain a portion\nof the Experience Points.{PAUSE_UNTIL_PRESS}");
+const u8 gText_ExpShareOff[] = _("Turned off the Exp. Share.\pParty will no longer gain a portion\nof any Experience Points.{PAUSE_UNTIL_PRESS}");
+```
+We also need to change the Exp Share's item description. Edit [src/data/text/item_descriptions.h](../blob/master/src/data/text/item_descriptions.h):
+```diff
+ static const u8 sExpShareDesc[] = _(
+- "A hold item that\n"
+- "gets EXP. points\n"
+- "from battles.");
++ "A device that\n"
++ "shares EXP. points\n"
++ "to the party.");
+```
+
+Now that out of battle strings are taken care of, let's work on the item properties. Edit [src/data/items.h](../blob/master/src/data/items.h):
+```diff
+ [ITEM_EXP_SHARE] =
+ {
+ .name = _("EXP. SHARE"),
+ .itemId = ITEM_EXP_SHARE,
+ .price = 3000,
+ .holdEffect = HOLD_EFFECT_EXP_SHARE,
+ .description = sExpShareDesc,
+ .pocket = POCKET_ITEMS,
+ .type = 4,
+ .fieldUseFunc = ItemUseOutOfBattle_CannotUse,
+ .secondaryId = 0,
+ },
+``` \ No newline at end of file