Repository navigation
Triggers
Keep in mind that triggers that mess around with the game's window (i.e. Minimize Game, Move Window, Resize Game) may not work properly with Wayland.
Trigger that freezes the game for an amount of time. Has a parameter named freezeframeLag, which determines if the freeze is actually just freezeframes or is something closer to a real lag spike. The duration of the freeze should be inputted in seconds. By default, freezeframeLag is false.
Trigger that, when entered, creates a message box with buttons that set a flag upon being pressed.messageBoxTitle is the title of the box, messageBoxMessage is the message in it, and messageBoxButtons takes a comma-separated list of button text and the associated flag, formatted as buttonText:flag.
Trigger that minimizes the game window when entered.
Trigger that moves the game window to the specified position when entered. duration takes in a floating point value that determines the duration of the moving animation. It can be set to 0 to remove the animation entirely.
The position should be inputted as a number in the range [0, 1], where 0 is the top left of the screen and 1 is the bottom right.
It might be preferable to place a Resize Game Trigger before a Move Window Trigger, as the former sets the game to windowed*. Note that if the trigger is set to move to the position it's already at, it's going to cause pretty bad lag on Linux.
* i did try to do that in the move window trigger itself but it doesn't work properly, it might be a linux only issue but i have no clue and it's not like i can test it easily
Trigger that, when entered, opens the system's default text editing app with whatever message is specified in notepadText.
Trigger that draws a "popup" when entered. It is in high resolution. The popup consists of one rectangle that is the "main" part of the popup (that is either a solid color or an image), another slightly larger rectangle behind it that is meant to resemble a window border, a fake "close" button and text.
Parameters:
popupPos - the position of the "main" part of the popup.
popupWidth - the width of the "main" part of the popup.
popupHeight - the height of the "main" part of the popup.
customImagePath - path to an image that becomes the "main" part of the popup. The path starts from the Gameplay folder (example: decals/MapperName/MapperMap/image (the file extension should not be included.)). The image overrides both the solid color popup and the text, so if you want text add it to the image itself. Scales according to popupWidth and popupHeight rather than the image's actual size. Is in high resolution.
popupColor - the color of the "main" part of the popup as a hexcode.
popupCustomImageTint - the color of the tint on the image as a hexcode.
popupBorderColor- the color of the "border" of the popup as a hexcode. The color is the only parameter of the "border", as its position and scale are tied to the position and scale of the "main" part of the popup.
popupText - the text on popup. Insert \n in the text for a line break.
popupTextScale - the scale of the text. Unlike the border's scale, it's not tied to the scale of the "main" part of the popup, so feel free to go nuts with it if you feel like it.
popupTextPos - the position of the text. Also not tied to the "main" part of the popup.
popupTextColor - the color of the text as a hexcode.
popupTextShadowSize - the size of the "shadow" effect on the text. Leave as 0 if you don't want it.
popupTextShadowColor - the color of the "shadow" effect on the text as a hexcode.
popupTextOutlineSize - the size of the outline of the text. Leave as 0 if you don't want it. Note: if you're using it together with the shadow, the way it will look like is the outline will be around the shadow.
popupTextOutlineColor - the color of the outline of the text as a hexcode.
keepOpen - a toggle responsible for the visibility of the popup upon exiting the trigger. If left off, the popup will disappear when the player exits the trigger. If turned on, then it will persist until the player either dies or enters a new room.
Trigger that resizes the game window when entered. If the game is in fullscreen, it is set to windowed first. The scale and position should be inputted as a number in the range [0, 1], where 0 is minimum size/top left of the screen and 1 is the maximum size/bottom right of the screen.