• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script: [v17/v18/v20/v21] Cram-o-Matic

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 (v17\18) or with the flag CramOMatic_TYPE_VALUE (v20\21) 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.

The CramOMatic_TYPE_VALUE flag has two variables:
TYPE is one of the CRAMOMATIC_TYPERECIPIES keys.
VALUE is the numerical point value of this item when combined
CramOMatic_POISON_2 is a valid flag.

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

v17\v18 download: https://pastebin.com/WzEceHRa
v20\v21 download: https://pastebin.com/SYpDn8zq
 
Last edited:
Back
Top