SetCraftCheck
Decide before a crafting station starts.
Names a crafting station whose start waits for the mode: "alchemy" (the alchemy table), "smithing" (the anvil),
"sharpening" (the grindstone) or every station ("*"). When a player starts one, their game holds it and asks, and
OnPlayerCraft decides - false keeps the station from starting (nothing is used). on = false takes a name back.
Syntax
Section titled “Syntax”SetCraftCheck(station [, on])| Parameter | Type | |
|---|---|---|
station |
string | "alchemy", "smithing", "sharpening" or "*" |
on |
boolean | true (the default) to decide first, false to take it back (optional) |
Returns
Section titled “Returns”boolean - false for a station of another name
Example
Section titled “Example”SetCraftCheck("*", true) -- every station asks OnPlayerCraft firstSee also
Section titled “See also”OnPlayerCraft · IsCraftChecked · the Items and inventory group of the index
