Skill Checks
Customize the skill check triggered when player is maintaining a still. Requires a boolean return (true/false)
-- This function is called when the player is maintaining the still
---@return boolean -- Return true if the player passed the skillcheck
function StillSkillcheck()
-- https://github.com/Legends-Rising/legends-keypress
return exports['legends-keypress']:startkp(math.random(8, 10), math.random(6, 8))
endCustomize the skill check triggered when player is stirring a mash. Requires a boolean return (true/false)
-- This function is called when the player is mixing the mash
---@return boolean -- Return true if the player passed the skillcheck
function MashSkillcheck()
-- https://github.com/Legends-Rising/legends-keypress
return exports['legends-keypress']:startkp(math.random(15, 20), math.random(12, 16))
endEquipment Placement
This function is triggered when a player attempts to place equipment. It will pass a string 'Still' or 'Mash' and expects a boolean return. You can use this to prevent players from placing equipment for whatever reason that you decide.
Can Interact
This function is triggered when someone completes a UIPrompt provided by equipment they're interacting with. Expects a boolean returned.
Last updated