Cut Segment from "I Built a Working Computer Inside Pokémon Sapphire"
Added 2024-05-29 19:01:01 +0000 UTCAfter completing the logic gates, half-adder, and 4-bit adder in Sapphire, I decided to try my hand at making a fully functional calculator in Emerald. This is a very classic exercise when learning any programming language, so I was interested to see how it would translate within the gen 3 scripting language. Turns out; it's pretty bad!
However, I wouldn't call this a complete waste of time. This exercise, which required over 500 lines of code, has taught me a TON about how gen 3 stores memory addresses and assigns variables. I don't want to tease too much, but this has given me a rather good idea for a video where I don't give myself any limitations on what I can add as custom code to Emerald... Stay tuned :)
Comments
Yup! This is absolutely possible. The game stores flags dynamically, so you can set a flag in one NPC dialogue box and then reference it in another. Not sure if it works between maps, though. That needs testing
adef
2024-06-17 17:56:40 +0000 UTCCould you make it so the first value is input at one NPC and the second is input at a different NPC? Thanks, adef.
Psychipir
2024-06-01 10:23:07 +0000 UTCI feel like you going insane for each video is now a prerequisite. Which... maybe it shouldn't be? But also maybe you're just tapping into your mad scientist roots, education style.
Sara Regensburger
2024-05-30 14:13:35 +0000 UTC