Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook memory RW to Lua #281

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Hook memory RW to Lua #281

merged 1 commit into from
Sep 17, 2023

Conversation

wheremyfoodat
Copy link
Owner

This lets us get our first mods running.
Example code (Decrement rupee counter by 1 in OoT)

-- Addresses storing rupees
rupees1_address = 0x050AF88
rupees2_address = 0x05879A0

-- Decrement both rupee counters by 1
write16(rupees1_address, read16(rupees1_address) - 1)
write16(rupees2_address, read16(rupees2_address) - 1)

@wheremyfoodat wheremyfoodat merged commit d3b9e50 into master Sep 17, 2023
5 checks passed
@wheremyfoodat wheremyfoodat deleted the lua branch September 17, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant