Scripts Talk:Skippable wait

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Bob the Hamster: Maybe this one should go into the standard library?

The Mad Cacti: Ah, I'd changed my mind and was going to suggest that myself. I guess it probably should...

Except I'm not totally happy with it as it is. Shouldn't it skip on esc/alt as well? Or why not all keys?

Bob the Hamster: I don't remember why I ignored ESC/ALT. I think the only reason I didn't check all keys was because I didn't want random key mashing (keyboard cat) to advance it, but that is a frivolous concern. I think the ultimate version of this would check all keys and all joystick buttons, and it would return true if the skip occurred, and false if the wait expired normally.