diff --git a/examples/addSimpleInventory.js b/examples/addSimpleInventory.js new file mode 100644 index 0000000..3302b6b --- /dev/null +++ b/examples/addSimpleInventory.js @@ -0,0 +1,13 @@ + +// Checkout the repo examples to get an idea of other ways you can use scripting +// https://github.com/latitudegames/Scripting/blob/master/examples + +const modifier = (text) => { + + state.inventory = [{name: 'candy', quantity: 1}, {name: 'Turtles', quantity: 240}] + + return { text } +} + +// Don't modify this part +modifier(text)