The following built-in functions are defined in RGSS.
Evaluates the provided block one time only.
Detects a reset within a block with a press of the F12 key and returns to the beginning if reset.
rgss_main { SceneManager.run }
Stops script execution and only repeats screen refreshing. Defined for use in script introduction.
Equivalent to the following.
loop { Graphics.update }
Loads the data file indicated by filename and restores the object.
$data_actors = load_data("Data/Actors.rvdata2")This function is essentially the same as:
File.open(filename, "rb") { |f| obj = Marshal.load(f) }
However, it differs in that it can load files from within encrypted archives.
Saves the object obj to the data file indicated by filename.
save_data($data_actors, "Data/Actors.rvdata2")This function is the same as:
File.open(filename, "wb") { |f| Marshal.dump(obj, f) }
Outputs the arguments to the message box. If a non-string object has been supplied as an argument, it will be converted into a string with to_s and output.
Returns nil.
Outputs obj to the message box in a human-readable format. Identical to the following code (see Object#inspect):
msgbox obj.inspect, "\n", obj2.inspect, "\n", ...
Returns nil.