By Giik — February 2, 2019
Returns a setting of the current match. This includes rule overrides by custom stages. If the rule override for time is set to 0 (disabling the timer), then SET_TIMER will still return the normal time setting.
Argument | Type | Description |
---|
setting | :real | The match setting to check. |
▼ Indexes Reference
SET_STOCKS
SET_TIMER
SET_TEAMS
SET_TEAMATTACK
SET_HITBOX_VIS
SET_SEASON
SET_RUNES
SET_PRACTICE
SET_TURBO
SET_SCALING
Example, called from a stage’s init.gml:
waves_left = get_match_setting( SET_TIMER );
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Overrides the camera position. Use the functions
view_get_xview() Reference→
and
view_get_yview() Reference→
for the arguments if you don’t want to override them. The camera will be restricted to the edges of the stage in base game stages, but will be fully unlocked on workshop stages.
Argument | Type | Description |
---|
x | :real | The X coordinate to set the camera to |
y | :real | The Y coordinate to set the camera to |
Example, called from animation.gml:
if (activated_kill_effect && state_cat != SC_HITSTUN ) {
set_view_position(x, y - (char_height / 2) );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Forces the match to end. All arguments are optional, and not providing any arguments will trigger overtime in the event of a tie. Any placements not supplied will be calculated normally. Use -1 in an argument if you want that placement to be skipped and calculated normally as well.
Argument | Type | Description |
---|
first | :real | [optional] The winning player. Must be between 1 and 4. |
second | :real | [optional] The player in second place. Must be between 1 and 4. |
third | :real | [optional] The player in third place. Must be between 1 and 4. |
fourth | :real | [optional] The player in fourth place. Must be between 1 and 4. |
Example, called from a stage’s article1_update.gml:
var touch = instance_place(x, y, oPlayer);
if touch != noone {
end_match( touch.player );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Calls the scripts user_event0.gml – user_event15.gml from the mod’s scripts folder, within the context of the instance using this function and the script it’s used in.
Argument | Type | Description |
---|
num | :real | The number of the user event script to run. Must be between 0 and 15. |
Example, called from attack_update.gml:
if (attack == AT_USPECIAL && window == 2 && window_timer == 1) {
user_event( 2 );
}
if (attack == AT_FSPECIAL && window == 4 == window_timer == 1) {
user_event( 2 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Prints a custom message to the error log. The error log can be toggled by pressing Ctrl+F8 anywhere in the game.
Argument | Type | Description |
---|
message | :string | The message to print |
Example, called from init.gml:
print_debug( “Hello, world!” );
Categories: Functions, Programming, Workshop | Comments: 0