Retagging
Joim ,
Snaquaza , and
OiawesomeDG for this (Because I know they have servers :3)
THE CORRECT CODE MKIV
Code: {
name: "Metagamiate",
section: "Other Metagames",
ruleset: ['Pokemon', 'Standard', 'Team Preview'],
banlist: ['Uber', 'Soul Dew', 'Gengarite', 'Kangaskhanite', 'Lucarionite'],
onModifyMove: function(move, pokemon) {
if (move.type === 'Normal' && move.id !== 'hiddenpower' && ((pokemon.ability !== 'refrigerate' && pokemon.ability !== 'pixilate' && pokemon.ability !== 'aerilate') || pokemon.ignore['Ability'])) {
var typeData = pokemon.getTypes(true).join('/');
for (var i=0, l=pokemon.typesData.length; i<l; i++) {
if ((pokemon.typesData[i].type === 'Normal') || (pokemon.typesData[i].type === 'Fighting') || (pokemon.typesData[i].type === 'Flying') || (pokemon.typesData[i].type === 'Poison') || (pokemon.typesData[i].type === 'Ground') || (pokemon.typesData[i].type === 'Rock') || (pokemon.typesData[i].type === 'Bug') || (pokemon.typesData[i].type === 'Ghost') || (pokemon.typesData[i].type === 'Steel') || (pokemon.typesData[i].type === 'Fire') || (pokemon.typesData[i].type === 'Water') || (pokemon.typesData[i].type === 'Grass') || (pokemon.typesData[i].type === 'Electric') || (pokemon.typesData[i].type === 'Psychic') || (pokemon.typesData[i].type === 'Ice') || (pokemon.typesData[i].type === 'Dragon') || (pokemon.typesData[i].type === 'Dark') || (pokemon.typesData[i].type === 'Fairy')) {
var potato = pokemon.typesData[i].type;
break;
}
}
move.type = potato;
if (move.volatileStatus) {
var volatileStorage = move.volatileStatus;
} else {
var volatileStorage = [];
}
move.volatileStatus = 'choicelock';
}
},
onBasePowerPriority: 9,
onBasePower: function(basePower, attacker, defender, move) {
if (move.volatileStatus === 'choicelock') {
return this.chainModify([0x14CD, 0x1000]);
move.volatileStatus = volatileStorage;
}
}
},This is the correct code, designed by me with a small amount help from
Snaquaza [Playtesting] and
The Immortal [offering me advice on how to tackle the power increase] when needed. This code re-introduces the potato, making it better than ever. The problem with the Semi-correct code were that the suppress types caused the Pokemon's type to become ???, which is the reason I had to set stab to true. The choicelock status checks the Pokemon's move. If it's normal type, it sets its BP to a higher amount. Otherwise, nothing happens.
This code is 100% ready for implementation on servers. Place it in your formats.js file to make it work. If there are any bugs, VM/PM me and I'll attempt to fix them.
BUG: Sheer Force messes up the game. FIXED BY REMOVING THE SECONDARY EFFECT
Thanks for reading, Metagamiate fans and others alike, and have a nice day.
This took a good chunk out of a few days to code ~_~
Last edited: Apr 12, 2014