https://www.smogon.com/dex/ss/formats/national-dex/What are the rules for national dex format and national dex AG? i hope that makes sense, like i guess its all mons but they have to use legal moves.
It's an option in the same section as level, gender, friendship and Shininess! There should be a dropdown to let you change it.How do I change a Pokemon's hidden power type in the teambuilder? When I change the IVs, it still says the type is dark.
It doesn't appear in gens 2 to 6. Is that intentional?It's an option in the same section as level, gender, friendship and Shininess! There should be a dropdown to let you change it.
However, it only appears if you've selected a format for the team where Hidden Power is legal - it's not there by default, even if the Pokémon knows Hidden Power. Try changing the team to National Dex OU or a Gen VII format:
View attachment 239283 < change the format like this
View attachment 239282 < this is where the dropdown will be
A general overview can be found here: https://github.com/smogon/pokemon-showdown/blob/master/sim/battle.ts#L490-L593 There unfortunately is no master list of event names, you can however look at the list of type definitions for some currently used one: https://github.com/smogon/pokemon-showdown/blob/master/sim/global-types.tsI've been reading documentation for adding a custom mode and i think I'm close to understanding how to do that, I just need to know where are all the events' name that I can add onEvent triggers on,
onSwitchIn, onSwitchOut are a few here, there isn't an event for type changes iirc, but there probably is a method on Pokemon objects. If not its probably done by changing pokemon.types and sending a protocal message back to the client.especially those where you can modify a move's type and switching in or out.
This would be a client side change. How it works for mega's, z-move's, and dynamax is it attaches an appropriate tag to the end of the choose command. For example, when dynamaxing and using Hydro Pump as Max Geyser, the command sent to the server isTo do so, I need to add a tick to the interface, similar to the box you can check to Dynamax your Pokémon the value of which is preserved and readable before and after you switch in or out, because the volatile status has to be added to the Pokémon that switches in. It could also totally replace the dynamax tick, the most important thing is that the value is preserved and readable after swtich out/in.
- How can I add this box?
/choose move hydropump max
. (To be clear thats for the initial turn ONLY, max isn't attached if your already dynamaxed as it tells the server you want to dynamax that turn). This would be quite a tricky change, as you would need to add support in sim/side.ts for receiving and understanding a new flag like this, as well as support in the rest of the simulator process for handling it including putting it in the battle queue, and handling parsing the new event.Depends on how you implement it, see above.- How can I read its value inside an "onEvent" trigger?
I dont understand this question sorry, can you try rephrasing it/explaining it further?- How can I know if the player has selected the first or second Pokémon to switch in after swtich in?
Yeah, it's out of date, http://play.pokemonshowdown.com/sprites/trainers will have up-to-date trainer spritesPretty sure this where I should post this... Trying to use the custom Guzma avatar, but when I use the command, I don't get the one posted on the website with all the sprites (him standing), but one of him couching instead. It doesn't seem to have another command. Unless what I'm looking at is out of date?
You can select the gender for each of your Pokémon in the teambuilder. It's only randomized if you haven't chosen one manually, since there isn't any meaningful way to assign a "default."I’d like to know why Gender is randomized each game, it’s kind of a bizarre deviation from cart. The only reason this came to mind is that I was passed a team with Rivalry Haxorus and it got me thinking.
You can select the gender for each of your Pokémon in the teambuilder. It's only randomized if you haven't chosen one manually, since there isn't any meaningful way to assign a "default."
Likely because most people won't bother to change it from the default, making Attract more viable than it is on cart where gender really is randomized.I guess the more accurate question is why is there a random option, why don't you have to commit to one before a battle?
I used to have the same issue two years ago (I reported it here and here) when I was using firefox and some other firefox users confirmed that they have it as well. After switching to Chrome it never appeared again.Hi when I am in the middle of a match and I switch to another tab (or even go to a PS tab like teambuilder) sometimes my screen will bug out and seemingly scroll down.
I also use Firefox, probably has to do with that, Its only happened recently which is interesting.
In your case you're probably looking for theI just need to know if there is a way to add a move to a Pokémon during a battle or right before it starts.
onBegin
event.Most existing event handlers are listed in theBoy, if we had an event list this would be a lot easier.
EventMethods
interface in sim/global-types.ts
. (There are several versions of them because many events only apply to the Pokémon whose Ability or Item is responding to the event rather than some other Pokémon, but a format only needs to use the basic handler name). Formats also get some extra events which are listed in the FormatsData
interface.Yeah, I already found it, but I can't manage to add a move on the go because I can't find a constructor for aIn your case you're probably looking for theonBegin
event.
MoveSlot
data structure.onChangeSet()
trigger, but the new move isn't recognised.