18,700
edits
m (→game (miscellaneous): added note on save_game) |
m (→game (miscellaneous): hey kids, want to screw with your save-game file?) |
||
Line 311: | Line 311: | ||
*restore_game (null) - restores the game - restore_game | *restore_game (null) - restores the game - restore_game | ||
*save_game save_point:int [type:string{"autosave"}] - saves the game - save_game 1 autosave | *save_game save_point:int [type:string{"autosave"}] - saves the game - save_game 1 autosave | ||
''The only thing which passing in "autosave" as the third parameter accomplishes is playing the save sound effect and displaying the message "Game saved." No other value for this parameter has special meaning.'' | ''save_point is restricted to the range 0-10, but only values 1-10 are expected to be passed in. If you pass in "0", the error "invalid save point" will print on the console line but Oni will actually create "Save Point 0" under that level (or "Save Point -1" in the case of Chapter 1!). Loading SP0 is equivalent to clicking on the level title.<br>The only thing which passing in "autosave" as the third parameter accomplishes is playing the save sound effect and displaying the message "Game saved." The game will be saved with or without it. No other value for this parameter has special meaning.'' | ||
*splash_screen texture:string - displays a splash screen - splash_screen warehouse_splash_screen | *splash_screen texture:string - displays a splash screen - splash_screen warehouse_splash_screen | ||
*tr_stop_lookup - bla bla bla | *tr_stop_lookup - bla bla bla |