Hello there, first post so be nice. I've been using AGS on and off since it was DOS but never with anything too scripty.
Anyway, basically I need a script that will play a random sound say (SOUND1 to SOUND10) when any key is hit. Preferably without the use of any character scripting as there wont be a mouse to use. I'll give you a bit of background:
Basically me and my friend have a tradition of building awesome bin's for our houseparties for birthdays etc. It started off pretty basic, but in an effort to continually top our previous bins we've decided for this one we want a bin that thanks you (i.e. plays random sound) every time you deposit something into it. The keyboard from an old computer will placed strategically at the bottom of the bin so it will be impacted every time a bottle or a can goes into it. Since we can't be entirely sure which key will be struck the script needs to apply to all of the keys.
Any help will be much appreciated as you'll be coding the new generation of Binotrons.
Anyway, basically I need a script that will play a random sound say (SOUND1 to SOUND10) when any key is hit. Preferably without the use of any character scripting as there wont be a mouse to use. I'll give you a bit of background:
Basically me and my friend have a tradition of building awesome bin's for our houseparties for birthdays etc. It started off pretty basic, but in an effort to continually top our previous bins we've decided for this one we want a bin that thanks you (i.e. plays random sound) every time you deposit something into it. The keyboard from an old computer will placed strategically at the bottom of the bin so it will be impacted every time a bottle or a can goes into it. Since we can't be entirely sure which key will be struck the script needs to apply to all of the keys.
Any help will be much appreciated as you'll be coding the new generation of Binotrons.