Recipe Type
All mix recipe is formatted as an array containing objects with the following properties.
Animation
dict
string
required
Animation dictionary.
clip
string
required
Animation clip.
flag
number
0
Animation flag.
scenario
string
nil
Must specify either scenario or dict
.
Ingredient
name
string
required
Item name
label
string
required
Item label
count
number
required
Item count
imagePath
string
nil
If not specified, name
.png will be used
UsedEventHandler
event
string
Event name
func
function
Function can be specially created
export
string
Export name
onRecipeUsed
duration
number
Time after which the item will be available again and onEffectOver
will be triggered (default: 10000)
onEffectOver
Recipe
active
boolean
Whether the weed type is active (default: true).
label
string
Descriptive label for the recipe.
itemName
string
Name of the item to be given to inventory when mixed and usable
imagePath
string
If not specified, .png will be used
level
number
Minimum level required to produce the item
reputationLevel
number
Minimum reputation level required to produce the item
removeAfterUsed
boolean
Set to true to remove the item after it has been used
description
string
Description of the recipe
policeAlertChange
number
Percentage of police dispatch when something is mixed on the table
Examples
[1] = {
itemName = 'drug_sprint',
label = 'Drug Sprint Dust',
imagePath = 'drug.png',
reputationLevel = 1,
ingredients = {
{ count = 3, name = 'sativa_leaf', label = 'Sativa Leaf' },
{ count = 3, name = 'indica_leaf', label = 'Indica Leaf' },
},
description = 'Increases your speed for a short time',
removeAfterUsed = true,
onUsed = {
duration = 15000,
client = {
event = 'wasd-mixweed:recipe:onUseDrugSpring',
},
},
},
Last updated