Skip to content
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

Added "EXACT_" optional prefix to RTS's ON_CONDITION flag #578

Merged

Conversation

akaAgar
Copy link
Contributor

@akaAgar akaAgar commented Oct 5, 2023

Added "EXACT_" optional prefix to RTS's ON_CONDITION flag.
Returns true only when value exactly matches the value in brackets (unlike the default "greater or equal").

Should be mostly useful with counters, but can also be used to trigger something when player has exactly 4 shells/30 health/50 armor/etc left.

Works with all numerable conditions: health, armour, ammo, power (seconds left), inventory and counter.

Examples:
ON_CONDITION EXACT_AMMO2(4)
ON_CONDITION EXACT_HEALTH(25)

@dashodanger dashodanger added needs testing Changes that are large in nature or could affect compatibility implementation Change or improvement to how an existing feature is implemented and removed needs testing Changes that are large in nature or could affect compatibility labels Oct 5, 2023
@dashodanger dashodanger merged commit 994bf15 into edge-classic:master Oct 5, 2023
5 checks passed
@dashodanger
Copy link
Member

Looks good; appreciate the PR. I'll continue to update the changelog as these are folded in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementation Change or improvement to how an existing feature is implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants