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

info from zero on IN stage 6 select MSG stuff #10

Open
ExpHP opened this issue Jul 3, 2022 · 0 comments
Open

info from zero on IN stage 6 select MSG stuff #10

ExpHP opened this issue Jul 3, 2022 · 0 comments

Comments

@ExpHP
Copy link
Owner

ExpHP commented Jul 3, 2022

text_top_line and text_bottom_line (19/20) merely set the top/bottom lines of text and don't have any selection box specific code. They could totally be used for dialogue.

selection_box (21) triggers the selection box menu and writes your choice to a field in the MsgVM

msg_read_selected (22) copies the choice field from the MsgVM to a bitfield in the game manager and then uses it as an index to start a different msg script.
Since that game manager bitfield isn't read anywhere else unless you're ending stage 5, the selection box could totally be used elsewhere to have arbitrary interactive dialogue.
Also, that bitfield is actually two bits for some reason. It only writes a 0 or 1 to it though, since there're two choices.

@ExpHP ExpHP changed the title info from zero on IN info box MSG stuff info from zero on IN stage 6 select MSG stuff Jul 3, 2022
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

No branches or pull requests

1 participant