Skip to content

Conversation

@wlaub
Copy link
Contributor

@wlaub wlaub commented Sep 15, 2024

This adds a couple of flags to the ShroomBookInteraction entity.

enableFlag determines whether the entity appears on load and can be used the make the entity only appear in a room under specific circumstances or show a different image depending on a flag (by having two entities with inverse enableFlag conditions). The flag can be inverted with a ! prefix so that the entity only appears when the flag is false.

readFlag is set or cleared after the player finishes reading. This can be used to trigger other events using an activator trigger (here is an example using the flag to trigger a dialogue response to the note https://www.youtube.com/watch?v=CvndGXE4KXk). The flag can be prefixed with ! to clear it instead of setting it.

@wlaub wlaub marked this pull request as draft October 24, 2024 01:23
@wlaub wlaub marked this pull request as ready for review November 15, 2024 00:43
Not sure if we really need to do this anymore, but if we have both sets of plugins then might as well
Whitespace cleanup + remove unused field + check for empty flags more robustly. Also add some defaults to parameters so we don't break our Open function
@bigkahuna443
Copy link
Collaborator

Did some clean-up + added Ahorn support. Thanks for the contribution!

@bigkahuna443 bigkahuna443 merged commit 785fc74 into CommunalHelper:dev Dec 27, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants