{ "cells": [ { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "\n", "moves = pd.read_csv(\"data/moves.csv\")\n", "text = moves[[\"Name\", \"Effect\"]]\n", "combined_move = text.apply(lambda x: x[\"Name\"] + \": \" + x[\"Effect\"], axis = 1).tolist()\n", "text = ' '.join(str(elem) for elem in combined_move)" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "\"Accelerock: The user smashes into the target at high speed. This move always goes first. Acrobatics: The user nimbly strikes the target. If the user is not holding an item, this attack inflicts massive damage. Aerial Ace: The user confounds the target with speed, then slashes. This attack never misses. Anchor Shot: The user entangles the target with its anchor chain while attacking. The target becomes unable to flee. Aqua Jet: The user lunges at the target at a speed that makes it almost invisible. This move always goes first. Aqua Tail: The user attacks by swinging its tail as if it were a vicious wave in a raging storm. Arm Thrust: The user lets loose a flurry of open-palmed arm thrusts that hit two to five times in a row. Assurance: If the target has already taken some damage in the same turn, this attack's power is doubled. Astonish: The user attacks the target while shouting in a startling fashion. This may also make the target flinch. Attack Order: The user calls out its underlings to pummel the target. Critical hits land more easily. Aura Wheel: Morpeko attacks and raises its Speed with the energy stored in its cheeks. This move's type changes depending on the user's form. Avalanche: The power of this attack move is doubled if the user has been hurt by the target in the same turn. Barb Barrage: The user launches countless toxic barbs to inflict damage. This may also poison the target. This moveâ\\x80\\x99s power is doubled if the target has a status condition. Beak Blast: The user first heats up its beak, and then it attacks the target. Making direct contact with the Pokémon while it's heating up its beak results in a burn. Beat Up: The user gets all party Pokémon to attack the target. The more party Pokémon, the greater the number of attacks. Behemoth Bash: The user becomes a gigantic shield and slams into the target. This move deals twice the damage if the target is Dynamaxed. Behemoth Blade: The user becomes a gigantic sword and cuts the target. This move deals twice the damage if the target is Dynamaxed. Bind: Things such as long bodies or tentacles are used to bind and squeeze the target for four to five turns. Bite: The target is bitten with viciously sharp fangs. This may also make the target flinch. Blaze Kick: The user launches a kick that lands a critical hit more easily. This may also leave the target with a burn. Body Press: The user attacks by slamming its body into the target. The higher the user's Defense, the more damage it can inflict on the target. Body Slam: The user drops onto the target with its full body weight. This may also leave the target with paralysis. Bolt Beak: The user stabs the target with its electrified beak. If the user attacks before the target, the power of this move is doubled. Bolt Strike: The user surrounds itself with a great amount of electricity and charges its target. This may also leave the target with paralysis. Bone Rush: The user strikes the target with a hard bone two to five times in a row. Bonemerang: The user throws the bone it holds. The bone loops around to hit the target twice—coming and going. Bounce: The user bounces up high, then drops on the target on the second turn. This may also leave the target with paralysis. Branch Poke: The user attacks the target by poking it with a sharply pointed branch. Brave Bird: The user tucks in its wings and charges from a low altitude. This also damages the user quite a lot. Breaking Swipe: The user swings its tough tail wildly and attacks opposing Pokémon. This also lowers their Attack stats. Brick Break: The user attacks with a swift chop. It can also break barriers, such as Light Screen and Reflect. Brutal Swing: The user swings its body around violently to inflict damage on everything in its vicinity. Bug Bite: The user bites the target. If the target is holding a Berry, the user eats it and gains its effect. Bulldoze: The user strikes everything around it by stomping down on the ground. This lowers the Speed stats of those hit. Bullet Punch: The user strikes the target with tough punches as fast as bullets. This move always goes first. Bullet Seed: The user forcefully shoots seeds at the target two to five times in a row. Ceaseless Edge: The user slashes its shell blade at the target, aiming to land a critical hit. Shell splinters left behind by this attack will continue to damage the target for several turns. Circle Throw: The target is thrown, and a different Pokémon is dragged out. In the wild, this ends a battle against a single Pokémon. Close Combat: The user fights the target up close without guarding itself. This also lowers the user's Defense and Sp. Def stats. Counter: A retaliation move that counters any physical attack, inflicting double the damage taken. Covet: The user endearingly approaches the target, then steals the target's held item. Crabhammer: The target is hammered with a large pincer. Critical hits land more easily. Cross Chop: The user delivers a double chop with its forearms crossed. Critical hits land more easily. Cross Poison: A slashing attack with a poisonous blade that may also poison the target. Critical hits land more easily. Crunch: The user crunches up the target with sharp fangs. This may also lower the target's Defense stat. Crush Claw: The user slashes the target with hard and sharp claws. This may also lower the target's Defense stat. Crush Grip: The target is crushed with great force. The more HP the target has left, the greater this move's power. Cut: The target is cut with a scythe or claw. Darkest Lariat: The user swings both arms and hits the target. The target's stat changes don't affect this attack's damage. Diamond Storm: The user whips up a storm of diamonds to damage opposing Pokémon. This may also sharply raise the user's Defense stat. Dig: The user burrows into the ground, then attacks on the next turn. Dire Claw: The user lashes out at the target with ruinous claws, aiming to land a critical hit. This may also leave the target poisoned, paralyzed, or drowsy. Dive: Diving on the first turn, the user floats up and attacks on the next turn. Double Hit: The user slams the target with a long tail, vines, or a tentacle. The target is hit twice in a row. Double Iron Bash: The user rotates, centering the hex nut in its chest, and then strikes with its arms twice in a row. This may also make the target flinch. Double Kick: The target is quickly kicked twice in succession using both feet. Double-Edge: A reckless, life-risking tackle in which the user rushes the target. This also damages the user quite a lot. Dragon Ascent: After soaring upward, the user attacks its target by dropping out of the sky at high speeds. But it lowers its own Defense and Sp. Def stats in the process. Dragon Claw: The user slashes the target with huge sharp claws. Dragon Darts: The user attacks twice using Dreepy. If there are two targets, this move hits each target once. Dragon Hammer: The user uses its body like a hammer to attack the target and inflict damage. Dragon Rush: The user tackles the target while exhibiting overwhelming menace. This may also make the target flinch. Dragon Tail: The target is knocked away, and a different Pokémon is dragged out. In the wild, this ends a battle against a single Pokémon. Drain Punch: An energy-draining punch. The user's HP is restored by half the damage taken by the target. Drill Peck: A corkscrewing attack that strikes the target with a sharp beak acting as a drill. Drill Run: The user crashes into its target while rotating its body like a drill. Critical hits land more easily. Drum Beating: The user plays its drum, controlling the drum's roots to attack the target. This also lowers the target's Speed stat. Dual Chop: The user attacks its target by hitting it with brutal strikes. The target is hit twice in a row. Dual Wingbeat: The user slams the target with its wings. The target is hit twice in a row. Dynamic Punch: The user punches the target with full, concentrated power. This confuses the target if it hits. Earthquake: The user sets off an earthquake that strikes every Pokémon around it. Endeavor: This attack move cuts down the target's HP to equal the user's HP. Explosion: The user attacks everything around it by causing a tremendous explosion. The user faints upon using this move. Extreme Speed: The user charges the target at blinding speed. This move always goes first. Facade: This attack move doubles its power if the user is poisoned, burned, or paralyzed. Fake Out: This attack hits first and makes the target flinch. It only works the first turn each time the user enters battle. False Surrender: The user pretends to bow its head, but then it stabs the target with its disheveled hair. This attack never misses. False Swipe: A restrained attack that prevents the target from fainting. The target is left with at least 1 HP. Feint: This attack hits a target using a move such as Protect or Detect. This also lifts the effects of those moves. Fell Stinger: When the user knocks out a target with this move, the user's Attack stat rises drastically. Fire Fang: The user bites with flame-cloaked fangs. This may also make the target flinch or leave it with a burn. Fire Lash: The user strikes the target with a burning lash. This also lowers the target's Defense stat. Fire Punch: The target is punched with a fiery fist. This may also leave the target with a burn. First Impression: Although this move has great power, it only works the first turn each time the user enters battle. Fishious Rend: The user rends the target with its hard gills. If the user attacks before the target, the power of this move is doubled. Fissure: The user opens up a fissure in the ground and drops the target in. The target faints instantly if this attack hits. Flail: The user flails about aimlessly to attack. The less HP the user has, the greater the move's power. Flame Charge: Cloaking itself in flame, the user attacks the target. Then, building up more power, the user raises its Speed stat. Flame Wheel: The user cloaks itself in fire and charges at the target. This may also leave the target with a burn. Flare Blitz: The user cloaks itself in fire and charges the target. This also damages the user quite a lot. This attack may leave the target with a burn. Fling: The user flings its held item at the target to attack. This move's power and effects depend on the item. Flip Turn: After making its attack, the user rushes back to switch places with a party Pokémon in waiting. Fly: The user flies up into the sky and then strikes its target on the next turn. Flying Press: The user dives down onto the target from the sky. This move is Fighting and Flying type simultaneously. Focus Punch: The user focuses its mind before launching a punch. This move fails if the user is hit before it is used. Force Palm: The target is attacked with a shock wave. This may also leave the target with paralysis. Foul Play: The user turns the target's power against it. The higher the target's Attack stat, the greater the damage it deals. Freeze Shock: On the second turn, the user hits the target with electrically charged ice. This may also leave the target with paralysis. Fury Attack: The target is jabbed repeatedly with a horn or beak two to five times in a row. Fury Cutter: The target is slashed with scythes or claws. This attack becomes more powerful if it hits in succession. Fury Swipes: The target is raked with sharp claws or scythes quickly two to five times in a row. Fusion Bolt: The user throws down a giant lightning bolt. This move's power is increased when influenced by an enormous flame. G-Max Befuddle: A Bug-type attack that Gigantamax Butterfree use. This move inflicts the poisoned, paralyzed, or asleep status condition on opponents. G-Max Cannonade: A Water-type attack that Gigantamax Blastoise use. This move continues to deal damage to opponents for four turns. G-Max Centiferno: A Fire-type attack that Gigantamax Centiskorch use. This move traps opponents in flames for four to five turns. G-Max Chi Strike: A Fighting-type attack that Gigantamax Machamp use. This move raises the chance of critical hits. G-Max Cuddle: A Normal-type attack that Gigantamax Eevee use. This move infatuates opponents. G-Max Depletion: A Dragon-type attack that Gigantamax Duraludon use. Reduces the PP of the last move used. G-Max Drum Solo: A Grass-type attack that Gigantamax Rillaboom use. This move can be used on the target regardless of its Abilities. G-Max Finale: A Fairy-type attack that Gigantamax Alcremie use. This move heals the HP of allies. G-Max Fireball: A Fire-type attack that Gigantamax Cinderace use. This move can be used on the target regardless of its Abilities G-Max Foam Burst: A Water-type attack that Gigantamax Kingler use. This move harshly lowers the Speed of opponents. G-Max Gold Rush: A Normal-type attack that Gigantamax Meowth use. This move confuses opponents and also earns extra money. G-Max Gravitas: A Psychic-type attack that Gigantamax Orbeetle use. This move changes gravity for five turns. G-Max Hydrosnipe: A Water-type attack that Gigantamax Inteleon use. This move can be used on the target regardless of its Abilities. G-Max Malodor: A Poison-type attack that Gigantamax Garbodor use. This move poisons opponents. G-Max Meltdown: A Steel-type attack that Gigantamax Melmetal use. This move makes opponents incapable of using the same move twice in a row. G-Max One Blow: A Dark-type attack that Gigantamax Urshifu use. This single-strike move can ignore Max Guard. G-Max Rapid Flow: A Water-type attack that Gigantamax Urshifu use. This rapid-strike move can ignore Max Guard. G-Max Replenish: A Normal-type attack that Gigantamax Snorlax use. This move restores Berries that have been eaten. G-Max Resonance: An Ice-type attack that Gigantamax Lapras use. This move reduces the damage received for five turns. G-Max Sandblast: A Ground-type attack that Gigantamax Sandaconda use. Opponents are trapped in a raging sandstorm for four to five turns. G-Max Smite: A Fairy-type attack that Gigantamax Hatterene use. This move confuses opponents. G-Max Snooze: A Dark-type attack that Gigantamax Grimmsnarl use. The user lets loose a huge yawn that lulls the targets into falling asleep on the next turn. G-Max Steelsurge: A Steel-type attack that Gigantamax Copperajah use. This move scatters sharp spikes around the field. G-Max Stonesurge: A Water-type attack that Gigantamax Drednaw use. This move scatters sharp rocks around the field. G-Max Stun Shock: An Electric-type attack that Gigantamax Toxtricity use. This move poisons or paralyzes opponents. G-Max Sweetness: A Grass-type attack that Gigantamax Appletun use. This move heals the status conditions of allies. G-Max Tartness: A Grass-type attack that Gigantamax Flapple use. This move reduces the opponents’ evasiveness. G-Max Terror: A Ghost-type attack that Gigantamax Gengar use. This Pokémon steps on the opposing Pokémon’s shadow to prevent them from escaping. G-Max Vine Lash: A Grass-type attack that Gigantamax Venusaur use. This move continues to deal damage to opponents for four turns. G-Max Volcalith: A Rock-type attack that Gigantamax Coalossal use. This move continues to deal damage to opponents for four turns. G-Max Volt Crash: An Electric-type attack that Gigantamax Pikachu use. This move paralyzes opponents. G-Max Wildfire: A Fire-type attack that Gigantamax Charizard use. This move continues to deal damage to opponents for four turns. G-Max Wind Rage: A Flying-type attack that Gigantamax Corviknight use. This move removes the effects of moves like Reflect and Light Screen. Gear Grind: The user attacks by throwing steel gears at its target twice. Giga Impact: The user charges at the target using every bit of its power. The user can't move on the next turn. Glacial Lance: The user attacks by hurling a blizzard-cloaked icicle lance at opposing Pokémon. Grassy Glide: Gliding on the ground, the user attacks the target. This move always goes first on Grassy Terrain. Grav Apple: The user inflicts damage by dropping an apple from high above. This also lowers the target's Defense stat. Guillotine: A vicious, tearing attack with big pincers. The target faints instantly if this attack hits. Gunk Shot: The user shoots filthy garbage at the target to attack. This may also poison the target. Gyro Ball: The user tackles the target with a high-speed spin. The slower the user compared to the target, the greater the move's power. Hammer Arm: The user swings and hits with its strong, heavy fist. It lowers the user's Speed, however. Head Charge: The user charges its head into its target, using its powerful guard hair. This also damages the user a little. Head Smash: The user attacks the target with a hazardous, full-power headbutt. This also damages the user terribly. Headbutt: The user sticks out its head and attacks by charging straight into the target. This may also make the target flinch. Headlong Rush: The user smashes into the target in a full-body tackle. This also lowers the userâ\\x80\\x99s defensive stats. Heat Crash: The user slams its target with its flame-covered body. The more the user outweighs the target, the greater the move's power. Heavy Slam: The user slams into the target with its heavy body. The more the user outweighs the target, the greater the move's power. High Horsepower: The user fiercely attacks the target using its entire body. High Jump Kick: The target is attacked with a knee kick from a jump. If it misses, the user is hurt instead. Hold Back: The user holds back when it attacks, and the target is left with at least 1 HP. Horn Attack: The target is jabbed with a sharply pointed horn to inflict damage. Horn Drill: The user stabs the target with a horn that rotates like a drill. The target faints instantly if this attack hits. Horn Leech: The user drains the target's energy with its horns. The user's HP is restored by half the damage taken by the target. Hyper Fang: The user bites hard on the target with its sharp front fangs. This may also make the target flinch. Hyperspace Fury: Using its many arms, the user unleashes a barrage of attacks that ignore the effects of moves like Protect and Detect. But the user's Defense stat falls. Ice Fang: The user bites with cold-infused fangs. This may also make the target flinch or leave it frozen. Ice Hammer: The user swings and hits with its strong, heavy fist. It lowers the user's Speed, however. Ice Punch: The target is punched with an icy fist. This may also leave the target frozen. Ice Shard: The user flash-freezes chunks of ice and hurls them at the target. This move always goes first. Icicle Crash: The user attacks by harshly dropping large icicles onto the target. This may also make the target flinch. Icicle Spear: The user launches sharp icicles at the target two to five times in a row. Iron Head: The user slams the target with its steel-hard head. This may also make the target flinch. Iron Tail: The target is slammed with a steel-hard tail. This may also lower the target's Defense stat. Jaw Lock: This move prevents the user and the target from switching out until either of them faints. The effect goes away if either of the Pokémon leaves the field. Knock Off: The user slaps down the target's held item, and that item can't be used in that battle. The move does more damage if the target has a held item. Land's Wrath: The user gathers the energy of the land and focuses that power on opposing Pokémon to damage them. Lash Out: The user lashes out to vent its frustration toward the target. If the user's stats were lowered during this turn, the power of this move is doubled. Last Resort: This move can be used only after the user has used all the other moves it knows in the battle. Leaf Blade: The user handles a sharp leaf like a sword and attacks by cutting its target. Critical hits land more easily. Leafage: The user attacks by pelting the target with leaves. Leech Life: The user drains the target's blood. The user's HP is restored by half the damage taken by the target. Lick: The target is licked with a long tongue, causing damage. This may also leave the target with paralysis. Liquidation: The user slams into the target using a full-force blast of water. This may also lower the target's Defense stat. Low Kick: A powerful low kick that makes the target fall over. The heavier the target, the greater the move's power. Low Sweep: The user makes a swift attack on the target's legs, which lowers the target's Speed stat. Lunge: The user makes a lunge at the target, attacking with full force. This also lowers the target's Attack stat. Mach Punch: The user throws a punch at blinding speed. This move always goes first. Max Airstream: This is a Flying-type attack Dynamax Pokémon use. This raises ally Pokémon's Speed stats. Max Darkness: This is a Dark-type attack Dynamax Pokémon use. This lowers the target's Sp. Def stat. Max Flare: This is a Fire-type attack Dynamax Pokémon use. The user intensifies the sun for five turns. Max Flutterby: This is a Bug-type attack Dynamax Pokémon use. This lowers the target's Sp. Atk stat. Max Geyser: This is a Water-type attack Dynamax Pokémon use. The user summons a heavy rain that falls for five turns. Max Hailstorm: This is an Ice-type attack Dynamax Pokémon use. The user summons a hailstorm lasting five turns. Max Knuckle: This is a Fighting-type attack Dynamax Pokémon use. This raises ally Pokémon's Attack stats. Max Lightning: This is an Electric-type attack Dynamax Pokémon use. The user turns the ground into Electric Terrain for five turns. Max Mindstorm: This is a Psychic-type attack Dynamax Pokémon use. The user turns the ground into Psychic Terrain for five turns. Max Ooze: This is a Poison-type attack Dynamax Pokémon use. This raises ally Pokémon's Sp. Atk stats. Max Overgrowth: This is a Grass-type attack Dynamax Pokémon use. The user turns the ground into Grassy Terrain for five turns. Max Phantasm: This is a Ghost-type attack Dynamax Pokémon use. This lowers the target's Defense stat. Max Quake: This is a Ground-type attack Dynamax Pokémon use. This raises ally Pokémon's Sp. Def stats. Max Rockfall: This is a Rock-type attack Dynamax Pokémon use. The user summons a sandstorm lasting five turns. Max Starfall: This is a Fairy-type attack Dynamax Pokémon use. The user turns the ground into Misty Terrain for five turns. Max Steelspike: This is a Steel-type attack Dynamax Pokémon use. This raises ally Pokémon's Defense stats. Max Strike: This is a Normal-type attack Dynamax Pokémon use. This lowers the target's Speed stat. Max Wyrmwind: This is a Dragon-type attack Dynamax Pokémon use. This lowers the target's Attack stat. Mega Kick: The target is attacked by a kick launched with muscle-packed power. Mega Punch: The target is slugged by a punch thrown with muscle-packed power. Megahorn: Using its tough and impressive horn, the user rams into the target with no letup. Metal Burst: The user retaliates with much greater force against the opponent that last inflicted damage on it. Metal Claw: The target is raked with steel claws. This may also raise the user's Attack stat. Meteor Assault: The user attacks wildly with its thick leek. The user can't move on the next turn, because the force of this move makes it stagger. Meteor Mash: The target is hit with a hard punch fired like a meteor. This may also raise the user's Attack stat. Mountain Gale: The user hurls giant chunks of ice at the target to inflict damage. Multi-Attack: Cloaking itself in high energy, the user slams into the target. The memory held determines the move's type. Night Slash: The user slashes the target the instant an opportunity arises. Critical hits land more easily. Nuzzle: The user attacks by nuzzling its electrified cheeks against the target. This also leaves the target with paralysis. Outrage: The user rampages and attacks for two to three turns. The user then becomes confused. Pay Day: Numerous coins are hurled at the target to inflict damage. Money is earned after the battle. Payback: The user stores power, then attacks. If the user moves after the target, this attack's power will be doubled. Peck: The target is jabbed with a sharply pointed beak or horn. Petal Blizzard: The user stirs up a violent petal blizzard and attacks everything around it. Phantom Force: The user vanishes somewhere, then strikes the target on the next turn. This move hits even if the target protects itself. Pin Missile: Sharp spikes are shot at the target in rapid succession. They hit two to five times in a row. Plasma Fists: The user attacks with electrically charged fists. This move changes Normal-type moves to Electric-type moves. Play Rough: The user plays rough with the target and attacks it. This may also lower the target's Attack stat. Pluck: The user pecks the target. If the target is holding a Berry, the user eats it and gains its effect. Poison Fang: The user bites the target with toxic fangs. This may also leave the target badly poisoned. Poison Jab: The target is stabbed with a tentacle, arm, or the like steeped in poison. This may also poison the target. Poison Sting: The user stabs the target with a poisonous stinger. This may also poison the target. Poison Tail: The user hits the target with its tail. This may also poison the target. Critical hits land more easily. Poltergeist: The user attacks the target by controlling the target's item. The move fails if the target doesn't have an item. Pound: The target is physically pounded with a long tail, a foreleg, or the like. Power Trip: The user boasts its strength and attacks the target. The more the user's stats are raised, the greater the move's power. Power Whip: The user violently whirls its vines, tentacles, or the like to harshly lash the target. Power-Up Punch: Striking opponents over and over makes the user's fists harder. Hitting a target raises the Attack stat. Precipice Blades: The user attacks opposing Pokémon by manifesting the power of the land in fearsome blades of stone. Present: The user attacks by giving the target a gift with a hidden trap. It restores HP sometimes, however. Psychic Fangs: The user bites the target with its psychic capabilities. This can also destroy Light Screen and Reflect. Psycho Cut: The user tears at the target with blades formed by psychic power. Critical hits land more easily. Psyshield Bash: Cloaking itself in psychic energy, the user slams into the target. This may also raise the userâ\\x80\\x99s defensive stats. Pyro Ball: The user attacks by igniting a small stone and launching it as a fiery ball at the target. This may also leave the target with a burn. Quick Attack: The user lunges at the target at a speed that makes it almost invisible. This move always goes first. Raging Fury: The user rampages and spews vicious flames to inflict damage on the target, then becomes fixated on using this move. Rapid Spin: A spin attack that can also eliminate such moves as Bind, Wrap, and Leech Seed. This also raises the user's Speed stat. Razor Leaf: Sharp-edged leaves are launched to slash at opposing Pokémon. Critical hits land more easily. Razor Shell: The user cuts its target with sharp shells. This may also lower the target's Defense stat. Retaliate: The user gets revenge for a fainted ally. If an ally fainted in the previous turn, this move's power is increased. Revenge: This attack move's power is doubled if the user has been hurt by the opponent in the same turn. Reversal: An all-out attack that becomes more powerful the less HP the user has. Rock Blast: The user hurls hard rocks at the target. Two to five rocks are launched in a row. Rock Climb: A charging attack that may also leave the foe confused. It's also one of the Pokétch's hidden moves. Rock Slide: Large boulders are hurled at opposing Pokémon to inflict damage. This may also make the opposing Pokémon flinch. Rock Smash: The user attacks with a punch. This may also lower the target's Defense stat. Rock Throw: The user picks up and throws a small rock at the target to attack. Rock Tomb: Boulders are hurled at the target. This also lowers the target's Speed stat by preventing its movement. Rock Wrecker: The user launches a huge boulder at the target to attack. The user can't move on the next turn. Rollout: The user continually rolls into the target over five turns. It becomes more powerful each time it hits. Sacred Fire: The target is razed with a mystical fire of great intensity. This may also leave the target with a burn. Sacred Sword: The user attacks by slicing with a long horn. The target's stat changes don't affect this attack's damage. Sand Tomb: The user traps the target inside a harshly raging sandstorm for four to five turns. Scale Shot: The user attacks by shooting scales two to five times in a row. This move boosts the user's Speed stat but lowers its Defense stat. Scratch: Hard, pointed, sharp claws rake the target to inflict damage. Seed Bomb: The user slams a barrage of hard-shelled seeds down on the target from above. Seismic Toss: The target is thrown using the power of gravity. It inflicts damage equal to the user's level. Self-Destruct: The user attacks everything around it by causing an explosion. The user faints upon using this move. Shadow Bone: The user attacks by beating the target with a bone that contains a spirit. This may also lower the target's Defense stat. Shadow Claw: The user slashes with a sharp claw made from shadows. Critical hits land more easily. Shadow Force: The user disappears, then strikes the target on the next turn. This move hits even if the target protects itself. Shadow Punch: The user throws a punch from the shadows. This attack never misses. Shadow Sneak: The user extends its shadow and attacks the target from behind. This move always goes first. Skitter Smack: The user skitters behind the target to attack. This also lowers the target's Sp. Atk stat. Skull Bash: The user tucks in its head to raise its Defense stat on the first turn, then rams the target on the next turn. Sky Attack: A second-turn attack move where critical hits land more easily. This may also make the target flinch. Slam: The target is slammed with a long tail, vines, or the like to inflict damage. Slash: The target is attacked with a slash of claws or blades. Critical hits land more easily. Smack Down: The user throws a stone or similar projectile to attack the target. A flying Pokémon will fall to the ground when it's hit. Smart Strike: The user stabs the target with a sharp horn. This attack never misses. Snap Trap: The user snares the target in a snap trap for four to five turns. Solar Blade: In this two-turn attack, the user gathers light and fills a blade with the light's energy, attacking the target on the next turn. Spark: The user throws an electrically charged tackle at the target. This may also leave the target with paralysis. Spectral Thief: The user hides in the target's shadow, steals the target's stat boosts, and then attacks. Spirit Break: The user attacks the target with so much force that it could break the target's spirit. This also lowers the target's Sp. Atk stat. Spirit Shackle: The user attacks while simultaneously stitching the target's shadow to the ground to prevent the target from escaping. Steel Roller: The user attacks while destroying the terrain. This move fails when the ground hasn't turned into a terrain. Steel Wing: The target is hit with wings of steel. This may also raise the user's Defense stat. Stomp: The target is stomped with a big foot. This may also make the target flinch. Stomping Tantrum: Driven by frustration, the user attacks the target. If the user's previous move has failed, the power of this move doubles. Stone Axe: The user swings its stone axes at the target, aiming to land a critical hit. Stone splinters left behind by this attack continue to damage the target for several turns. Stone Edge: The user stabs the target from below with sharpened stones. Critical hits land more easily. Storm Throw: The user strikes the target with a fierce blow. This attack always results in a critical hit. Strength: The target is slugged with a punch thrown at maximum power. Struggle: This attack is used in desperation only if the user has no PP. It also damages the user a little. Submission: The user grabs the target and recklessly dives for the ground. This also damages the user a little. Sucker Punch: This move enables the user to attack first. This move fails if the target is not readying an attack. Sunsteel Strike: The user slams into the target with the force of a meteor. This move can be used on the target regardless of its Abilities. Super Fang: The user chomps hard on the target with its sharp front fangs. This cuts the target's HP in half. Superpower: The user attacks the target with great power. However, this also lowers the user's Attack and Defense stats. Surging Strikes: The user, having mastered the Water style, strikes the target with a flowing motion three times in a row. This attack always results in a critical hit. Tackle: A physical attack in which the user charges and slams into the target with its whole body. Tail Slap: The user attacks by striking the target with its hard tail. It hits the target two to five times in a row. Take Down: A reckless, full-body charge attack for slamming into the target. This also damages the user a little. Thief: The user attacks and steals the target's held item simultaneously. The user can't steal anything if it already holds an item. Thousand Arrows: This move also hits opposing Pokémon that are in the air. Those Pokémon are knocked down to the ground. Thousand Waves: The user attacks with a wave that crawls along the ground. Those it hits can't flee from battle. Thrash: The user rampages and attacks for two to three turns. The user then becomes confused. Throat Chop: The user attacks the target's throat, and the resultant suffering prevents the target from using moves that emit sound for two turns. Thunder Fang: The user bites with electrified fangs. This may also make the target flinch or leave it with paralysis. Thunder Punch: The target is punched with an electrified fist. This may also leave the target with paralysis. Thunderous Kick: The user overwhelms the target with lightning-like movement before delivering a kick. This also lowers the target's Defense stat. Triple Arrows: The user delivers an axe kick, then fires three arrows. This raises the chance of its future attacks landing critical hits and also lowers the targetâ\\x80\\x99s defensive stats. Triple Axel: A consecutive three-kick attack that becomes more powerful with each successful hit. Triple Kick: A consecutive three-kick attack that becomes more powerful with each successful hit. Trop Kick: The user lands an intense kick of tropical origins on the target. This also lowers the target's Attack stat. U-turn: After making its attack, the user rushes back to switch places with a party Pokémon in waiting. V-create: With a hot flame on its forehead, the user hurls itself at its target. This lowers the user's Defense, Sp. Def, and Speed stats. Vine Whip: The target is struck with slender, whiplike vines to inflict damage. Vise Grip: The target is gripped and squeezed from both sides to inflict damage. Vital Throw: The user attacks last. In return, this throw move never misses. Volt Tackle: The user electrifies itself and charges the target. This also damages the user quite a lot. This attack may leave the target with paralysis. Waterfall: The user charges at the target and may make it flinch. Wave Crash: The user shrouds itself in water and slams into the target with its whole body to inflict damage. This also damages the user and raises the userâ\\x80\\x99s action speed. Wicked Blow: The user, having mastered the Dark style, strikes the target with a fierce blow. This attack always results in a critical hit. Wild Charge: The user shrouds itself in electricity and smashes into its target. This also damages the user a little. Wing Attack: The target is struck with large, imposing wings spread wide to inflict damage. Wood Hammer: The user slams its rugged body into the target to attack. This also damages the user quite a lot. Wrap: A long body, vines, or the like are used to wrap and squeeze the target for four to five turns. X-Scissor: The user slashes at the target by crossing its scythes or claws as if they were a pair of scissors. Zen Headbutt: The user focuses its willpower to its head and attacks the target. This may also make the target flinch. Zing Zap: A strong electric blast crashes down on the target, giving it an electric shock. This may also make the target flinch. Absorb: A nutrient-draining attack. The user's HP is restored by half the damage taken by the target. Acid: Opposing Pokémon are attacked with a spray of harsh acid. This may also lower their Sp. Def stats. Acid Spray: The user spits fluid that works to melt the target. This harshly lowers the target's Sp. Def stat. Aeroblast: A vortex of air is shot at the target to inflict damage. Critical hits land more easily. Air Cutter: The user launches razor-like wind to slash opposing Pokémon. Critical hits land more easily. Air Slash: The user attacks with a blade of air that slices even the sky. This may also make the target flinch. Ancient Power: The user attacks with a prehistoric power. This may also raise all the user's stats at once. Apple Acid: The user attacks the target with an acidic liquid created from tart apples. This also lowers the target's Sp. Def stat. Astral Barrage: The user attacks by sending a frightful amount of small ghosts at opposing Pokémon. Aura Sphere: The user lets loose a blast of aura power from deep within its body at the target. This attack never misses. Aurora Beam: The target is hit with a rainbow-colored beam. This may also lower the target's Attack stat. Belch: The user lets out a damaging belch at the target. The user must eat a held Berry to use this move. Bitter Malice: The user attacks its target with spine-chilling resentment. This may also leave the target with frostbite. This moveâ\\x80\\x99s power is doubled if the target has a status condition. Blast Burn: The target is razed by a fiery explosion. The user can't move on the next turn. Bleakwind Storm: The user attacks with savagely cold winds that cause both body and spirit to tremble. This may also leave the target with frostbite. Blizzard: A howling blizzard is summoned to strike opposing Pokémon. This may also leave the opposing Pokémon frozen. Blue Flare: The user attacks by engulfing the target in an intense, yet beautiful, blue flame. This may also leave the target with a burn. Boomburst: The user attacks everything around it with the destructive power of a terrible, explosive sound. Brine: If the target's HP is half or less, this attack will hit with double the power. Bubble Beam: A spray of bubbles is forcefully ejected at the target. This may also lower the target's Speed stat. Bug Buzz: The user generates a damaging sound wave by vibration. This may also lower the target's Sp. Def stat. Burn Up: To inflict massive damage, the user burns itself out. After using this move, the user will no longer be Fire type. Burning Jealousy: The user attacks with energy from jealousy. This leaves all opposing Pokémon that have had their stats boosted during the turn with a burn. Charge Beam: The user attacks the target with an electric charge. The user may use any remaining electricity to raise its Sp. Atk stat. Chatter: The user attacks the target with sound waves of deafening chatter. This confuses the target. Chloroblast: The user launches its amassed chlorophyll to inflict damage on the target. This also damages the user and lowers the userâ\\x80\\x99s action speed. Clanging Scales: The user rubs the scales on its entire body and makes a huge noise to attack opposing Pokémon. The user's Defense stat goes down after the attack. Clear Smog: The user attacks the target by throwing a clump of special mud. All stat changes are returned to normal. Confusion: The target is hit by a weak telekinetic force. This may also confuse the target. Core Enforcer: If the Pokémon the user has inflicted damage on have already used their moves, this move eliminates the effect of the target's Ability. Dark Pulse: The user releases a horrible aura imbued with dark thoughts. This may also make the target flinch. Dazzling Gleam: The user damages opposing Pokémon by emitting a powerful flash. Disarming Voice: Letting out a charming cry, the user does emotional damage to opposing Pokémon. This attack never misses. Discharge: The user strikes everything around it by letting loose a flare of electricity. This may also cause paralysis. Doom Desire: Two turns after this move is used, a concentrated bundle of light blasts the target. Draco Meteor: Comets are summoned down from the sky onto the target. The attack's recoil harshly lowers the user's Sp. Atk stat. Dragon Breath: The user exhales a mighty gust that inflicts damage. This may also leave the target with paralysis. Dragon Energy: Converting its life-force into power, the user attacks opposing Pokémon. The lower the user's HP, the lower the move's power. Dragon Pulse: The target is attacked with a shock wave generated by the user's gaping mouth. Draining Kiss: The user steals the target's HP with a kiss. The user's HP is restored by over half of the damage taken by the target. Dream Eater: The user eats the dreams of a sleeping target. The user's HP is restored by half the damage taken by the target. Dynamax Cannon: The user unleashes a strong beam from its core. This move deals twice the damage if the target is Dynamaxed. Earth Power: The user makes the ground under the target erupt with power. This may also lower the target's Sp. Def stat. Echoed Voice: The user attacks the target with an echoing voice. If this move is used every turn, its power is increased. Eerie Spell: The user attacks with its tremendous psychic power. This also removes 3 PP from the target's last move. Electro Ball: The user hurls an electric orb at the target. The faster the user is than the target, the greater the move's power. Electroweb: The user attacks and captures opposing Pokémon using an electric net. This lowers their Speed stats. Ember: The target is attacked with small flames. This may also leave the target with a burn. Energy Ball: The user draws power from nature and fires it at the target. This may also lower the target's Sp. Def stat. Eruption: The user attacks opposing Pokémon with explosive fury. The lower the user's HP, the lower the move's power. Esper Wing: The user slashes the target with aura-enriched wings. This also raises the userâ\\x80\\x99s action speed. This move has a heightened chance of landing a critical hit. Eternabeam: This is Eternatus's most powerful attack in its original form. The user can't move on the next turn. Expanding Force: The user attacks the target with its psychic power. This move's power goes up and damages all opposing Pokémon on Psychic Terrain. Extrasensory: The user attacks with an odd, unseeable power. This may also make the target flinch. Fairy Wind: The user stirs up a fairy wind and strikes the target with it. Fiery Dance: Cloaked in flames, the user attacks the target by dancing and flapping its wings. This may also raise the user's Sp. Atk stat. Fiery Wrath: The user transforms its wrath into a fire-like aura to attack. This may also make opposing Pokémon flinch. Final Gambit: The user risks everything to attack its target. The user faints but does damage equal to its HP. Fire Blast: The target is attacked with an intense blast of all-consuming fire. This may also leave the target with a burn. Fire Pledge: A column of fire hits the target. When used with its grass equivalent, its power increases and a vast sea of fire appears. Fire Spin: The target becomes trapped within a fierce vortex of fire that rages for four to five turns. Flamethrower: The target is scorched with an intense blast of fire. This may also leave the target with a burn. Flash Cannon: The user gathers all its light energy and releases it all at once. This may also lower the target's Sp. Def stat. Fleur Cannon: The user unleashes a strong beam. The attack's recoil harshly lowers the user's Sp. Atk stat. Focus Blast: The user heightens its mental focus and unleashes its power. This may also lower the target's Sp. Def stat. Freeze-Dry: The user rapidly cools the target. This may also leave the target frozen. This move is super effective on Water types. Freezing Glare: The user shoots its psychic power from its eyes to attack. This may also leave the target frozen. Frenzy Plant: The user slams the target with the roots of an enormous tree. The user can't move on the next turn. Frost Breath: The user blows its cold breath on the target. This attack always results in a critical hit. Fusion Flare: The user brings down a giant flame. This move's power is increased when influenced by an enormous lightning bolt. Future Sight: Two turns after this move is used, a hunk of psychic energy attacks the target. Giga Drain: A nutrient-draining attack. The user's HP is restored by half the damage taken by the target. Glaciate: The user attacks by blowing freezing cold air at opposing Pokémon. This lowers their Speed stats. Grass Knot: The user snares the target with grass and trips it. The heavier the target, the greater the move's power. Grass Pledge: A column of grass hits the target. When used with its water equivalent, its power increases and a vast swamp appears. Gust: A gust of wind is whipped up by wings and launched at the target to inflict damage. Heat Wave: The user attacks by exhaling hot breath on opposing Pokémon. This may also leave those Pokémon with a burn. Hex: This relentless attack does massive damage to a target affected by status conditions. Hidden Power: A unique attack that varies in type depending on the Pokémon using it. Hurricane: The user attacks by wrapping its opponent in a fierce wind that flies up into the sky. This may also confuse the target. Hydro Cannon: The target is hit with a watery blast. The user can't move on the next turn. Hydro Pump: The target is blasted by a huge volume of water launched under great pressure. Hyper Beam: The target is attacked with a powerful beam. The user can't move on the next turn. Hyper Voice: The user lets loose a horribly echoing shout with the power to inflict damage. Hyperspace Hole: Using a hyperspace hole, the user appears right next to the target and strikes. This also hits a target using a move such as Protect or Detect. Ice Beam: The target is struck with an icy-cold beam of energy. This may also leave the target frozen. Ice Burn: On the second turn, an ultracold, freezing wind surrounds the target. This may leave the target with a burn. Icy Wind: The user attacks with a gust of chilled air. This also lowers opposing Pokémon's Speed stats. Incinerate: The user attacks opposing Pokémon with fire. If a Pokémon is holding a certain item, such as a Berry, the item becomes burned up and unusable. Infernal Parade: The user attacks with myriad fireballs. This may also leave the target with a burn. This moveâ\\x80\\x99s power is doubled if the target has a status condition. Inferno: The user attacks by engulfing the target in an intense fire. This leaves the target with a burn. Infestation: The target is infested and attacked for four to five turns. The target can't flee during this time. Judgment: The user releases countless shots of light at the target. This move's type varies depending on the kind of Plate the user is holding. Lava Plume: The user torches everything around it in an inferno of scarlet flames. This may also leave those it hits with a burn. Leaf Storm: The user whips up a storm of leaves around the target. The attack's recoil harshly lowers the user's Sp. Atk stat. Leaf Tornado: The user attacks its target by encircling it in sharp leaves. This attack may also lower the target's accuracy. Light of Ruin: Drawing power from the Eternal Flower, the user fires a powerful beam of light. This also damages the user quite a lot. Luster Purge: The user lets loose a damaging burst of light. This may also lower the target's Sp. Def stat. Magical Leaf: The user scatters curious leaves that chase the target. This attack never misses. Magma Storm: The target becomes trapped within a maelstrom of fire that rages for four to five turns. Mega Drain: A nutrient-draining attack. The user's HP is restored by half the damage taken by the target. Meteor Beam: In this two-turn attack, the user gathers space power and boosts its Sp. Atk stat, then attacks the target on the next turn. Mind Blown: The user attacks everything around it by causing its own head to explode. This also damages the user. Mirror Coat: A retaliation move that counters any special attack, inflicting double the damage taken. Mist Ball: A mist-like flurry of down envelops and damages the target. This may also lower the target's Sp. Atk stat. Misty Explosion: The user attacks everything around it and faints upon using this move. This move's power is increased on Misty Terrain. Moonblast: Borrowing the power of the moon, the user attacks the target. This may also lower the target's Sp. Atk stat. Moongeist Beam: The user emits a sinister ray to attack the target. This move can be used on the target regardless of its Abilities. Mud Shot: The user attacks by hurling a blob of mud at the target. This also lowers the target's Speed stat. Mud-Slap: The user hurls mud in the target's face to inflict damage and lower its accuracy. Muddy Water: The user attacks by shooting muddy water at opposing Pokémon. This may also lower their accuracy. Mystical Fire: The user attacks by breathing a special, hot fire. This also lowers the target's Sp. Atk stat. Mystical Power: The user strengthens itself with a mysterious power. If it excels in offense, its offensive stats are raised. If it excels in defense, its defensive stats are raised. Nature's Madness: The user hits the target with the force of nature. It halves the target's HP. Night Daze: The user lets loose a pitch-black shock wave at its target. This may also lower the target's accuracy. Night Shade: The user makes the target see a frightening mirage. It inflicts damage equal to the user's level. Oblivion Wing: The user absorbs its target's HP. The user's HP is restored by over half of the damage taken by the target. Octazooka: The user attacks by spraying ink in the target's face or eyes. This may also lower the target's accuracy. Origin Pulse: The user attacks opposing Pokémon with countless beams of light that glow a deep and brilliant blue. Overdrive: The user attacks opposing Pokémon by twanging a guitar or bass guitar, causing a huge echo and strong vibration. Overheat: The user attacks the target at full power. The attack's recoil harshly lowers the user's Sp. Atk stat. Parabolic Charge: The user attacks everything around it. The user's HP is restored by half the damage taken by those hit. Petal Dance: The user attacks the target by scattering petals for two to three turns. The user then becomes confused. Photon Geyser: The user attacks a target with a pillar of light. This move inflicts Attack or Sp. Atk damage—whichever stat is higher for the user. Pollen Puff: The user attacks the enemy with a pollen puff that explodes. If the target is an ally, it gives the ally a pollen puff that restores its HP instead. Powder Snow: The user attacks with a chilling gust of powdery snow. This may also freeze opposing Pokémon. Power Gem: The user attacks with a ray of light that sparkles as if it were made of gemstones. Prismatic Laser: The user shoots powerful lasers using the power of a prism. The user can't move on the next turn. Psybeam: The target is attacked with a peculiar ray. This may also leave the target confused. Psychic: The target is hit by a strong telekinetic force. This may also lower the target's Sp. Def stat. Psycho Boost: The user attacks the target at full power. The attack's recoil harshly lowers the user's Sp. Atk stat. Psyshock: The user materializes an odd psychic wave to attack the target. This attack does physical damage. Psystrike: The user materializes an odd psychic wave to attack the target. This attack does physical damage. Relic Song: The user sings an ancient song and attacks by appealing to the hearts of the listening opposing Pokémon. This may also induce sleep. Revelation Dance: The user attacks the target by dancing very hard. The user's type determines the type of this move. Rising Voltage: The user attacks with electric voltage rising from the ground. This move's power doubles when the target is on Electric Terrain. Roar of Time: The user blasts the target with power that distorts even time. The user can't move on the next turn. Round: The user attacks the target with a song. Others can join in the Round to increase the power of the attack. Sandsear Storm: The user attacks by wrapping the target in fierce winds and searingly hot sand. This also leaves the target with a burn. Scald: The user shoots boiling hot water at its target. This may also leave the target with a burn. Scorching Sands: The user throws scorching sand at the target to attack. This may also leave the target with a burn. Searing Shot: The user torches everything around it in an inferno of scarlet flames. This may also leave those it hits with a burn. Secret Sword: The user cuts with its long horn. The odd power contained in the horn does physical damage to the target. Seed Flare: The user emits a shock wave from its body to attack its target. This may also harshly lower the target's Sp. Def stat. Shadow Ball: The user hurls a shadowy blob at the target. This may also lower the target's Sp. Def stat. Sheer Cold: The target faints instantly. It's less likely to hit the target if it's used by Pokémon other than Ice types. Shell Side Arm: This move inflicts physical or special damage, whichever will be more effective. This may also poison the target. Shell Trap: The user sets a shell trap. If the user is hit by a physical move, the trap will explode and inflict damage on opposing Pokémon. Shock Wave: The user strikes the target with a quick jolt of electricity. This attack never misses. Sludge: Unsanitary sludge is hurled at the target. This may also poison the target. Sludge Bomb: Unsanitary sludge is hurled at the target. This may also poison the target. Sludge Wave: The user strikes everything around it by swamping the area with a giant sludge wave. This may also poison those hit. Smog: The target is attacked with a discharge of filthy gases. This may also poison the target. Snarl: The user yells as if it's ranting about something, which lowers the Sp. Atk stats of opposing Pokémon. Snipe Shot: The user ignores the effects of opposing Pokémon's moves and Abilities that draw in moves, allowing this move to hit the chosen target. Snore: This attack can be used only if the user is asleep. The harsh noise may also make the target flinch. Solar Beam: In this two-turn attack, the user gathers light, then blasts a bundled beam on the next turn. Spacial Rend: The user tears the target along with the space around it. Critical hits land more easily. Sparkling Aria: The user bursts into song, emitting many bubbles. Any Pokémon suffering from a burn will be healed by the touch of these bubbles. Spit Up: The power stored using the move Stockpile is released at once in an attack. The more power is stored, the greater the move's power. Springtide Storm: The user attacks by wrapping the target in fierce winds brimming with love and hate. This moveâ\\x80\\x99s additional effects depend on the userâ\\x80\\x99s form. Steam Eruption: The user immerses the target in superheated steam. This may also leave the target with a burn. Steel Beam: The user fires a beam of steel that it collected from its entire body. This also damages the user. Stored Power: The user attacks the target with stored power. The more the user's stats are raised, the greater the move's power. Strange Steam: The user attacks the target by emitting steam. This may also confuse the target. Struggle Bug: While resisting, the user attacks opposing Pokémon. This lowers the Sp. Atk stats of those hit. Surf: The user attacks everything around it by swamping its surroundings with a giant wave. Swift: Star-shaped rays are shot at opposing Pokémon. This attack never misses. Techno Blast: The user fires a beam of light at its target. The move's type changes depending on the Drive the user holds. Terrain Pulse: The user utilizes the power of the terrain to attack. This move's type and power changes depending on the terrain when it's used. Thunder: A wicked thunderbolt is dropped on the target to inflict damage. This may also leave the target with paralysis. Thunder Cage: The user traps the target in a cage of sparking electricity for four to five turns. Thunder Shock: A jolt of electricity crashes down on the target to inflict damage. This may also leave the target with paralysis. Thunderbolt: A strong electric blast crashes down on the target. This may also leave the target with paralysis. Tri Attack: The user strikes with a simultaneous three-beam attack. This may also burn, freeze, or paralyze the target. Twister: The user whips up a vicious tornado to tear at opposing Pokémon. This may also make them flinch. Uproar: The user attacks in an uproar for three turns. During that time, no Pokémon can fall asleep. Vacuum Wave: The user whirls its fists to send a wave of pure vacuum at the target. This move always goes first. Venoshock: The user drenches the target in a special poisonous liquid. This move's power is doubled if the target is poisoned. Volt Switch: After making its attack, the user rushes back to switch places with a party Pokémon in waiting. Water Gun: The target is blasted with a forceful shot of water. Water Pledge: A column of water hits the target. When used with its fire equivalent, its power increases and a rainbow appears. Water Pulse: The user attacks the target with a pulsing blast of water. This may also confuse the target. Water Shuriken: The user hits the target with throwing stars two to five times in a row. This move always goes first. Water Spout: The user spouts water to damage opposing Pokémon. The lower the user's HP, the lower the move's power. Weather Ball: This attack move varies in power and type depending on the weather. Whirlpool: The user traps the target in a violent swirling whirlpool for four to five turns. Wildbolt Storm: The user summons a thunderous tempest and savagely attacks with lightning and wind. This may also leave the target with paralysis. Zap Cannon: The user fires an electric blast like a cannon to inflict damage and cause paralysis. Acid Armor: The user alters its cellular structure to liquefy itself, sharply raising its Defense stat. Acupressure: The user applies pressure to stress points, sharply boosting one of its or its allies' stats. After You: The user helps the target and makes it use its move right after the user. Agility: The user relaxes and lightens its body to move faster. This sharply raises the Speed stat. Ally Switch: The user teleports using a strange power and switches places with one of its allies. Amnesia: The user temporarily empties its mind to forget its concerns. This sharply raises the user's Sp. Def stat. Aqua Ring: The user envelops itself in a veil made of water. It regains some HP every turn. Aromatherapy: The user releases a soothing scent that heals all status conditions affecting the user's party. Aromatic Mist: The user raises the Sp. Def stat of an ally Pokémon by using a mysterious aroma. Attract: If it is the opposite gender of the user, the target becomes infatuated and less likely to attack. Aurora Veil: This move reduces damage from physical and special moves for five turns. This can be used only in a hailstorm. Autotomize: The user sheds part of its body to make itself lighter and sharply raise its Speed stat. Baby-Doll Eyes: The user stares at the target with its baby-doll eyes, which lowers the target's Attack stat. This move always goes first. Baneful Bunker: In addition to protecting the user from attacks, this move also poisons any attacker that makes direct contact. Baton Pass: The user switches places with a party Pokémon in waiting and passes along any stat changes. Belly Drum: The user maximizes its Attack stat in exchange for HP equal to half its max HP. Block: The user blocks the target's way with arms spread wide to prevent escape. Bulk Up: The user tenses its muscles to bulk up its body, raising both its Attack and Defense stats. Calm Mind: The user quietly focuses its mind and calms its spirit to raise its Sp. Atk and Sp. Def stats. Celebrate: The Pokémon congratulates you on your special day! Charge: The user boosts the power of the Electric move it uses on the next turn. This also raises the user's Sp. Def stat. Charm: The user gazes at the target rather charmingly, making it less wary. This harshly lowers the target's Attack stat. Clangorous Soul: The user raises all its stats by using some of its HP. Coaching: The user properly coaches its ally Pokémon, boosting their Attack and Defense stats. Coil: The user coils up and concentrates. This raises its Attack and Defense stats as well as its accuracy. Confide: The user tells the target a secret, and the target loses its ability to concentrate. This lowers the target's Sp. Atk stat. Confuse Ray: The target is exposed to a sinister ray that triggers confusion. Conversion: The user changes its type to become the same type as the move at the top of the list of moves it knows. Conversion 2: The user changes its type to make itself resistant to the type of the attack the target used last. Copycat: The user mimics the move used immediately before it. The move fails if no other move has been used yet. Corrosive Gas: The user surrounds everything around it with highly acidic gas and melts away items they hold. Cosmic Power: The user absorbs a mystical power from space to raise its Defense and Sp. Def stats. Cotton Guard: The user protects itself by wrapping its body in soft cotton, which drastically raises the user's Defense stat. Cotton Spore: The user releases cotton-like spores that cling to opposing Pokémon, which harshly lowers their Speed stats. Court Change: With its mysterious power, the user swaps the effects on either side of the field. Crafty Shield: The user protects itself and its allies from status moves with a mysterious power. This does not stop moves that do damage. Curse: A move that works differently for the Ghost type than for all other types. Dark Void: Opposing Pokémon are dragged into a world of total darkness that makes them sleep. Decorate: The user sharply raises the target's Attack and Sp. Atk stats by decorating the target. Defend Order: The user calls out its underlings to shield its body, raising its Defense and Sp. Def stats. Defense Curl: The user curls up to conceal weak spots and raise its Defense stat. Defog: A strong wind blows away the target's barriers such as Reflect or Light Screen. This also lowers the target's evasiveness. Destiny Bond: After using this move, if the user faints, the Pokémon that landed the knockout hit also faints. Its chance of failing rises if it is used in succession. Detect: This move enables the user to protect itself from all attacks. Its chance of failing rises if it is used in succession. Disable: For four turns, this move prevents the target from using the move it last used. Double Team: By moving rapidly, the user makes illusory copies of itself to raise its evasiveness. Dragon Dance: The user vigorously performs a mystic, powerful dance that raises its Attack and Speed stats. Eerie Impulse: The user's body generates an eerie impulse. Exposing the target to it harshly lowers the target's Sp. Atk stat. Electric Terrain: The user electrifies the ground for five turns, powering up Electric-type moves. Pokémon on the ground no longer fall asleep. Electrify: If the target is electrified before it uses a move during that turn, the target's move becomes Electric type. Encore: The user compels the target to keep using the move it encored for three turns. Endure: The user endures any attack with at least 1 HP. Its chance of failing rises if it is used in succession. Entrainment: The user dances with an odd rhythm that compels the target to mimic it, making the target's Ability the same as the user's. Fairy Lock: By locking down the battlefield, the user keeps all Pokémon from fleeing during the next turn. Fake Tears: The user feigns crying to fluster the target, harshly lowering its Sp. Def stat. Feather Dance: The user covers the target's body with a mass of down that harshly lowers its Attack stat. Flash: The user flashes a light that lowers the target's accuracy. It can also be used to illuminate caves. Flatter: Flattery is used to confuse the target. However, this also raises the target's Sp. Atk stat. Floral Healing: The user restores the target's HP by up to half of its max HP. It restores more HP when the terrain is grass. Flower Shield: The user raises the Defense stats of all Grass-type Pokémon in battle with a mysterious power. Focus Energy: The user takes a deep breath and focuses so that critical hits land more easily. Follow Me: The user draws attention to itself, making all targets take aim only at the user. Forest's Curse: The user puts a forest curse on the target. The target is now Grass type as well. Gastro Acid: The user hurls up its stomach acids on the target. The fluid eliminates the effect of the target's Ability. Gear Up: The user engages its gears to raise the Attack and Sp. Atk stats of ally Pokémon with the Plus or Minus Ability. Geomancy: The user absorbs energy and sharply raises its Sp. Atk, Sp. Def, and Speed stats on the next turn. Glare: The user intimidates the target with the pattern on its belly to cause paralysis. Grassy Terrain: The user turns the ground to grass for five turns. This restores the HP of Pokémon on the ground a little every turn and powers up Grass-type moves. Gravity: This move enables Flying-type Pokémon or Pokémon with the Levitate Ability to be hit by Ground-type moves. Moves that involve flying can't be used. Growl: The user growls in an endearing way, making opposing Pokémon less wary. This lowers their Attack stats. Growth: The user's body grows all at once, raising the Attack and Sp. Atk stats. Grudge: If the user faints, the user's grudge fully depletes the PP of the opponent's move that knocked it out. Guard Split: The user employs its psychic power to average its Defense and Sp. Def stats with those of the target. Guard Swap: The user employs its psychic power to switch changes to its Defense and Sp. Def stats with the target. Hail: The user summons a hailstorm lasting five turns. It damages all Pokémon except Ice types. Happy Hour: Using Happy Hour doubles the amount of prize money received after battle. Harden: The user stiffens all the muscles in its body to raise its Defense stat. Haze: The user creates a haze that eliminates every stat change among all the Pokémon engaged in battle. Heal Bell: The user makes a soothing bell chime to heal the status conditions of all the party Pokémon. Heal Pulse: The user emits a healing pulse that restores the target's HP by up to half of its max HP. Healing Wish: The user faints. In return, the Pokémon taking its place will have its HP restored and status conditions cured. Heart Swap: The user employs its psychic power to switch stat changes with the target. Helping Hand: The user assists an ally by boosting the power of that ally's attack. Hold Hands: The user and an ally hold hands. This makes them very happy. Hone Claws: The user sharpens its claws to boost its Attack stat and accuracy. Howl: The user howls loudly to raise the spirit of itself and allies. This raises their Attack stats. Hypnosis: The user employs hypnotic suggestion to make the target fall into a deep sleep. Imprison: If opposing Pokémon know any move also known by the user, they are prevented from using it. Ingrain: The user lays roots that restore its HP on every turn. Because it's rooted, it can't switch out. Instruct: The user instructs the target to use the target's last move again. Iron Defense: The user hardens its body's surface like iron, sharply raising its Defense stat. Jungle Healing: The user becomes one with the jungle, restoring HP and healing any status conditions of itself and its ally Pokémon in battle. Kinesis: The user distracts the target by bending a spoon. This lowers the target's accuracy. King's Shield: The user takes a defensive stance while it protects itself from damage. It also lowers the Attack stat of any attacker that makes direct contact. Laser Focus: The user concentrates intensely. The attack on the next turn always results in a critical hit. Leech Seed: A seed is planted on the target. It steals some HP from the target every turn. Leer: The user gives opposing Pokémon an intimidating leer that lowers the Defense stat. Life Dew: The user scatters mysterious water around and restores the HP of itself and its ally Pokémon in the battle. Light Screen: A wondrous wall of light is put up to reduce damage from special attacks for five turns. Lock-On: The user takes sure aim at the target. This ensures the next attack does not miss the target. Lovely Kiss: With a scary face, the user tries to force a kiss on the target. If it succeeds, the target falls asleep. Lunar Blessing: The user heals its own status conditions and restores its HP. Incoming moves also become more likely to miss. Lunar Dance: The user faints. In return, the Pokémon taking its place will have its status and HP fully restored. Magic Coat: Moves like Leech Seed and moves that inflict status conditions are blocked by a barrier and reflected back to the user of those moves. Magic Powder: The user scatters a cloud of magic powder that changes the target to Psychic type. Magic Room: The user creates a bizarre area in which Pokémon's held items lose their effects for five turns. Magnet Rise: The user levitates using electrically generated magnetism for five turns. Magnetic Flux: The user manipulates magnetic fields, which raises the Defense and Sp. Def stats of ally Pokémon with the Plus or Minus Ability. Mat Block: Using a pulled-up mat as a shield, the user protects itself and its allies from damaging moves. This does not stop status moves. Max Guard: This move enables the user to protect itself from all attacks. Its chance of failing rises if it is used in succession. Mean Look: The user pins the target with a dark, arresting look. The target becomes unable to flee. Memento: The user faints when using this move. In return, this harshly lowers the target's Attack and Sp. Atk stats. Metal Sound: A horrible sound like scraping metal harshly lowers the target's Sp. Def stat. Metronome: The user waggles a finger and stimulates its brain into randomly using nearly any move. Milk Drink: The user restores its own HP by up to half of its max HP. Mimic: The user copies the target's last move. The move can be used during battle until the Pokémon is switched out. Mind Reader: The user senses the target's movements with its mind to ensure its next attack does not miss the target. Minimize: The user compresses its body to make itself look smaller, which sharply raises its evasiveness. Mist: The user cloaks itself and its allies in a white mist that prevents any of their stats from being lowered for five turns. Misty Terrain: This protects Pokémon on the ground from status conditions and halves damage from Dragon-type moves for five turns. Moonlight: The user restores its own HP. The amount of HP regained varies with the weather. Morning Sun: The user restores its own HP. The amount of HP regained varies with the weather. Nasty Plot: The user stimulates its brain by thinking bad thoughts. This sharply raises the user's Sp. Atk stat. Nature Power: This attack makes use of nature's power. Its effects vary depending on the user's environment. No Retreat: This move raises all the user's stats but prevents the user from switching out or fleeing. Noble Roar: Letting out a noble roar, the user intimidates the target and lowers its Attack and Sp. Atk stats. Obstruct: This move enables the user to protect itself from all attacks. Its chance of failing rises if it is used in succession. Direct contact harshly lowers the attacker's Defense stat. Octolock: The user locks the target in and prevents it from fleeing. This move also lowers the target's Defense and Sp. Def every turn. Pain Split: The user adds its HP to the target's HP, then equally shares the combined HP with the target. Parting Shot: With a parting threat, the user lowers the target's Attack and Sp. Atk stats. Then it switches with a party Pokémon. Perish Song: Any Pokémon that hears this song faints in three turns, unless it switches out of battle. Play Nice: The user and the target become friends, and the target loses its will to fight. This lowers the target's Attack stat. Poison Gas: A cloud of poison gas is sprayed in the face of opposing Pokémon, poisoning those it hits. Poison Powder: The user scatters a cloud of poisonous dust that poisons the target. Powder: The user covers the target in a combustible powder. If the target uses a Fire-type move, the powder explodes and damages the target. Power Shift: The user swaps its offensive and defensive stats. Power Split: The user employs its psychic power to average its Attack and Sp. Atk stats with those of the target. Power Swap: The user employs its psychic power to switch changes to its Attack and Sp. Atk stats with the target. Power Trick: The user employs its psychic power to switch its Attack stat with its Defense stat. Protect: This move enables the user to protect itself from all attacks. Its chance of failing rises if it is used in succession. Psych Up: The user hypnotizes itself into copying any stat change made by the target. Psychic Terrain: This protects Pokémon on the ground from priority moves and powers up Psychic-type moves for five turns. Psycho Shift: Using its psychic power of suggestion, the user transfers its status conditions to the target. Purify: The user heals the target's status condition. If the move succeeds, it also restores the user's own HP. Quash: The user suppresses the target and makes its move go last. Quick Guard: The user protects itself and its allies from priority moves. Quiver Dance: The user lightly performs a beautiful, mystic dance. This boosts the user's Sp. Atk, Sp. Def, and Speed stats. Rage Powder: The user scatters a cloud of irritating powder to draw attention to itself. Opposing Pokémon aim only at the user. Rain Dance: The user summons a heavy rain that falls for five turns, powering up Water-type moves. It lowers the power of Fire-type moves. Recover: Restoring its own cells, the user restores its own HP by half of its max HP. Recycle: The user recycles a held item that has been used in battle so it can be used again. Reflect: A wondrous wall of light is put up to reduce damage from physical attacks for five turns. Reflect Type: The user reflects the target's type, making the user the same type as the target. Rest: The user goes to sleep for two turns. This fully restores the user's HP and heals any status conditions. Roar: The target is scared off, and a different Pokémon is dragged out. In the wild, this ends a battle against a single Pokémon. Rock Polish: The user polishes its body to reduce drag. This sharply raises the Speed stat. Role Play: The user mimics the target completely, copying the target's Ability. Roost: The user lands and rests its body. This move restores the user's HP by up to half of its max HP. Safeguard: The user creates a protective field that prevents status conditions for five turns. Sand Attack: Sand is hurled in the target's face, reducing the target's accuracy. Sandstorm: A five-turn sandstorm is summoned to hurt all combatants except Rock, Ground, and Steel types. It raises the Sp. Def stat of Rock types. Scary Face: The user frightens the target with a scary face to harshly lower its Speed stat. Screech: An earsplitting screech harshly lowers the target's Defense stat. Shell Smash: The user breaks its shell, which lowers Defense and Sp. Def stats but sharply raises its Attack, Sp. Atk, and Speed stats. Shelter: The user makes its skin as hard as an iron shield, raising its defensive stats. Incoming moves also become more likely to miss. Shift Gear: The user rotates its gears, raising its Attack stat and sharply raising its Speed stat. Shore Up: The user regains up to half of its max HP. It restores more HP in a sandstorm. Simple Beam: The user's mysterious psychic wave changes the target's Ability to Simple. Sing: A soothing lullaby is sung in a calming voice that puts the target into a deep slumber. Sketch: It enables the user to permanently learn the move last used by the target. Once used, Sketch disappears. Skill Swap: The user employs its psychic power to exchange Abilities with the target. Slack Off: The user slacks off, restoring its own HP by up to half of its max HP. Sleep Powder: The user scatters a big cloud of sleep-inducing dust around the target. Sleep Talk: While it is asleep, the user randomly uses one of the moves it knows. Smokescreen: The user releases an obscuring cloud of smoke or ink. This lowers the target's accuracy. Soak: The user shoots a torrent of water at the target and changes the target's type to Water. Soft-Boiled: The user restores its own HP by up to half of its max HP. Speed Swap: The user exchanges Speed stats with the target. Spikes: The user lays a trap of spikes at the opposing team's feet. The trap hurts Pokémon that switch into battle. Spiky Shield: In addition to protecting the user from attacks, this move also damages any attacker that makes direct contact. Spite: The user unleashes its grudge on the move last used by the target by cutting 4 PP from it. Splash: The user just flops and splashes around to no effect at all... Spore: The user scatters bursts of spores that induce sleep. Stealth Rock: The user lays a trap of levitating stones around the opposing team. The trap hurts opposing Pokémon that switch into battle. Sticky Web: The user weaves a sticky net around the opposing team, which lowers their Speed stats upon switching into battle. Stockpile: The user charges up power and raises both its Defense and Sp. Def stats. The move can be used three times. Strength Sap: The user restores its HP by the same amount as the target's Attack stat. It also lowers the target's Attack stat. String Shot: Opposing Pokémon are bound with silk blown from the user's mouth that harshly lowers the Speed stat. Stuff Cheeks: The user eats its held Berry, then sharply raises its Defense stat. Stun Spore: The user scatters a cloud of numbing powder that paralyzes the target. Substitute: The user creates a substitute for itself using some of its HP. The substitute serves as the user's decoy. Sunny Day: The user intensifies the sun for five turns, powering up Fire-type moves. It lowers the power of Water-type moves. Supersonic: The user generates odd sound waves from its body that confuse the target. Swagger: The user enrages and confuses the target. However, this also sharply raises the target's Attack stat. Swallow: The power stored using the move Stockpile is absorbed by the user to heal its HP. Storing more power heals more HP. Sweet Kiss: The user kisses the target with a sweet, angelic cuteness that causes confusion. Sweet Scent: A sweet scent that harshly lowers opposing Pokémon's evasiveness. Switcheroo: The user trades held items with the target faster than the eye can follow. Swords Dance: A frenetic dance to uplift the fighting spirit. This sharply raises the user's Attack stat. Synthesis: The user restores its own HP. The amount of HP regained varies with the weather. Tail Glow: The user stares at flashing lights to focus its mind, drastically raising its Sp. Atk stat. Tail Whip: The user wags its tail cutely, making opposing Pokémon less wary and lowering their Defense stats. Tailwind: The user whips up a turbulent whirlwind that ups the Speed stats of the user and its allies for four turns. Take Heart: The user lifts its spirits, healing its own status conditions and raising its offensive and defensive stats. Tar Shot: The user pours sticky tar over the target, lowering the target's Speed stat. The target becomes weaker to Fire-type moves. Taunt: The target is taunted into a rage that allows it to use only attack moves for three turns. Tearful Look: The user gets teary eyed to make the target lose its combative spirit. This lowers the target's Attack and Sp. Atk stats. Teatime: The user has teatime with all the Pokémon in the battle. Each Pokémon eats its held Berry. Teeter Dance: The user performs a wobbly dance that confuses the Pokémon around it. Teleport: The user switches places with a party Pokémon in waiting, if any. If a wild Pokémon uses this move, it flees. Thunder Wave: The user launches a weak jolt of electricity that paralyzes the target. Tickle: The user tickles the target into laughing, reducing its Attack and Defense stats. Topsy-Turvy: All stat changes affecting the target turn topsy-turvy and become the opposite of what they were. Torment: The user torments and enrages the target, making it incapable of using the same move twice in a row. Toxic: A move that leaves the target badly poisoned. Its poison damage worsens every turn. Toxic Spikes: The user lays a trap of poison spikes at the feet of the opposing team. The spikes will poison opposing Pokémon that switch into battle. Toxic Thread: The user shoots poisonous threads to poison the target and lower the target's Speed stat. Transform: The user transforms into a copy of the target right down to having the same move set. Trick: The user catches the target off guard and swaps its held item with its own. Trick Room: The user creates a bizarre area in which slower Pokémon get to move first for five turns. Trick-or-Treat: The user takes the target trick-or-treating. This adds Ghost type to the target's type. Venom Drench: Opposing Pokémon are drenched in an odd poisonous liquid. This lowers the Attack, Sp. Atk, and Speed stats of a poisoned target. Victory Dance: The user performs a dance to usher in victory. This raises the userâ\\x80\\x99s offensive and defensive stats and increases the damage dealt by the userâ\\x80\\x99s moves by 50 percent. Whirlwind: The target is blown away, and a different Pokémon is dragged out. In the wild, this ends a battle against a single Pokémon. Wide Guard: The user and its allies are protected from wide-ranging attacks for one turn. Will-O-Wisp: The user shoots a sinister flame at the target to inflict a burn. Wish: One turn after this move is used, the user's or its replacement's HP is restored by half the user's max HP. Withdraw: The user withdraws its body into its hard shell, raising its Defense stat. Wonder Room: The user creates a bizarre area in which Pokémon's Defense and Sp. Def stats are swapped for five turns. Work Up: The user is roused, and its Attack and Sp. Atk stats increase. Worry Seed: A seed that causes worry is planted on the target. It prevents sleep by making the target's Ability Insomnia. Yawn: The user lets loose a huge yawn that lulls the target into falling asleep on the next turn.\"" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "text" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Corpus length: 83596\n", "Total chars: 71\n" ] } ], "source": [ "from tensorflow import keras\n", "from tensorflow.keras import layers\n", "\n", "import numpy as np\n", "import random\n", "import io\n", "\n", "\n", "\n", "#path = keras.utils.get_file(\n", "# \"nietzsche.txt\", origin=\"https://s3.amazonaws.com/text-datasets/nietzsche.txt\"\n", "#)\n", "#with io.open(path, encoding=\"utf-8\") as f:\n", "# text = f.read().lower()\n", "\n", "#code obtained from keras tutorial\n", "\n", "\n", "\n", "#text = text.replace(\"\\n\", \" \") # We remove newlines chars for nicer display\n", "print(\"Corpus length:\", len(text))\n", "\n", "chars = sorted(list(set(text)))\n", "print(\"Total chars:\", len(chars))\n", "#create dictionaries from chars to indices and indices to chars for ease of use\n", "\n", "char_indices = dict((c, i) for i, c in enumerate(chars))\n", "indices_char = dict((i, c) for i, c in enumerate(chars))\n", "\n", "# cut the text in semi-redundant sequences of maxlen characters\n", "\n", "#here, we cut sequences and move them over to create our training sequences\n", "\n", "#I wanna know how long each move description is on average\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "99.29878869448183" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(moves.Effect.apply(lambda x: len(x)))" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Number of sequences: 27849\n" ] } ], "source": [ "maxlen = 50\n", "step = 3\n", "sentences = []\n", "next_chars = []\n", "for i in range(0, len(text) - maxlen, step):\n", " sentences.append(text[i : i + maxlen])\n", " next_chars.append(text[i + maxlen])\n", "print(\"Number of sequences:\", len(sentences))\n", "\n", "\n", "# I believe this creates the one hot vectors for the sentences, with respect to the chars\n", "\n", "x = np.zeros((len(sentences), maxlen, len(chars)), dtype=np.bool)\n", "y = np.zeros((len(sentences), len(chars)), dtype=np.bool)\n", "for i, sentence in enumerate(sentences):\n", " for t, char in enumerate(sentence):\n", " x[i, t, char_indices[char]] = 1\n", " y[i, char_indices[next_chars[i]]] = 1\n", " \n", " \n", "\n", " \n", "model = keras.Sequential(\n", "# shape used to be maxlen\n", " [\n", " keras.Input(shape=(None, len(chars))),\n", " layers.LSTM(64),\n", " layers.Dense(len(chars), activation=\"softmax\"),\n", " ]\n", ")\n", "optimizer = keras.optimizers.Adam(learning_rate=0.01)\n", "model.compile(loss=\"categorical_crossentropy\", optimizer=optimizer)\n", "\n", "\n", "\n", "\n", "\n", "def sample(preds, temperature=1.0):\n", " # helper function to sample an index from a probability array\n", " preds = np.asarray(preds).astype(\"float64\")\n", " preds = np.log(preds) / temperature\n", " exp_preds = np.exp(preds)\n", " preds = exp_preds / np.sum(exp_preds)\n", " probas = np.random.multinomial(1, preds, 1)\n", " return np.argmax(probas)\n", "\n", "\n", "epochs = 40\n", "batch_size = 128\n", "\n" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Epoch 1/30\n", "218/218 [==============================] - 6s 22ms/step - loss: 2.9154\n", "Epoch 2/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.9409\n", "Epoch 3/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.6951\n", "Epoch 4/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.5591\n", "Epoch 5/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.4503\n", "Epoch 6/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.3837\n", "Epoch 7/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.3291\n", "Epoch 8/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.2728\n", "Epoch 9/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.2203\n", "Epoch 10/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 1.1881\n", "Epoch 11/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.1599\n", "Epoch 12/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.1227\n", "Epoch 13/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.0967\n", "Epoch 14/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.0720\n", "Epoch 15/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.0524\n", "Epoch 16/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.0278\n", "Epoch 17/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 1.0107\n", "Epoch 18/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.9909\n", "Epoch 19/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.9675\n", "Epoch 20/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.9482\n", "Epoch 21/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.9366\n", "Epoch 22/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.9168\n", "Epoch 23/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.9268\n", "Epoch 24/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.9165\n", "Epoch 25/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.8834\n", "Epoch 26/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.8908\n", "Epoch 27/30\n", "218/218 [==============================] - 5s 23ms/step - loss: 0.8860\n", "Epoch 28/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.8582\n", "Epoch 29/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.8669\n", "Epoch 30/30\n", "218/218 [==============================] - 5s 22ms/step - loss: 0.8658\n" ] } ], "source": [ "rnn_gen = model.fit(x, y, batch_size=batch_size, epochs = 30)" ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "...Generating with seed: \"Surging Strikes: This move \"\n", "...Generated: enost by the target with a burn. This move enost by the target with a burn. This move enost by harsh\n", "\n", "...Generating with seed: \"Surging Strikes: This move \"\n", "...Generated: enost by the target with a burn. This move entinges the target with a burn. Steep Shectoners its mov\n", "\n", "...Generating with seed: \"Surging Strikes: This move \"\n", "...Generated: enost to its target. This move enost be used to it the target with a burn. This move enost by the ta\n", "\n", "...Generating with seed: \"Surging Strikes: This move \"\n", "...Generated: entwifters the target with a burn. This move entarp stats the target. This move endites the target w\n", "\n", "...Generating with seed: \"Surging Strikes: This move \"\n", "...Generated: entinges the target to inferes Elitting of a Puck the target in the target's the target on electrice\n", "\n" ] } ], "source": [ "def generate_move_description(sentence, model, diversity):\n", " \n", " generated = \"\"\n", " print('...Generating with seed: \"' + sentence + '\"')\n", "\n", " for i in range(100):\n", " x_pred = np.zeros((1, len(sentence), len(chars)))\n", " for t, char in enumerate(sentence):\n", " x_pred[0, t, char_indices[char]] = 1.0\n", " preds = model.predict(x_pred, verbose=0)[0]\n", " next_index = sample(preds, diversity)\n", " next_char = indices_char[next_index]\n", " sentence = sentence[1:] + next_char\n", " generated += next_char\n", "\n", " print(\"...Generated: \", generated)\n", " print()\n", " \n", "\n", "for x in [0.1, 0.15, 0.2, 0.5, 0.7]:\n", " generate_move_description(\"Surging Strikes: This move \", model, x)" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "...Generating with seed: \"Accelerock:\"\n", "...Generated: The user's Sp. Atk status onthel the target. This move also ins becomes the target. This move to it\n", "\n", "...Generating with seed: \"Accelerock:\"\n", "...Generated: The user's Sp. Atk stats its the target. This move to inflict move electriclessir Pokémon with a bu\n", "\n", "...Generating with seed: \"Accelerock:\"\n", "...Generated: The user's Defense statical store the user quale hit by the target's and Sp. Atk status actack the \n", "\n", "...Generating with seed: \"Accelerock:\"\n", "...Generated: The user's Sp. Def stats its the target's HP. This move alwores force burbles the target's lowers t\n", "\n", "...Generating with seed: \"Accelerock:\"\n", "...Generated: The user's croring itsision. The target's leaves the more easily Windhed with use throabies also st\n", "\n", "...Generating with seed: \"This move raises the Defense stat and causes \"\n", "...Generated: it in a gripinges the target with a burn. This move enost by the target with a burn. This move entar\n", "\n", "...Generating with seed: \"This move raises the Defense stat and causes \"\n", "...Generated: it in exploates the target with a burn. This move enost by the target with a burn. This move enost b\n", "\n", "...Generating with seed: \"This move raises the Defense stat and causes \"\n", "...Generated: its the target with a burn. This move enost by used to its body and Sp. Atk stat. Store the target w\n", "\n", "...Generating with seed: \"This move raises the Defense stat and causes \"\n", "...Generated: its target in that can't stat by wncalt it the target's Sp. Def stat. Mind Sord: The user stats its \n", "\n", "...Generating with seed: \"This move raises the Defense stat and causes \"\n", "...Generated: the user and swipplows congers the target with a burn. This move enost bite, shyng are breoles. This\n", "\n" ] } ], "source": [ "for x in [0.1, 0.15, 0.2, 0.5, 0.7]:\n", " generate_move_description(\"Accelerock:\", model, x)\n", " \n", "for x in [0.1, 0.15, 0.2, 0.5, 0.7]:\n", " generate_move_description(\"This move raises the Defense stat and causes \", model, x)" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [], "source": [ "# in order to use something like GPT-2 to generate domain specific text\n", "# we'll need to fine tune a causal language model, and then use a sampling regime to generate the move text\n", "# it would also be a good idea to include some additional information on the move somehow, to fine tune the output\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.11" } }, "nbformat": 4, "nbformat_minor": 4 }