Back

Guides

Community created guides, helpful strategies, and more.
TOPIC | [Tool] Random Dragon Generator in Python
[b]I've been teaching myself Python programing recently and one of the projects I decided to do while following the youtube courses was a Random Dragon generator for Flight Rising![/b] It helped me practice using lists, variables, while/if loops, dictionaries, and escape sequences for colors! If you want to try it out, here is the link! https://replit.com/ @VariantLoki/Random-Dragon-Generator?v=1 (Remove the space before the @. For some reason these URL's break BB code) You don't have to download anything! Just open the link and click the "run" button on the right (or below if you're on mobile). The program will run in your browser using the Replit site to execute the code. (Formatting may look odd on mobile! I'm working on seeing if it's possible to fix it. [b]Note for mods[/b]: There is [b]zero[/b] data being scraped or pulled from Flight Rising with this, I have entered in all the breeds, genes, colors, elements, etc manually. [i]Which is partially why the code is over 200 lines long.[/i] [b]Second note for mods[/b]: The URLs for Replit have @ signs in them, which Breaks BB code and wont allow me to properly link them even when just pasting the link. I can confirm the site is safe and there is no malicious intent in my codes. [center][img]https://i.imgur.com/eUaj9Cv.png[/img][/center] If you have any suggestions for similar projects I could take on, I'd love to hear them! I'm still very much a beginner, but doing interesting projects involving something I enjoy is much more fun than following simple tutorials all day. ----- [b]Future project ideas[/b] [list] [*] BB code generator for dragon sales/auctions [*] Choose your own adventure [*] BB code generator for listing large lists of items/skins? [/list] ----- I also have a few other projects I made while practicing if you want to take a look at those: Rememeber to remove the space before the @! [b]Random Pokemon Generator:[/b] https://replit.com/ @VariantLoki/Random-Pokemon-Generator?v=1 [b]US Currency Counter: [/b] https://replit.com/ @VariantLoki/Money-Counter?v=1 [b]DnD Dice Roller[/b] https://replit.com/ @VariantLoki/Dice-Roller?v=1
I've been teaching myself Python programing recently and one of the projects I decided to do while following the youtube courses was a Random Dragon generator for Flight Rising!

It helped me practice using lists, variables, while/if loops, dictionaries, and escape sequences for colors!
If you want to try it out, here is the link!

https://replit.com/ @VariantLoki/Random-Dragon-Generator?v=1
(Remove the space before the @. For some reason these URL's break BB code)

You don't have to download anything! Just open the link and click the "run" button on the right (or below if you're on mobile). The program will run in your browser using the Replit site to execute the code. (Formatting may look odd on mobile! I'm working on seeing if it's possible to fix it.

Note for mods: There is zero data being scraped or pulled from Flight Rising with this, I have entered in all the breeds, genes, colors, elements, etc manually. Which is partially why the code is over 200 lines long.

Second note for mods: The URLs for Replit have @ signs in them, which Breaks BB code and wont allow me to properly link them even when just pasting the link. I can confirm the site is safe and there is no malicious intent in my codes.
eUaj9Cv.png

If you have any suggestions for similar projects I could take on, I'd love to hear them! I'm still very much a beginner, but doing interesting projects involving something I enjoy is much more fun than following simple tutorials all day.

Future project ideas
  • BB code generator for dragon sales/auctions
  • Choose your own adventure
  • BB code generator for listing large lists of items/skins?

I also have a few other projects I made while practicing if you want to take a look at those:

Rememeber to remove the space before the @!

Random Pokemon Generator:
https://replit.com/ @VariantLoki/Random-Pokemon-Generator?v=1

US Currency Counter:
https://replit.com/ @VariantLoki/Money-Counter?v=1

DnD Dice Roller
https://replit.com/ @VariantLoki/Dice-Roller?v=1
QoiHu86.png
[center][b][size=5]An Update![/b] ----- I'm still messing around with this as I learn more concepts and functions with Python.[/center] [list] [*]I've added a scry link which you can click to see your randomly generated dragon! [*]The statistics page has been fixed to correctly calculate the number of possible dragons (I was using an incorrect variable before so it was way off) [*]Using Pandas for python i've converted the outputs into dataframes for easier formatting and display. Now I don't have to manually align the text correctly. [*]The console will now clear itself between each randomized output and when viewing the statistics for easier readability [/list] [center][img]https://i.imgur.com/M2KDDMW.png[/img]
An Update!
I'm still messing around with this as I learn more concepts and functions with Python.
  • I've added a scry link which you can click to see your randomly generated dragon!
  • The statistics page has been fixed to correctly calculate the number of possible dragons (I was using an incorrect variable before so it was way off)
  • Using Pandas for python i've converted the outputs into dataframes for easier formatting and display. Now I don't have to manually align the text correctly.
  • The console will now clear itself between each randomized output and when viewing the statistics for easier readability
M2KDDMW.png
QoiHu86.png