StartHack
The SD.StartHack
function initiates a hacking minigame based on the specified type and arguments. This function dynamically calls the appropriate minigame function based on the provided type, ensuring that the function name matches the minigame's corresponding export name.
Overview
Purpose: Starts a specified hacking minigame by dynamically calling the relevant function from the registered minigame exports.
Resource List
ps-ui
memorygame
ran-minigames
hacking
howdy-hackminigame
SN-Hacking
rm_minigames
Parameters
type (string): The type of hacking minigame to start (e.g., 'ps-circle', 'ps-maze', 'mhacking-start', etc.).
callback (function): The callback function to handle success or failure (optional).
... (any): Additional arguments to pass to the minigame function.
(arguments have to line up with what the minigame being called is e.g. if it's ps-maze, and ps-maze requires 3 arguments (time, show, fail for ex.) then you have to add three args for SD.StartHack)
Usage Example
Arguments
ps-circle:
{2, 20}
- Number of circles, Time in millisecondsps-maze:
{20}
- Time in secondsps-varhack:
{2, 3}
- Number of blocks, Time in secondsps-thermite:
{10, 5, 3}
- Time in seconds, Grid size, Incorrect blocksps-scrambler:
{numeric, 30, 0}
- Type, Time in seconds, Mirrored optionmemorygame-thermite:
{10, 3, 3, 10}
- Correct blocks, Incorrect blocks, Show time in seconds, Lose time in secondsran-memorycard:
{120}
- Time in secondsran-openterminal:
{}
- No additional argumentshacking-opengame:
{15, 4, 1}
- Time in seconds, Number of blocks, Number of repeatshowdy-begin:
{3, 5000}
- Number of icons, Time in millisecondssn-memorygame:
{3, 2, 10000}
- Keys needed, Number of rounds, Time in millisecondssn-skillcheck:
{50, 5000, {'w', 'a', 's', 'w'}, 2, 20, 3}
- Speed in milliseconds, Time in milliseconds, Keys, Number of rounds, Number of bars, Number of safe barssn-thermite:
{7, 5, 10000, 2, 2, 3000}
- Number of boxes, Number of correct boxes, Time in milliseconds, Number of lives, Number of rounds, Show time in millisecondssn-keypad:
{999, 3000}
- Code number, Time in millisecondssn-colorpicker:
{3, 7000, 3000}
- Number of icons, Type time in milliseconds, View time in millisecondsrm-typinggame:
{easy, 20}
- Difficulty, Duration in secondsrm-timedlockpick:
{200}
- Speed valuerm-timedaction:
{3}
- Number of locksrm-quicktimeevent:
{easy}
- Difficultyrm-combinationlock:
{easy}
- Difficultyrm-buttonmashing:
{5, 10}
- Decay rate, Increment raterm-angledlockpick:
{easy}
- Difficultyrm-fingerprint:
{200, 5}
- Time in seconds, Number of livesrm-hotwirehack:
{10}
- Time in secondsrm-hackerminigame:
{5, 3}
- Length, Number of livesrm-safecrack:
{easy}
- Difficulty
Last updated