summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacquietx37 <53120122+Jacquietx37@users.noreply.github.com>2019-08-14 09:15:12 +0200
committerJacquietx37 <53120122+Jacquietx37@users.noreply.github.com>2019-08-14 09:15:12 +0200
commitb21dfb9ba1c28dac918318f0efb48a62dfc643b2 (patch)
treeea56b9a07f7eef711eb9015d554bacdf20328822
parent0fef16702092a4f4dfa9bd994ce872bdf68e7310 (diff)
Added a page for maybe the simple process of changing the POTION in the PC when the player starts (or remove it).
-rw-r--r--Change-initial-PC-items.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/Change-initial-PC-items.md b/Change-initial-PC-items.md
new file mode 100644
index 0000000..9bc98e2
--- /dev/null
+++ b/Change-initial-PC-items.md
@@ -0,0 +1,38 @@
+When the player starts a new adventure, the game gives the player one potion in their PC to start with. In this tutorial, we'll learn where and how to edit the PC items.
+
+### Edit the PC items
+Open `src/player_pc.c`. You will find the following lines:
+
+`static const struct ItemSlot gNewGamePCItems[] =
+{
+ { ITEM_POTION, 1 },
+ { ITEM_NONE, 0 }
+};`
+
+In here you can add all items you want the player to have when they start a new game. For example, if we would want to start with both one pokeball and one potion, the code would be:
+
+`static const struct ItemSlot gNewGamePCItems[] =
+{
+ { ITEM_POTION, 1 },
+ { ITEM_POKE_BALL, 1},
+ { ITEM_NONE, 0 }
+};`
+
+Which would look like:
+
+![](https://i.imgur.com/p7aIQrx.png)
+
+If we would want to start with 5 pokeballs instead, we can modify the number of the second value inside the brackets. For example:
+
+`static const struct ItemSlot gNewGamePCItems[] =
+{
+ { ITEM_POTION, 1 },
+ { ITEM_POKE_BALL, 5},
+ { ITEM_NONE, 0 }
+};`
+
+Which will turn out as:
+
+![](https://i.imgur.com/i7GBS8L.png)
+
+The `{ ITEM_POTION, 1 },` can be removed to have no item in the PC at all. \ No newline at end of file