increpare / PuzzleScript

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

Lose Condition #544

Closed shadowtime2000 closed 3 years ago

shadowtime2000 commented 4 years ago

Is it possible that a lose condition could be added? Like a timer or just a condition like the win condition?

increpare commented 4 years ago

Hi, thanks for the suggestion!

Why would you want a lose condition? Could you give some examples? What would you want a lose condition to be, and how would it differ from triggering the restart command [cf. https://www.puzzlescript.net/documentation/rules.html] ?

Timers are not something I want to add in without some very strong use-cases. I feel people would use them to make games-with-time-limits that I would not have any interest in playing. I try to avoid giving people tools that (IMO) are very easy to misuse, and this sounds like it might be one of them.

Am Mo., 13. Juli 2020 um 01:58 Uhr schrieb shadowtime2000 < notifications@github.com>:

Is it possible that a lose condition could be added? Like a timer or just a condition like the win condition?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/increpare/PuzzleScript/issues/544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADRVYDM6HFGE5ANML3MU4DR3JE2JANCNFSM4OYBCZ4Q .

shadowtime2000 commented 4 years ago

Using the restart command would send them back to their last checkpoint. What I am saying is a command or something so you can just end the game.

increpare commented 3 years ago

Just doing a review of feature requests. Apologies for the delay. You didn't answer my questions, and I don't find the suggestion in the abstract very compelling given the considerations I already wrote, so I'm closing this for now.

Thanks for the suggestion nonetheless,

S

soggychips commented 2 years ago

Hi @increpare !

I have a want for a lose condition, where if there are no players left on the field (they fall into a hole), then the level should restart.

I note that under the rules page, counting is a difficulty, and I assume this is why something like late [no Player] -> restart wouldn't do the trick (I tried this and it just restarts constantly).

Perhaps there's a way this can be solved w/ the existing ruleset?

increpare commented 2 years ago

you can have a temporary token that's removed if there's a player and use it to trigger restart

late random [ ] -> [ temporarytoken ] (place one temporary token somewhere) late [player] [temporarytoken] -> [ player ] [] (remove token if there's a player) late [ temporarytoken] -> restart (if no token was removed)

soggychips commented 2 years ago

Ah, that's great! Thank you!