• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

What do the "pqg" letters mean in the teambuilder-tables movesets?

Status
Not open for further replies.
I was looking around in the developer tools just for the heck of it. I'm a developer so this stuff intrigues me. I found teambuilder-tables and noticed a master collection of all pokemon and the moves they learn. I can obviously tell that 12345678 refer to the gen, but some moves have a "p", "q", or "g" and I can't figure out for the life of me what they mean.

If that information's proprietary or something, then that's fine. I'm just curious and thought I'd ask. I also noticed that for example, Bisharp has "cut" in his list and the value is "5678p". Cut isn't a valid move in gen 8 anymore, it gets removed when you transfer him over. Why does "8" appear in that value string?
 
This isn't actually something you would typically make an entire thread about (really, #sim-dev in https://spo.ink/dev or the Development room on PS are probably more appropriate for this kind of simple question).

A better data source for learnsets is in the server repo: https://github.com/smogon/pokemon-showdown/blob/master/data/learnsets.js. This is relatively easier to grok and contains a description for the encoding https://github.com/smogon/pokemon-showdown/blob/master/sim/global-types.ts#L66-L87. The teambuilder-tables.js file on the client is generated off of this: https://github.com/smogon/pokemon-showdown-client/blob/master/build-tools/build-indexes#L751-L825, and contains your answer:

JavaScript:
if (gens.indexOf(6) >= 0) learnsets[id][moveid] += 'p';
if (gens.indexOf(7) >= 0 && !vcOnly) learnsets[id][moveid] += 'q';
if (gens.indexOf(8) >= 0) learnsets[id][moveid] += 'g';

Why those letters in particular were chosen is beyond me.
 
This isn't actually something you would typically make an entire thread about (really, #sim-dev in https://spo.ink/dev or the Development room on PS are probably more appropriate for this kind of simple question).

A better data source for learnsets is in the server repo: https://github.com/smogon/pokemon-showdown/blob/master/data/learnsets.js. This is relatively easier to grok and contains a description for the encoding https://github.com/smogon/pokemon-showdown/blob/master/sim/global-types.ts#L66-L87. The teambuilder-tables.js file on the client is generated off of this: https://github.com/smogon/pokemon-showdown-client/blob/master/build-tools/build-indexes#L751-L825, and contains your answer:

JavaScript:
if (gens.indexOf(6) >= 0) learnsets[id][moveid] += 'p';
if (gens.indexOf(7) >= 0 && !vcOnly) learnsets[id][moveid] += 'q';
if (gens.indexOf(8) >= 0) learnsets[id][moveid] += 'g';

Why those letters in particular were chosen is beyond me.
The P stands for pentagon, to label the moves that native Kalos/gen 6 Hoenn-born Pokemon can have in the gen 6 VGC formats, the q is Plus (couldn't use p again for obvious reasons) to label native Alola-born for gen 7 VGC formats, the g is Galar since theres no actual symbol for native galar-born Pokemon, but it is the move that are legal in gen 8 VGC formats.

This is used to filter out moves in the teambuilder for a specific mon that are past-gen only. For example, it filters out Virtual Console moves in Gen 6/7.
 
the g is Galar since theres no actual symbol for native galar-born Pokemon, but it is the move that are legal in gen 8 VGC formats.

there is a symbol, it's this:
Galar_symbol.png
 
The P stands for pentagon, to label the moves that native Kalos/gen 6 Hoenn-born Pokemon can have in the gen 6 VGC formats, the q is Plus (couldn't use p again for obvious reasons) to label native Alola-born for gen 7 VGC formats, the g is Galar since theres no actual symbol for native galar-born Pokemon, but it is the move that are legal in gen 8 VGC formats.

This is used to filter out moves in the teambuilder for a specific mon that are past-gen only. For example, it filters out Virtual Console moves in Gen 6/7.

Oh, wow. That makes perfect sense now that it's been laid out like that. Thanks

This isn't actually something you would typically make an entire thread about (really, #sim-dev in https://spo.ink/dev or the Development room on PS are probably more appropriate for this kind of simple question).

A better data source for learnsets is in the server repo: https://github.com/smogon/pokemon-showdown/blob/master/data/learnsets.js. This is relatively easier to grok and contains a description for the encoding https://github.com/smogon/pokemon-showdown/blob/master/sim/global-types.ts#L66-L87. The teambuilder-tables.js file on the client is generated off of this: https://github.com/smogon/pokemon-showdown-client/blob/master/build-tools/build-indexes#L751-L825, and contains your answer:

JavaScript:
if (gens.indexOf(6) >= 0) learnsets[id][moveid] += 'p';
if (gens.indexOf(7) >= 0 && !vcOnly) learnsets[id][moveid] += 'q';
if (gens.indexOf(8) >= 0) learnsets[id][moveid] += 'g';

Why those letters in particular were chosen is beyond me.

Thank you for the links!
 
Status
Not open for further replies.
Back
Top