Arguments: 1) real: left 2) real: top 3) real: right 4) real: bottom 5) real: minRenderPriorityI 6) real: maxRenderPriorityI
Sets the STG space frame with the given rectangle and minimum and maximum (integer) render priorities.
Default values are (32, 16, 416, 464, 20, 80).
Return Type: real
Returns the current score.
Arguments: 1) real: score
Adds the given value to the score.
Return Type: real
Returns the current graze count.
Arguments: 1) real: graze
Adds the given value to the graze count.
Return Type: real
Returns the current amount of point items collected.
Arguments: 1) real: point
Adds the given value to the point count.
Return Type: real
Gets the difficulty level of all running scripts.
Arguments: 1) real: difficulty
Sets the difficulty level of all scripts, affecting both currently running scripts and future started ones.
The following values should be used for functions like vdif to make sense:
0 = Easy 1 = Normal 2 = Hard 3 = Lunatic
Arguments: 1) any: args... Return: any: value
Returns the argument value at the index equivalent to the difficulty level (uses GetDifficulty internally).
If the index is out of bounds, the last argument will be returned.
This allows you to return the last argument in cases where you want every difficulty beyond a certain one to have the same value.
Example:
let value1 = [2, 4, 6, 8][GetDifficulty()]; let value2 = vdif(2, 4, 6, 8); // same result as the above line let value3 = vdif(4, 16); // if difficulty >= 1 (Normal), 16 will be returned
Arguments: 1) real: renderPriorityI
Sets the render priority for enemies, on a 0 to 100 scale.
Default is 40.
Arguments: 1) real: renderPriorityI
Sets the render priority for items, on a 0 to 100 scale.
Default is 60.
Arguments: 1) real: renderPriorityI
Sets the render priority for shots, on a 0 to 100 scale.
Default is 50.
Return Type: real
Returns the lowest render priority for the STG frame, on a 0 to 100 scale.
Default is 20.
Return Type: real
Returns the highest render priority for the STG frame, on a 0 to 100 scale.
Default is 80.
Returns: real: priorityI
Returns the render priority for enemies, on a 0 to 100 scale.
Return Type: real
Returns the render priority for items, on a 0 to 100 scale.
Return Type: real
Returns the render priority for shots, on a 0 to 100 scale.
Return Type: real
Returns the render priority for the player, on a 0 to 100 scale.
Return Type: real
Returns the highest render priority the 2D camera can affect, on a 0 to 100 scale.
Default is 79.
Return Type: real
Returns the leftmost coordinate of the STG frame (playing field).
Default is 32.
Return Type: real
Returns the topmost coordinate of the STG frame (playing field).
Default is 16.
Return Type: real
Returns the width of the STG frame (playing field).
Default is 384.
Return Type: real
Returns the height of the STG frame (playing field).
Default is 448.
Return Type: real
Returns the width of the screen (resolution) as defined in the .def.
Default is 640.
Return Type: real
Returns the height of the screen (resolution) as defined in the .def.
Default is 480.
Return Type: real
Returns the largest screen width defined in the .def.
If only one screen size is defined, this has the same effect as GetScreenWidth.
Return Type: real
Returns the largest screen height defined in the .def.
If only one screen size is defined, this has the same effect as GetScreenHeight.
Return Type: real
Returns the current width of the window.
Return Type: real
Returns the current height of the window.
Return Type: array[array[real]]
Returns an array of all supported resolutions [width, height, refreshRate].
Return Type: bool
Returns true if a replay is playing, otherwise returns false.
Return Type: bool
Adds the path to use when reading files from an archive file.
Returns true if the archive was successfully read, otherwise returns false.
Return Type: bool
Returns true if the game is currently in skip (fast-forward) mode, otherwise returns false.
Returns: bool: bRunning
Returns true in any script if a package script is running, otherwise returns false.
Returns: bool: bComplete
Returns true if all load thread events have completed.
Note: This should not be used to yield; during a stage, since this will cause replay desync, but yielding on package loading screens should be fine.
Arguments: 1) real const: configType 2) varies: ... (varargs args) Return Type: varies
Deprecated: Use the DnhConfig_ functions instead.
Returns a value from dnh's current config data based on the given config type.
Arguments: 1) real const: configType 2) varies: ... (varargs args)
Deprecated: Use the DnhConfig_ functions instead.
Sets a value to dnh's current config data based on the given config type.
Note: This will persist for the rest of the session, but in order to be saved, SaveDnhConfigFile must be called.
Return Type: real
Returns the window style from DnhConfig.
(fullscreen, windowed)
Return Type: real
Returns the window size index from DnhConfig.
This is an index into the window size list defined in rdnh.def.
Return Type: real
Returns the frameskip mode from DnhConfig
(1/1, 1/2, 1/3, Automatic)
Return Type: bool
Returns a boolean indicating whether or not vertical sync is enabled in DnhConfig.
Return Type: bool
Returns a boolean indicating whether or not borderless fullscreen mode is enabled in DnhConfig.
Return Type: bool
Returns a boolean indicating whether or not integer scaling for borderless fullscreen mode is enabled in DnhConfig.
Note: In official Touhou this is known as "DOT by DOT" mode.
Return Type: real
Returns the currently set pad index, chosen from the list of pads displayed in config.exe.
Arguments: 1) real const: virtualKeyID Return Type: real array
Returns an array of info about the given virtual key in DnhConfig.
[keyboardKey, padIndex, padButton]
Return Type: bool
Returns a boolean indicating whether or not the LogWindow is enabled in DnhConfig.
Return Type: bool
Returns a boolean indicating whether or not logging to a file is enabled in DnhConfig.
Return Type: bool
Returns a boolean indicating whether or not mouse visibility is enabled in DnhConfig.
Arguments: 1) real const: valueIndex Return Type: bool
Returns a user-defined real number value that was saved within DnhConfig at a given index. 8 user-defined indices (0-7) are available.
Arguments: 1) real const: style
Sets the window style in DnhConfig.
(fullscreen, windowed)
Arguments: 1) real: windowSizeIndex
Sets the window size index in DnhConfig.
This is an index into the window size list defined in rdnh.def.
Arguments: 1) real const: mode
Sets the frameskip mode in DnhConfig.
Arguments: 1) bool: enable
Enables or disables vertical sync in DnhConfig.
Arguments: 1) bool: enable
Enables or disables borderless fullscreen mode in DnhConfig.
Arguments: 1) bool: enable
Enables or disables integer scaling for borderless fullscreen mode is enabled in DnhConfig.
Note: In official Touhou this is known as "DOT by DOT" mode.
Arguments: 1) real: padIndex
Sets the pad index, chosen from the list of pads displayed in config.exe.
Arguments: 1) real const: virtualKeyID 2) real const: keyboardKey 3) real: padIndex 4) real: padButton
Maps a virtual key to a keyboard key and/or pad button.
Note: The pad button can be acquired from CheckPadState()
Arguments: 1) bool: enable
Enables or disables the LogWindow in DnhConfig.
Arguments: 1) bool: enable
Enables or disables logging to files in DnhConfig.
Arguments: 1) bool: enable
Enables or disables mouse visibility in DnhConfig.
Arguments: 1) real: index 2) real: value
Sets a user-defined real number value that is saved within DnhConfig at a given index. 8 user-defined indices (0-7) are available.
Return Type: bool
Saves the current config data to the module directory and returns true if successful.
This file is named config.dat by default.
Return Type: string
Returns the window title defined in rdnh.def (WindowTitle)
Return Type: string
Returns the package script path defined in rdnh.def (PackageScriptMain)
Return Type: 2D real array
Returns an array of screen sizes defined in rdnh.def in the format: [[x, y], [x, y], [etc]]
This will be the screen size defined for each aspect ratio (Screen_4_3, Screen_16_9, etc)
Return Type: 2D real array
Returns the full array of window sizes defined in rdnh.def in the format: [[x, y], [x, y], [etc]]
Return Type: real
Returns the default window size index.
This is the index of the window size to start with by default when no config data exists.
Arguments: 1) string: title
Sets the window title.
If an empty string is passed, the initial window title will be restored.