increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 159 forks source link

Level ends when removing Player while displaying a message during an again trigger. #55

Closed Hand-E-Food closed 10 years ago

Hand-E-Food commented 10 years ago

I've found a problem where the level is ending without a win condition. It seems to occur if the Player is removed on the same turn a message is displayed and an again is triggered. No "Win Condition Satisfied" message is displayed but the game moves to the next level.

Here's an example: http://www.puzzlescript.net/editor.html?hack=9124914

The win condition is "no Trigger". There is no rule that ever removes the Trigger, but the level ends when you stand on it.

increpare commented 10 years ago

woah, good catch! thanks for reporting this :)

On Thu, Feb 20, 2014 at 11:00 PM, Hand-E-Food notifications@github.comwrote:

I've found a problem where the level is ending without a win condition. It seems to occur if the Player is removed on the same turn a message is displayed and an again is triggered. No "Win Condition Satisfied" message is displayed but the game moves to the next level.

Here's an example: http://www.puzzlescript.net/editor.html?hack=9124914

The win condition is "no Trigger". There is no rule that ever removes the Trigger, but the level ends when you stand on it.

Reply to this email directly or view it on GitHubhttps://github.com/increpare/PuzzleScript/issues/55 .