-
Notifications
You must be signed in to change notification settings - Fork 998
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
Formatting event constants #267
Comments
There's some subjectivity in which ranges of unused constants to skip. For example, the Pallet Town events could have skipped the 5 ones from
|
I think this would improve the readability a lot, and having them grouped by map is nice. As far as the subjective things, I think it's okay to not skip a few unused events which are sandwiched in the middle of a map as long as there are not too many (perhaps less than 8). Two questions/concerns: Will the The way things are now, it's very easy to add new events and be fully confident that you have not accidentally shifted old events up or down - because you just edit existing lines rather than add new lines. |
Yes, it would prevent skipping backwards; details are in pret/pokecrystal#739 (comment).
Since there are so many unused events available, it's probably better to encourage inserting new events into the unused gaps, than to append them after all the rest of the events (unlike with adding a new sprite, item, move, etc). So there could be a fixed |
In the pokecrystal issues I proposed a
const_skip
macro to help define long constant sequences that have large unused gaps. The events in pokered would be a good use case: of 2,560 constants, only 504 are used. They also look organized by map.For example:
(Maybe it would look better with the
; skips N events
comments on their own lines above theconst_skip
s.)The
; X City events
comments would also be a convenient place to mention the current address (whether as a raw hex value or as an offset fromwEventFlags
), without needing a comment on every singleEVENT_*
line.The text was updated successfully, but these errors were encountered: