This snippet lets you run a basic Pokémon catching game in BDFD — no APIs.
A random Pokémon is shown, and users have to guess the name to catch it.
How to Use?
Add all three commands in your app with the correct triggers:
- !pokemon – spawns a Pokémon image
- !pcatch – lets the user guess and catch
- !pinv – shows the user's caught Pokémon
Avoid editing unless you know what you’re doing.
Make sure to add the required variables in your app.
(and yes there are two commands with the same trigger)
Variables
- pokemon.spawn
- pokemon.caught
Credits
Inspired by classic guessing games. Didn’t use any API. Raw BDFD power.
Probably based on some old script I found or tweaked. Who knows.
$nomention
$deleteIn[3s]
$description[Thinking of a pokémon..]
$image[https://media.discordapp.net/stickers/1215481177692180551.png?size=160&name=hmm]
$color[#36393e]
$setServerVar[pokemon.spawn;$randomText[Bulbasaur;Ivysaur;Venusaur;Charmander;Charmeleon;Charizard;Squirtle;Wartortle;Blastoise;Caterpie;Metapod;Butterfree;weedle;Kakuna;Beedrill;Pidgey;Pidgeotto;Pidgeot;Rattata;Raticate;Spearow;Fearow;ekans;Arbok;Pikachu;Raichu;Sandshrew;Sandslash;Nidorina;Nidoqueen;Nidorino;Nidoking;clefairy;Clefable;Vulpix;Ninetales;Crobat;Gastly;Talonflame;Granbull;Zubat;Golbat;Diglett;Dugtrio;Oddish;Gloom;Vileplum;Paras;Parasect;Venonat;Venomoth;Meowth;Persian;Psyduck;Golduck;Mankey;Primeape;Growlithe;Arcanine;Poliwag;Poliwhirl;Poliwrath;Abra;Kadabra;Alakazam;Machop;Machoke;Machamp;Bellsprout;Mankey;Mew;Mewtwo]]
$nomention
$replyIn[4s]
$title[Guess The Pokémon]
$description[Need a Hint? No.
__Type !pcatch to catch it.__
**Note**: Make sure the first letter of the pokémon is capitalized.]
$image[https://professorlotus.com/Sprites/$getServerVar[pokemon.spawn]]
$footer[Requested by $username]
$addTimestamp
$color[#36393e]
$nomention
$reply
$onlyIf[$getServerVar[pokemon.spawn]!=;❌ The Pokémon is already claimed.]
$onlyIf[$message==$getServerVar[pokemon.spawn];❌ Incorrect Pokémon.]
$title[Pokémon Caught]
$description[<@$authorID>, You have successfully caught **$message[1;pokemon]** 🎉]
$footer[Check your inventory by using !pinv]
$color[#36393e]
$setUserVar[pokemon.caught;$getUserVar[pokemon.caught;$authorID]
$getServerVar[pokemon.spawn];$authorID]
$setServerVar[pokemon.spawn;]
$nomention
$reply
$title[Pokémon Inventory]
$description[
__**$displayName[$findUser[$message[1;user]]]** 's Pokémon Inventory__
$if[$getUserVar[pokemon.caught;$findUser[$message[1;user]]]==]> no pokémons yet.
$else >>> $getUserVar[pokemon.caught;$findUser[$message[1;user]]] $endif
]
$color[#36393e]
$footer[A game played by $username]
$addTimestamp