# Cram-o-Matic 2020-08-29

Pokémon Essentials Version
This script adds in the Cram-o-Matic, the combinational machine from the SwSh Isle of Armor DLC.

You only need to call pbCramOMatic in an event, and the script will allow you to pick 4 items to convert. Canceling early returns the items.

Only items in CRAMOMATIC_ITEMDATA can be chosen.

CRAMOMATIC_ITEMDATA contains entries where the key is the symbol for the item and the value is an array of the item type (doesn't actually have to be a type) and the value of the item.

There are a few hard coded recipes, and the generic type based recipes are defined in CRAMOMATIC_TYPERECIPIES.

CRAMOMATIC_TYPERECIPIES contains entries where the key is the type (doesn't have to be a type) and the value is an array of item symbols. The array has to be the same length as CRAMOMATIC_RATIO. You can set a slot as an array of item symbols to pick one at random.
Credits
Vendily and KyureJL
Author
Vendily
77
Views
78
First release
Last update
Rating
0 ratings