FormToggle - Provismet/Gimme-That-Gimmick GitHub Wiki
A data component used exclusively by data-driven toggle items (id gimme-that-gimmick:data_driven_toggle
).
It describes the rules for a form change toggle.
Data Component Id
gimme-that-gimmick:form_toggle
Fields
Field | Type | Default | Description |
---|---|---|---|
validPokemon |
PokemonRequirements | Checks if a given Pokemon is valid to have its form toggled. | |
applyIf |
PokemonRequirements | Checks if the Pokemon is in its default state. If true the onApply features are used, otherwise the onRemove features are used. | |
onApply |
PokemonFeatures | Features applied to put the Pokemon in its special state. | |
onRemove |
PokemonFeatures | Features applied to put the Pokemon in its default state. | |
effects |
Identifier | Optional | The id of the EffectsData to play. |
Examples
Example of a toggle that swaps a Pokemon in and out of Alolan form.
"formToggle": {
"applyIf": {
"formShowdownIds": [
"normal"
]
},
"effects": "gimme-that-gimmick:alola_particles",
"featuresOnApply": {
"alolan": true
},
"featuresOnRemove": {
"alolan": false
},
"validPokemon": {
"formShowdownIds": [
"normal",
"alola"
],
"speciesShowdownIds": [
"raichu",
"muk",
"grimer",
"vulpix",
"ninetales",
"rattata",
"raticate",
"sandshrew",
"sandslash",
"diglet",
"dugtrio",
"meowth",
"persian",
"geodude",
"graveler",
"golem",
"exeggutor",
"marowak"
]
}
}