Resolve type effectiveness
get_type_matchupResolve Pokémon type effectiveness: get a damage multiplier for attacking type vs defending type/species, view offensive coverage, defensive weaknesses, or the full 18x18 chart.
Instructions
Resolve type effectiveness in the mode the arguments imply: attacker + defender returns the single multiplier (the defender may be a type or a species, whose current-generation typing is used); attacker alone returns that type's offensive coverage against all 18 types; defender alone returns everything the defender takes, including 4x weaknesses and immunities; neither returns the complete 18x18 matrix. Use get_type for a type's own defensive entry, and analyze_team when the question spans a whole team. Names are case-insensitive; an unknown type or species returns an isError. Read-only and offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attacker | No | Attacking type name; omit to read the chart from the defender's side or to get the full matrix. | |
| defender | No | Defending type or species name; a species contributes its current-generation types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present only alongside `chart`, spelling out how to read the full matrix (rows are attackers, columns are defenders) and the multiplier scale. | |
| chart | No | Present only when neither argument was given: the full type chart as `chart[attackingType][defendingType] = multiplier`, each inner map keyed by the 18 defending type names with values 0, 0.25, 0.5, 1, 2, or 4. | |
| label | No | `effectiveness` in words, e.g. "2x super effective", "neutral", "immune"; present only when both attacker and defender were given. | |
| attacker | No | The attacker as supplied, echoed back; absent when no attacker argument was given. | |
| coverage | No | Present only when an attacker was given without a defender: how that attacking type lands against each of the 18 defending types, keyed by defending type name ("Bug", "Dark", "Dragon", "Electric", "Fairy", "Fighting", "Fire", "Flying", "Ghost", "Grass", "Ground", "Ice", "Normal", "Poison", "Psychic", "Rock", "Steel", "Water"). | |
| defender | No | Resolved defender name — the type or species the multipliers were computed against; present in the matchup and defender-only replies. | |
| damageTaken | No | Present only when a defender was given without an attacker: everything the defender takes, keyed by attacking type name. Combined typing is folded in, so 4x and 0.25x entries appear for dual types and 0 marks immunities. | |
| defenderTypes | No | The defending typing the multiplier was computed from, e.g. ["Dragon", "Ground"] for Garchomp or ["Steel"] for a type; present in the matchup and defender-only replies. | |
| effectiveness | No | Single multiplier for attacker against defender (0, 0.25, 0.5, 1, 2, or 4); present only when both attacker and defender were given. |