Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds code entry functionality. This is the functional skeleton to support event scripting where the player enters a string that gets checked against a specified list, and actions are taken depending on what the string matches.
This implementation does not include any event script changes, but it does include a thorough guide on how to use the two new specials
EnterCode
andGetCodeFeedback
in event scripting. All functionality for the codes themselves is also left to the user, and a tutorial for how to add your own is included in the aforementioned guide.In very abbreviated, you can use the following in an event script:
To prompt the player with a text box for entry and compare that entry against results.
GetCodeFeedback
is flexible such that you can perform operations using C code for particular code entry in that function, or use the results it returns to lead to specific event scripting, for things that may be better handled in scripts (ie.givemon
). The tutorial document covers examples of both of these cases.People who collaborated with me in this PR
@PCG06 for the Mystery Gift iteration
Discord contact info
@Pawkkie