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 a PAPI formula option to Other challenge types. #376

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

tastybento
Copy link
Member

@tastybento tastybento commented Feb 12, 2025

Completes #366

Adds an option to the Other challenge type to evaluate a formula that contains PAPI placeholders (using the provided Player as context). The expression is expected to be a series of numeric comparisons (using =, <>, <=, >=, <, >) joined by optional Boolean operators AND and OR.

For example: "%aoneblock_my_island_lifetime_count% >= 1000 AND %Level_aoneblock_island_level% >= 100"

If any placeholder evaluates to a non-numeric value or the formula is malformed, false is returned. There must be a space between placeholders and any operands.

@tastybento tastybento linked an issue Feb 12, 2025 that may be closed by this pull request
2 tasks
@tastybento tastybento merged commit 39addca into develop Feb 12, 2025
3 checks passed
@tastybento tastybento deleted the papi branch February 12, 2025 12:24
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.

Challenge condition supports PlaceholderAPI
1 participant