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

Generalize scenarios to have a sequence of objectives instead of a single win condition #378

Closed
byorgey opened this issue Jun 9, 2022 · 0 comments · Fixed by #585
Closed
Assignees
Labels
C-Moderate Effort Should take a moderate amount of time to address. G-Scenarios An issue having to do with scenario design, the way scenarios are described and loaded, etc. S-Moderate The fix or feature would substantially improve user experience. Z-Feature A new feature to be added to the game.

Comments

@byorgey
Copy link
Member

byorgey commented Jun 9, 2022

The goal would be to enable challenge scenarios with a sequence of conditions that have to be fulfilled in order. Once you complete the first objective, it enables the second objective, and so on.

At the same time, I'd like to generalize a win condition to come with some text which will be displayed in a dialog when the condition is fulfilled. i.e. right now it always says "Congratulations!" but we should be able to specify that along with the win condition. This could be used to display a specific congratulatory message, but also to explain what the next objective will be. I think we can also have a goal along with each condition which can be displayed somehow (see #356).

Right now we just have a text field win which should contain the text of a swarm program. I propose generalizing this to something like the following:

objectives:
  - condition: |
      try {
        as base {has "lambda"}
      } { return false }
    goal: See if you can find a lambda.
    message: Congratulations, you found a lambda!  Now, see if you can find a tree.
  - condition: |
      try {
        as base {has "tree"}
      } { return false }
    goal: Find a tree.
    message: Good work, now you're ready for the next challenge!

Together with #355 this would give a very flexible framework for constructing multi-step challenges, which would be especially helpful for #25 .

@byorgey byorgey added Z-Feature A new feature to be added to the game. C-Moderate Effort Should take a moderate amount of time to address. S-Moderate The fix or feature would substantially improve user experience. G-Scenarios An issue having to do with scenario design, the way scenarios are described and loaded, etc. labels Jun 9, 2022
@byorgey byorgey changed the title Generalize scenarios to have a sequence of win conditions Generalize scenarios to have a sequence of objectives instead of a single win condition Jun 10, 2022
@byorgey byorgey moved this to Todo in Alpha release Jun 11, 2022
@byorgey byorgey mentioned this issue Jun 12, 2022
@byorgey byorgey assigned byorgey and unassigned byorgey Jun 28, 2022
@byorgey byorgey self-assigned this Jul 20, 2022
@mergify mergify bot closed this as completed in #585 Jul 25, 2022
@mergify mergify bot closed this as completed in 42f1625 Jul 25, 2022
Repository owner moved this from Todo to Done in Alpha release Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Moderate Effort Should take a moderate amount of time to address. G-Scenarios An issue having to do with scenario design, the way scenarios are described and loaded, etc. S-Moderate The fix or feature would substantially improve user experience. Z-Feature A new feature to be added to the game.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant