textadventures / quest

Create text adventure games
http://textadventures.co.uk/quest
MIT License
301 stars 70 forks source link

Should not all timers suspend during an ASK event? #790

Closed xordevoreaux closed 9 years ago

xordevoreaux commented 9 years ago

The player has lit a match. When the match is lit, it has a set number of clock ticks before the match burns out (approximately 20 seconds).

While pondering the question below, which has absolutely nothing to do with the match, the match that the player lit earlier finally burns out. Should not all timers suspend while the player is reading a yes/no question?

put candle in backpack The candle may flame out if you place it in the Object: test_backpack. Place the candle there anyway? 1: Yes 2: No The match burns out completely, leaving nothing behind.

alexwarren commented 9 years ago

I don't really see why they should? How is this any different to anything else that happens in a game?

On 10 April 2015 at 14:02, xordevoreaux notifications@github.com wrote:

The player has lit a match. When the match is lit, it has a set number of clock ticks before the match burns out (approximately 20 seconds).

While pondering the question below, which has absolutely nothing to do with the match, the match that the player lit earlier finally burns out. Should not all timers suspend while the player is reading a yes/no question?

put candle in backpack The candle may flame out if you place it in the Object: test_backpack. Place the candle there anyway? 1: Yes 2: No The match burns out completely, leaving nothing behind.

— Reply to this email directly or view it on GitHub https://github.com/textadventures/quest/issues/790.

xordevoreaux commented 9 years ago

Things decay around the player if they don't do anything. The player is penalized in the above scenario for "not doing anything" for taking the time to read the question.

alexwarren commented 9 years ago

I still don't see the difference. If you want something to happen after 20 seconds, then something will happen after 20 seconds. If the player looks at an object, I wouldn't expect the timer to pause while they read the object description.

If you want to pause the timer during an ask, then just add a script to do so, and re-enable it afterwards. I don't think this would be desirable behaviour for every game, and I don't want to clutter up the "ask" syntax by making it an option.

On 10 April 2015 at 14:04, xordevoreaux notifications@github.com wrote:

Things decay around the player if they don't do anything. The player is penalized in the above scenario for "not doing anything" for taking the time to read the question.

— Reply to this email directly or view it on GitHub https://github.com/textadventures/quest/issues/790#issuecomment-91549326 .

xordevoreaux commented 9 years ago

I put a disable and enable timer before and after the ask question, the match burned out anyway, even after disabling the timer.

I'll post a note on the forums, maybe someone can help with the code for that.

alexwarren commented 9 years ago

Make sure you're enabling the timer in the ask response script, so it only fires after the player chooses something. If you just put it immediately after the ask script, it will get immediately re-enabled before the player responds.

On 10 April 2015 at 14:13, xordevoreaux notifications@github.com wrote:

I put a disable and enable timber before and after the ask question, the match burned out anyway, even after disabling the timer.

I'll post a note on the forums, maybe someone can help with the code for that.

— Reply to this email directly or view it on GitHub https://github.com/textadventures/quest/issues/790#issuecomment-91552327 .

xordevoreaux commented 9 years ago

The timer seems to be arrested, and I'm getting a scope issue, apparently, getting an error, but that's a different problem, I'll post those on the forums. Thanks Alex.