| View previous topic :: View next topic |
| Author |
Message |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Thu Apr 26, 2012 5:13 pm Post subject: [FC] Fantasy Companion Loot Generator |
|
|
A month or so ago, I decided I wanted to brush up on my JavaScript and learn jQuery while also dabbling with CSS3. As an experiment, I created a Loot Generator based on the tables in the Fantasy Companion. It's also mobile friendly.
Enjoy, and let me know what you think of it!  _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator
Last edited by Amaril on Wed Mar 13, 2013 5:49 am; edited 1 time in total |
|
| Back to top |
|
 |
SavageGamerGirl Heroic

Joined: 24 Oct 2010 Posts: 1258
|
Posted: Thu Apr 26, 2012 5:15 pm Post subject: |
|
|
Oh that is very nice! Thanks! _________________ 'But I don't want to go among mad people,' Alice remarked.
'Oh, you can't help that,' said the Cat: 'we're all mad here.'
The Order of the Dice... OF DOOM! |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
|
| Back to top |
|
 |
GreenTongue Veteran

Joined: 30 Jul 2003 Posts: 999 Location: Orlando, FL
|
Posted: Sat Apr 28, 2012 8:09 am Post subject: |
|
|
Who doesn't like LOOT!!!!
Very nice for spawning those "Why?" ideas.
= |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Sat Apr 28, 2012 8:25 am Post subject: |
|
|
| GreenTongue wrote: | Who doesn't like LOOT!!!!
Very nice for spawning those "Why?" ideas.
= | I've had so many ideas just from the combinations of powers and bonuses generated. The number of stories one can come up with for these items is endless. _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator
Last edited by Amaril on Mon Apr 30, 2012 10:01 am; edited 1 time in total |
|
| Back to top |
|
 |
Ketjak Novice

Joined: 21 Jan 2012 Posts: 30
|
Posted: Mon Apr 30, 2012 9:17 am Post subject: |
|
|
| Nice work making it mobile-friendly; thanks and bookmarked! |
|
| Back to top |
|
 |
sablemage Seasoned
Joined: 26 Feb 2008 Posts: 247 Location: Directly above the centre of the Earth
|
Posted: Mon Apr 30, 2012 1:09 pm Post subject: |
|
|
Ooh! Shiny!
Thanks for this, good stuff. |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Mon Apr 30, 2012 2:12 pm Post subject: |
|
|
Thanks again. Designing two stylesheets for this project was a little bit of a challenge. I kept having to make sure whatever additions I made to the screen stylesheet were added to the mobile version. I also had to make sure to exclude those elements from the print CSS. _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
|
| Back to top |
|
 |
SavageGamerGirl Heroic

Joined: 24 Oct 2010 Posts: 1258
|
Posted: Tue May 01, 2012 10:46 am Post subject: |
|
|
If it's not too much work for you, that would be awesome! _________________ 'But I don't want to go among mad people,' Alice remarked.
'Oh, you can't help that,' said the Cat: 'we're all mad here.'
The Order of the Dice... OF DOOM! |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Tue May 08, 2012 9:31 am Post subject: |
|
|
In an effort to teach myself more about PHP, I decided I'm going to convert this project to an app that uses PHP for server-side scripting. I also plan to add one more feature left out of the scope of the original version: Cursed Relics! That's right. When the PHP version is finished, you'll be able to include Cursed Relics in your possible results. _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
77IM Heroic

Joined: 23 Jun 2009 Posts: 1591 Location: Austin, TX
|
|
| Back to top |
|
 |
Cursed Novice
Joined: 31 Jul 2009 Posts: 25
|
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Wed May 16, 2012 9:21 am Post subject: |
|
|
| 77IM wrote: | | This is incredible! Nice work! |
Thank you for the kind words!
| 77IM wrote: | | I find it extremely humorous that using PHP causes you to introduce cursed relics. ;} |
I could have included it in the JavaScript version, but that would have been a curse in and of itself. Lately, I've been busy with simply converting the scripted tables. I think I might stop midway and use what I've converted so far to build and test functionality, then return to finishing and including the remaining tables.
I was just talking about that article with someone the other day. It's a classic.  _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Mon Jun 11, 2012 9:23 pm Post subject: |
|
|
Well, I finally finished the conversion to PHP and introduced quite a few UI changes, mostly related to options for the type of item to generate.
http://www.immaterialplane.com/apps/loot/
During the process, I also found a slew of scripting errors pertaining to the logic used. For example, the placement of the script that builds the Attributes for Intelligent Relics caused them to not be saved to the array appropriately, resulting in consistently low die sizes. Now you should be seeing much higher Smarts and Spirit dice.
I haven't created the script for cursed relics yet, and probably won't for some time. Instead, I plan to work on a component that will allow you to save items you've generated to the 'reliquary' with an option to make them public for users to search and browse by type, bonuses, powers, etc.
I might also create an option to submit items that might reflect errors in the script into a 'dump' for review.
I'll be honest, I'm not too keen on the new UI. The consolidated options section is way too long for my taste, but it beats multiple clips/taps to change a binary value that should only require one click.
Please kick the tires as hard as you can and post results here. As I've said in the past, this is a learning exercise for me, so the more mistakes discovered or improvements I can make, the more I learn.  _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
Thunderforge Veteran
Joined: 24 Sep 2009 Posts: 927
|
Posted: Tue Jun 12, 2012 12:38 pm Post subject: |
|
|
Any chance we can make custom treasure sizes outside of the base four? Basically, I'd just like to be able to write in the formula for the amount of gold and the percentage that there will be a magic item. _________________ Wild Card Creator: Any PDF. Any Setting. No Extra Cost.
The Elder Scrolls conversion and other fun creations. |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Tue Jun 12, 2012 12:41 pm Post subject: |
|
|
| Thunderforge wrote: | | Any chance we can make custom treasure sizes outside of the base four? Basically, I'd just like to be able to write in the formula for the amount of gold and the percentage that there will be a magic item. | That's an interesting idea. It wouldn't be too difficult with a couple of text fields, and that portion of the generation is actually done in javascript on the client side (determines if there's any treasure to generate before calling the rest of the scripts).
I'll add it to my to-do list. _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
Amaril Heroic
Joined: 17 Dec 2008 Posts: 1066 Location: Decatur, GA
|
Posted: Thu Jun 14, 2012 8:44 pm Post subject: |
|
|
| Thunderforge wrote: | | Any chance we can make custom treasure sizes outside of the base four? Basically, I'd just like to be able to write in the formula for the amount of gold and the percentage that there will be a magic item. |
Done! hit the drop down, select "Custom..." and enter your desired parameters.
Feel free to suggest improvements to that particular section of the UI if you have any. _________________ Kristian
Savage Bloggers Network
Savage Worlds Google+ Community
Fantasy Companion Loot Generator |
|
| Back to top |
|
 |
tigerguy786 Seasoned

Joined: 26 Nov 2011 Posts: 434
|
Posted: Thu Jun 14, 2012 9:53 pm Post subject: |
|
|
How about an item generator? I realize that's probably a big task, but it would be handy. _________________ TIGER, tiger, burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?
| Clint wrote: | | Common sense always trumps anything pretending to be an "overarching" rule. |
|
|
| Back to top |
|
 |
|