i need a way to make a custom tier named "Dppt-Ita", which contains certain pokemons but with restrictions on their moves and/or movesets. example: i want garchomp to be "OU DPPt-Ita", but only without Outrage and without Yache Berry. (I do not know if there is already a way to do it, but if there is, please tell me)
It can only be done by script atm(blocking entry to battle with a pokemon with those moves/items). coyotte is going to expand the tier system in the future though.
but if i make a script to block outrage on garchomp, then it works also in uber tier, and i don't want that to happen. there is a way to ban a certain move only for a certain tier?
sys.tier(player number) checks the tier of the player who has that number. So you'd have to substitute player number for source if you wanted to check for the player who is challenging and target if you want to check the player who is the target of the challenge.
Code (text): ({ ... beforeChallengeIssued(src, dest) { if (sys.tier(src) == "dppt-ita" && sys.tier(dest) == "dppt-ita") { for (var i = 0; i < 6; i++) { if (sys.pokemon(sys.teamPoke(src, i)) == "Garchomp" && sys.hasPokeMove(src, i, sys.moveNum("Outrage"))) { sys.sendMessage(src, "You can't battle in tier dppt-ita with a garchomp that has outrage"); sys.stopEvent(); return; } if (sys.pokemon(sys.teamPoke(dest, i)) == "Garchomp" && sys.hasPokeMove(dest, i, sys.moveNum("Outrage"))) { sys.sendMessage(src, "Your opponent has a garchomp that has outrage"); sys.stopEvent(); return; } } .... } } ... )} Sorry for the indent, I typed it directly (and didn't test it) but that's the gist of it. Any more debate on the scripts and the topic will be moved to Scripts, also with how the script is done it has to match the tier (here in lowercase) exactly. If the tier is "DPPT-ITA", replace "dppt-ita" by "DPPT-ITA". You also have to add something similar in beforeBattleMatchup, for findBattle.
I'm not sure if hasPokeMove was only added recently or not, but make sure you have the latest server version.
the correct function was hasTeamPokeMove it works now :) (how do i check a particular hidden power? like hidden power [grass]?)
Hidden Power Grass banned on certain Pokemon? Wait, what? I'm not entirely sure IVs can be checked via script ( yet? ), but I could be wrong.
Well I'm sure it could just be made so you can check the type of Hidden Power instead of storing all IV spreads in memory. Since it has to be recognised in the team builder and in battle anyway. IVs & Evs would be great though.
I'll add EVs and IVs. That'll also be helpful for eventual RPG scripts. Hidden Power is imo very specific and not needed as a built in function!