Showdown Calculator - hzla/Pokeweb-Live GitHub Wiki

Showdown Calculator

Clicking Battle Calculator will export data and take you to a custom fork of the showdown battle calculator. Pokemon changes (bst, typing, nature, abilities), and move changes (base power, typing, multihit) and trainer sets are auto imported. Changes sometimes require hard refreshing (cntrl + shift + r) the browser before they appear.

Sets will autopopulate with Level, Trainer Class, Trainer Name, and Location encountered in the game if the trainer uses a trainer script (script 3000 + trainer_id for singles, 5000 + trainer_id for doubles). This means trainers that utilize non global scripts to start battles will not have their location shown (ex. gym leaders).

Additional settings can be found in pokeweb/calculator_settings.json.

// pokeweb will only export sets that match these conditions

{
	"min_ivs": 0, // 0 - 255
	"has_items": [0,1], // [0] for no, [1] for yes, [0,1] for both
	"has_moves": [0,1], // [0] for no, [1] for yes, [0,1] for both
	"battle_types": ["Singles", "Doubles", "Triples", "Rotation"], // "Singles", "Doubles", "Triples", "Rotation"
	"ai_values": [7,135]
}

Publishing Calculator

If you would like to share the calculator after importing your set data, click "Publish Calc" on the top right of the nav bar. Then follow these steps.

Step 1: Copy the data on the next screen

Step 2: Go to https://www.npoint.io/ and click 'Create Json Bin'

Step 3: Paste your data onto the left and click Save on the top right

Step 4: Copy the characters after /docs/ in the URL

Step 5: Your calculator is now available at: https://hzla.github.io/Dynamic-Calc/?data=REPLACE_THIS_WITH_DATA_FROM_STEP_4&gen=5&types=5