This function will show a custom string as an error message and give the option to abort the game afterwards if necessary.
NOTE: THIS FUNCTION IS FOR DEBUG USE ONLY.
show_error(str, abort);
参数 | 描述 |
---|---|
str | The string to show in the pop-up message. |
abort | Whether to abort (true) or not (false). |
N/A(无返回值)
if room != rm_Dungeon
{
show_error("Error: Went to wrong area. Aborting game.", true);
}
The above code will check to see if the room that the player is in is "rm_Dungeon" and if not it will show an error message and force the user to abort the game.