Skill Check
`skillCheck(difficulty, inputs)` → `boolean`
Blocking. Shows a skill check and waits for the result. Returns true on success, false on failure.
difficulty — a string preset, a custom table, or an array of either for multi-round checks:
| Value | Description |
|---|---|
'easy' |
areaSize = 50, speedMultiplier = 1.0 |
'medium' |
areaSize = 40, speedMultiplier = 1.5 |
'hard' |
areaSize = 25, speedMultiplier = 1.75 |
{ areaSize = n, speedMultiplier = n } |
Custom values |
{ 'easy', 'hard', ... } |
Multi-round array |
inputs — table of key strings the player must press. Defaults to { 'e' }.
-- Single round
local success = exports['amzn_uikit']:skillCheck('medium', { 'e', 'f' })
-- Multi-round
local success = exports['amzn_uikit']:skillCheck({ 'easy', 'medium', 'hard' })
-- Custom difficulty
local success = exports['amzn_uikit']:skillCheck({ areaSize = 35, speedMultiplier = 1.3 })`cancelSkillCheck()`
Cancels the active skill check programmatically.
`skillCheckActive()` → `boolean`
Returns whether a skill check is currently active.
Previews
GLASS
