#define scr_errorHandling // If a error occurs show a message and exit the game. // This script is run at every step. It only performs a simple check so will not be too inefficient. { if(error_occurred == true) { sound_play(snd_error); // Play a beep sound // Set the error message text. Use chr(13) for a new line. wd_message_set_text('An error has occurred. Please send an e-mail to the game developer at tdc1@btinternet.com and attach the game_errors file located in the folder Hunger was installed. E-mail address also given in "Getting Help" section of User Manual.' + chr(13) + chr(13) + 'Click Abort to exit the game.'); wd_message_show(wd_mk_error, wd_mb_abort, wd_mb_none, wd_mb_none); // Show an error message with only a Abort button game_end(); // Exit the game when button clicked } }