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

Refactor Actions to support more use-cases #316

Open
Zomis opened this issue Sep 10, 2022 · 0 comments
Open

Refactor Actions to support more use-cases #316

Zomis opened this issue Sep 10, 2022 · 0 comments
Assignees
Labels
actions dsl-core For improvements of the DSL approach to defining games enhancement New feature or request

Comments

@Zomis
Copy link
Owner

Zomis commented Sep 10, 2022

The current action system is not great when it comes to:

  • Making it easy to highlight available actions or available action options (some progress has been made in Make actions a part of view #175)
  • Choices with infinite possibilities (strings, numbers) but that should still be possible for AIs to choose something
  • "When you do X, it costs Y less"
  • "When you do X, it also does Y" or "When you do X, increase the effect by Y"
  • "When X happens, do Y instead"
  • Inform about why actions cannot be done
  • Being able to dynamically add or remove choice options

To solve this:

  • Store requirements and effects, connect them with a value, and allow other rules to change that value or override the requirement/effect
  • Keep track of rule requirements, actions, options, etc. and return results for each of them (which rule fails, why they're not allowed, how much damage was done, etc.)

Later:

  • Multiple choices that are not directly dependent on each other

  • "You may" choices that are optional and you have to suit yourself if you forget it

  • Allow actions to have multiple parallel choices at the same time

@Zomis Zomis added enhancement New feature or request dsl-core For improvements of the DSL approach to defining games actions labels Sep 10, 2022
Zomis added a commit that referenced this issue Sep 10, 2022
Zomis added a commit that referenced this issue Sep 13, 2022
Implements functionality for performing a regular action.
Wait with multiple choices and optional choices.
Currently no support for modifiers (should change with 3 instead of 2)
Zomis added a commit that referenced this issue Sep 13, 2022
@Zomis Zomis mentioned this issue Oct 17, 2022
@Zomis Zomis self-assigned this Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions dsl-core For improvements of the DSL approach to defining games enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant