• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

  • 1,682
    Posts
    8
    Years
    • Seen yesterday
    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:
  • 1,682
    Posts
    8
    Years
    • Seen yesterday
    There was a missing entry in the Fairy Generic recipes, which would cause it to crash. If you downloaded the script in the last 2 hours, it will crash with 4 40 value items with a fairy type base.

    The script has been updated.
     
  • 1,682
    Posts
    8
    Years
    • Seen yesterday
    The script has been made compatible with v18, defining the symbols for the items that had their internal name changed between the versions.
    It will continue to function in v17.
     
  • 1,682
    Posts
    8
    Years
    • Seen yesterday
    I can't update the thread's title at the moment, but the script has been updated to support v20 and v21. (A while ago actually, I just forgot the thread was also posted here.)
     
    Back
    Top