WildMagic is a lightweight webapp to give you random spell effects from the Net Libram. Inspired by the Wild Magic Sorcerer in D&D, I was driven by laziness to create this tool to regurgitate a random spell effect from the Net Libram of Random Magical Effects Version 2.00 by Orrex.
Check out a live version of the application, running on cPanel using Phusion Passenger.
Once you have your Python environment configured (see prerequisites), you should be able to clone-n-go. I also created this with some level of extensibility in mind, and I may improve this in the future. Currently, if you want to use a different set of effects, you should be able to simply replace netlibram.txt with your newline-delimited list of effects. Any further changes or additions might require some extra mucking about in the code. Hopefully I'll make that better someday.
WildMagic runs in Python 3.x with a few extra things. I'm not going to flesh out how to configure your Python env, because many others before me have done excellent jobs. The only non-default package that I use is flask
.
Flask ships with Jinja2, which I make use of to prettify the page.
If your Python env is configured with Flask, you should be able to clone and then run the following:
> python web.py
The console will display some helpful info about how to connect to the server from a browser, some fun warnings, as well as the requests that it's serving.
If you are deploying using cPanel and Phusion Passenger, you must set application = app
in web.py, and then include from web import application
as the only line in passenger_wsgi.py. For deploying on other platforms, see Flask Deployment Options.
- Flask - The microframework used
- Jinja2 - HTML templating framework bundled with Flask
- web.illinois.edu - cPanel hosting
If you notice any bugs, text errors, or unexpected behavior, or if you have a feature request, feel free to start an issue or submit a pull request.
- Keelan Lang - klang-uofi
This project is licensed under the GNU GPL - see the LICENSE.md file for details
- Orrex, for creating the Net Libram
- Wizards of the Coast for publishing 5E
- Stu, for being a kind enough DM to let me use the Net Libram as a
- Braxton and Kyle for helping me think through this and turning me around when I started sprinting in the wrong directions.