Changeable Conditions - #8707
Merged
Merged
Conversation
APickledWalrus
requested review from
UnderscoreTud and
erenkarakal
and removed request for
a team
June 16, 2026 21:22
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
sovdeeth
requested changes
Jun 22, 2026
sovdeeth
approved these changes
Aug 16, 2026
Efnilite
requested changes
Sep 30, 2026
Efnilite
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
For some time, we have been recommending a combination of Condition+Effect in favor of a boolean Expression. However, there is some loss of ease of use:
toggle the player's gliding stateset the player's gliding state to {_boolean}If Conditions were to support changing, these features could be restored in some manner, preserving the ease of use options provided by boolean Expressions.
Solution
This PR proposes a simple API for changing the values represented by conditions. This API is further extended by PropertyCondition to make implementing even easier.
I decided to allow any changer to be used, though some modes are likely pointless. We could instead have specific methods for whether
SETorRESETare allowed (as an example as those are probably the only realistic modes to support). I'd like opinions to tweak this.This API is then used by ExprWhether to allow changing conditions:
toggle whether player is glidingset whether the player is gliding to {_boolean}There is a large number of files changed as I implemented this for most conditions where it made sense.
Testing Completed
Some in-game testing. I added at least 40 new tests covering many of the updated conditions.
Supporting Information
n/a
Completes: none
Related: none
AI assistance: none