ImpowerGames / impower

An all-in-one, community-powered indie development platform that gives creative people the tools they need to bring their ideas to life.
https://www.impower.app
2 stars 1 forks source link

choice in conditional is not considered part of the block of choices if you place it at the end, choices after the conditional are not considered part of the block #165

Open Broderick-Colin opened 2 years ago

Broderick-Colin commented 2 years ago

Describe the bug Choice in conditional is not considered part of a block of choices if you place it at the end, but is considered part of the block of choices if you place it in the middle

Steps To Reproduce

This code you only get 4 choices (no secret door)

# RootSection
var DoorsOpened = 3

## Puzzle

Pick a door to open!

You've opened {DoorsOpened} doors
_
- Open Door # 1 > Door1
- Open Door # 2 > Door2
- Open Door # 3 > Door3
+ I don't want to! > Continue
* if (DoorsOpened >= 3):
  - Open the secret door > secret_door

In this code you get 5 choices (find the secret door)

# RootSection
var DoorsOpened = 3

## Puzzle

Pick a door to open!

You've opened {DoorsOpened} doors
_
- Open Door # 1 > Door1
- Open Door # 2 > Door2
- Open Door # 3 > Door3
+ I don't want to! > Continue
* if (DoorsOpened >= 3):
  - Open the secret door > secret_door

In this code you get 3 choices (no secret door, no exit)

# RootSection
var DoorsOpened = 3

## Puzzle

Pick a door to open!

You've opened {DoorsOpened} doors
_
- Open Door # 1 > Door1
- Open Door # 2 > Door2
- Open Door # 3 > Door3
* if (DoorsOpened >= 3):
  - Open the secret door > secret_door
+ I don't want to! > Continue

Screenshots image

lovelle-cardoso commented 2 years ago

@LemBurnstein Fixed by c70167c