Skip to content

Useful Eventchkinf flag renames - #2807

Open
Olvivi wants to merge 6 commits into
zeldaret:mainfrom
Olvivi:name-flags
Open

Useful Eventchkinf flag renames#2807
Olvivi wants to merge 6 commits into
zeldaret:mainfrom
Olvivi:name-flags

Conversation

@Olvivi

@Olvivi Olvivi commented Aug 27, 2026

Copy link
Copy Markdown

Found some eventchkinf flags that have a wide enough range it's valuable to know what they mean on sight.
Gerudo caught/Tower collapse flag retains both names because it's actively used for both cases; Zelda (z_En_zl3) will clear the flag for use in z_demo.

40 = OBTAINED_ZELDA_LETTER (+index)
45 = MASTER_SWORD_PULLED
80 = ZELDA_FLED_CASTLE
C7 = GERUDO_CAUGHT_TOWER_FALL
(Added comment to C7 in save.h)

@Dragorn421 Dragorn421 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR!
some small comments

Comment thread include/save.h Outdated
Comment thread include/save.h Outdated
#define EVENTCHKINF_42 0x42
#define EVENTCHKINF_43 0x43
#define EVENTCHKINF_45 0x45
#define EVENTCHKINF_MASTER_SWORD_PULLED 0x45

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like naming this "PULLED" could be interpreted as a "is master sword not in pedestal" flag, which would only be true as adult, instead of what this flag is which is "has master sword been gotten once yet"
maybe:

Suggested change
#define EVENTCHKINF_MASTER_SWORD_PULLED 0x45
#define EVENTCHKINF_OBTAINED_MASTER_SWORD 0x45

it doesn't look like there's another flag for "has obtained master sword" based on the surrounding of Item_Give(play, ITEM_SWORD_MASTER); in z_bg_toki_swd.c so this should be fine?

Comment thread include/save.h Outdated
@Dragorn421 Dragorn421 added the One approval Has one approval, can be merged in 48 hours if nothing else comes up label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

One approval Has one approval, can be merged in 48 hours if nothing else comes up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants