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.
Key changes
mas_utils.stdout_as
- useful when using python functions that only print to stdout, likedis.dis
.mas_globals.this_ev
- this is set to the current Event object incall_next_event
. Like howpersistent.current_monikatopic
is set to the label, but the EV is not persistent. NOTE: Since this is only set incall_next_event
, its not accurate when using delegate topics. If a delegated topic wants to use this, the delegate topic should set the variable accordingly.Testing
mas_globals.this_ev
is set to the correct event object when viewing regular, non-delegate topics (or greetings/farewells, and anything else that usescall_next_event
). Also verify the var is set to None in all other cases.Don't really have any in-game testing instructions for the util function. You could paste this in the console if you want to try it out:
then open the text file and see bytecode. (If you are launching with renpy SDK, this code will write the file in the root of the SDK's folder)