-
Notifications
You must be signed in to change notification settings - Fork 0
Craft Menu
It's a craft menu!
Select up to four items and try to craft them together. Add your own recipes and lock them away with flags if you like. Good for survival or other resource-focused hacks!
git remote add redsquidz https://github.com/redsquidz/pokeemerald
git pull redsquidz Craft_Menu
Recipes should be added in src/craft_menu.c
. I've left some comments to help point the way once you get there. As far as I'm aware, both the Craft_Recipes
and Craft_Flags
arrays can have as many more elements added as you like. Just follow the template! (See code screengrab below)
For in-world use, just add a sign object and reference the handy EventScript below:
Craft_EventScript_CraftTable
NOTE: If you'd like to remove the Crafting Tutorial, make sure to discard all of the incoming changes for the Route102 scripts, the InsideOfTruck scripts, and keep the Route102 map the same as it changes a couple tiles and adds a sign event.
Please submit a PR if you notice anything or have any upgrades. I've done a bunch of bug testing myself but it's always good to have a fresh pair of eyes, and there ain't nothing in this world of ours that can't stand some improvement. How Does It Work?
Hop in and out of your bag to add items, or add/remove multiple of the same item with SELECT + A/B
. Once the items match a recipe, the user can craft them together! I've tried to make the UI as user-friendly as possible, and wrote up a tutorial for players. Feel free to modify it as you like or drop it entirely.
Feel free to modify the strings in craft_menu.c
, however they might be a bit weird to read since I've added some sound effects and timing in there to make it a more immersive crafting experience. Just do a search for // Strings
.
I also added an endgame / testing item! (It's a secret, don't tell anyone). This can also be dropped without any hurt feelings.
Credit is appreciated if you use! I've got some credits of my own, I tried to keep track during the build process and will expand if more come to me. I kept this in the code too so it's easy to keep together!
Thank you to:
- TheSylphIsIn: comparing chosen items against an array
- Lunos: ChooseItem
- Ketsuban: Debug Menu / basics of windows
- MrGriffin: example-screen
- Ghoulslash: item icons
- Grunt-Lucas: Inspiration & Sample-UI
- & of course the good people of the PRET and Team Aqua discords! If you're part of those communities and help out, thank you!!!