SakeTami
adef
adef

patreon


Cut Segment from "I Built a Working Computer Inside Pokémon Sapphire"

After 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

Could you make it so the first value is input at one NPC and the second is input at a different NPC? Thanks, adef.

Psychipir

I 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


More Creators