GithubHelp home page GithubHelp logo

legendarius116 / pmd-rp-alpha-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 59 KB

Generates enemies with randomized stats for a homebrewed roleplay.

Home Page: https://pmd-alpha-generator.herokuapp.com/

Python 82.05% CSS 0.43% HTML 17.52%
pokemon mystery-dungeon dnd roleplay random-generator

pmd-rp-alpha-generator's Introduction

Pokémon Mystery Dungeon: Alpha Roleplay Enemy Generator

This project was developed for a friend DM'ing a homebrewed, D&D-esque roleplay. This appplication takes a Pokémon species and level and generates an enemy with randomized stats. The stat distribution is based on the following design.

Every time a Pokémon levels up, he/she receives 3 stat boosts, which they can assign to any stat. However, each boost gives different points depending on the stat. Below is a table showing the points per boost for each stat.

Stat Points per Boost
HP 3
Attack 4
Defense 6
Special Attack 4
Special Defense 6
Speed 3

Given a species, their starting stats (as a Level 1 Pokémon) are given below.

Stat Starting Value at Lv. 1
HP Base HP / 2
Attack Base Attack
Defense Base Defense
Special Attack Base Special Attack
Special Defense Base Special Defense
Speed Base Speed

Given a valid level (1-100), the application will generate 3*(level-1) boosts, each of them randomly selected from the six available stats. After they are selected, each stat boost is applied according to its respective points per boost to the Pokémon's starting stats.

For example, take a Lv. 2 Pichu. After that first level up, the Pichu decides to invest 1 stat boost in HP, 1 in Attack, and 1 in Special Defense. The table below shows the Pichu's stats before and after the boost.

Stat Before After
HP 10 10 + 3 = 13
Attack 40 40 + 4 = 44
Defense 15 15 + 0 = 15
Special Attack 35 35 + 0 = 35
Special Defense 35 35 + 6 = 41
Speed 60 60 + 0 = 60

Usage

  1. Navigate to the web application.
  2. Enter the name of a Pokémon's species. If it is invalid, the application will show an error after clicking Submit.
  3. Enter the level. If it is not within the range 1-100, the application will show an error after clicking Submit.
  4. Click submit, and it should show you your generated enemy with randomized stats!

Alternate Forms

To generate a Pokémon in its Alolan form (if applicable), type "-Alola" after the species name, e.g. "sandshrew-alola".

To see a full list of forms, see the Pokeapi Documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.