Puzzle Combination Lock
Enter the correct code by pressing buttons/levers in sequence
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
puzzleType | PuzzleType | COMBINATION_LOCK | —Значения:BLOCK_PUSHLASER_GRIDMEMORY_SEQUENCELEVER_ORDERPATTERN_PLACEMENTCOOP_PRESSUREITEM_FRAMECOMBINATION_LOCKPEDESTAL_OFFERING |
fact | Ref<CachableFactEntry> | — | — |
amount | Var<Int> | 1 | — |
timeLimit | Var<Int> | 0 | — |
cooldownOnFail | Var<Int> | 0 | — |
maxAttempts | Var<Int> | 0 | — |
resetOnWrong | Var<Boolean> | true | — |
showHints | Var<Boolean> | true | — |
hintMessage | Var<String> | <yellow>Enter the correct code sequence! {progress}/{total} | Chat message sent after each step of the puzzle when hints are on. {progress} is the steps done, {total} the steps needed. Leave it empty to send nothing.ПлейсхолдерыЦвета |
completionMessage | Var<String> | DEFAULT_PUZZLE_COMPLETION_MESSAGE | Chat message sent once to the player who solves the puzzle. Leave it empty to send nothing.ПлейсхолдерыЦвета |
onStart | Ref<TriggerableEntry> | — | — |
onComplete | Ref<TriggerableEntry> | — | — |
onFail | Ref<TriggerableEntry> | — | — |
onTimeout | Ref<TriggerableEntry> | — | — |
onLifespanExpire | Ref<TriggerableEntry> | — | — |
lifespan | Var<Int> | 0 | — |
isShared | Var<Boolean> | false | Share the progression with the players of the group set on the fact: a step, a mistake or the solve by one player applies to the others. Needs a fact with a group; has no effect without one. |
activationRadius | Var<Double> | DEFAULT_PUZZLE_ACTIVATION_RADIUS | Detection radius in blocks. The lock only answers players standing in the world of the digits, within this radius. 0 = no distance limit (the world is still enforced). |
digits | List<Var<Position>> | empty | Digit button/lever positions. Digits are numbered from 0 in list order: the first position of the list is digit 0, the second is digit 1, and so on. |
code | List<Var<Int>> | empty | The unlock code as a list of digit numbers, counted from 0 like in the digits list. With 4 digits (0 to 3), [0, 2, 1, 3] means: press the 1st, 3rd, 2nd then 4th position of the digits list. A number outside 0 to (digits - 1) makes the lock ignore every press; the server log names it. |
digitPressSound | Sound | — | Sound played when a digit is pressed (correct step). |
wrongDigitSound | Sound | — | Sound played when a wrong digit is pressed. |
solveSound | Sound | — | Sound played on puzzle completion. |
Общие поля TypeWriter (criteria)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |