Karui Kage |
12 people marked this as a favorite. |
Well, I've finally completed it. It was a project I started a long time ago, but eventually lost interest in (along with losing what code I had done at that point). Thanks to my Kingmaker group, however, I decided to spend a day or two over my break working on it. After manually rolling for just a few minor items in their kingdom's magic item slots, I dreaded what it would be like when they got more and more open slots to fill with magic items.
So, my desire for "click of a button" convenience strong, I hunkered down and coded this program up. I've learned a lot with C since my first attempt at this, and am proud with the final application that I've made.
What exactly does this program do, you might ask? Well it does a few things:
Individual Generation
This is the first tab you'll see when opening the program. It's pretty self-explanatory. Pick a number of minor, medium, or major items of specific types and click the button. It will pop out random choices based on your selections. If you're curious, Minor Rods and Minor Staves are missing for a reason, that being that the Core Book does not have any of those types.
City Generation
Using the rules in the Core Book for how many items of each type can pop up in various city sizes, this tab will genearate items for a certain city size based on your selection.
Kingdom Generation
What I, personally, will be using the most, this allows you to set how many slots of each Item Type your kingdom has (in a Kingmaker or similar campaign) and generate the appropriate items each month.
Those are the various sections. How do I calculate everything though? Well, I tried to be as comprehensive as I could, and this is what it comes down to:
- Randomly generated items are done so using the tables in the GameMastery Guide and the Core Rulebook.
- Armor and Weapons are done so that no two special abilities of the same type will be generated, and if two similar ones (shock and shocking burst) pop up, it will assign the better.
- Armor and Weapons are capped at an effective +10 modifier.
- Special materials are assigned as per the GMG.
- The GP value of anything generated IS shown, and I made great effort to make sure that it is calculated as accurately as possible. Adamantine/Mithral adds different amounts dependent on what it's on, same with other materials. Enhancement bonuses are priced accordingly, etc.
Stuff I don't currently have in that will likely be added in the future:
- There is, according to the Core book, a 1% chance for a Ring, Rod, or Wondrous Item to be intelligent. I don't have that chance in yet, but plan on adding it later on.
- A reset button will be added to each tab with the next version.
- The color of dragonhide, if it comes up, will be generated.
Anyhow, give it a try! Every item possible through random item generation using the Core Book and GMG should be in there and priced properly. It should work fine on systems with .NET framework 3.5 and higher. I don't know how well it will work on a Mac, but if it has issues and someone wants to walk me through making it work for them, I'd be happy to listen.
Also, please forgive the crude layout. I'm not much of a UI guy, so I don't really know a lot about appearances and such. Again, if anyone wants to help me out there, I'd be happy to listen.
Enjoy!
flash_cxxi RPG Superstar 2009 Top 32 |
Niiiiice! Just been playing with it and it looks good. :)
Any way to make the window maximise to fill the screen? When you generate more than 3 items you have to scroll in a confined window of text, especially for some of the more expensive items when they take up 2 lines.
Other than that one issue, it looks pretty damn awesome. Grats dude.
Karui Kage |
Ah, yeah, I did forget to mention that. Making the contents of the program scale with the window is something I really am not sure how to do, and from what I've seen involves a lot. So this, like other programs I've made, has the window locked. If I ever figure out a simple way to make things scale then that'll change, no guarantees on when then.
If the text boxes are too small though, I could just make the program itself (and the windows) a bit bigger, that wouldn't be too hard.
flash_cxxi RPG Superstar 2009 Top 32 |
Ah, yeah, I did forget to mention that. Making the contents of the program scale with the window is something I really am not sure how to do, and from what I've seen involves a lot. So this, like other programs I've made, has the window locked. If I ever figure out a simple way to make things scale then that'll change, no guarantees on when then.
If the text boxes are too small though, I could just make the program itself (and the windows) a bit bigger, that wouldn't be too hard.
Cool. It's not a huge issue, so don't go out of your way for it.
Do you plan on adding in the stuff from the APG at some point? And dare I ask... Do you plan on releasing a Golarion specific version that incorporates items from all of the various Golarion/Pathfinder sources?
Karui Kage |
I had considered it. If they release some random item tables for all of that stuff, then most definitely. Otherwise, I might come up with my own in the future when I get the time again. I really wanted to get this done before our next Kingmaker game (in 7 hours, so yay timing), but adding in all the other possible items from the APG and my Archives was on my mind.
RuminDange |
This is very cool. Good work.
Is this in C or C#.NET? I ask due to security warnings I get when closing the application for it trying to modify some .NET config files in the .NET system folders. This was alerted to me by the security software I use.
If it is .NET, you could always look at anchoring the text box controls to the left,right and top,bottom to have them stretch with the form during resizing.
RD
Thazar |
That is super awesome! Thanks for putting it together as I will be using this a lot in the future.
As a general aside since this does not have any of the items in the APG or various other source books my plan for now is to use this tool as is. However, whenever something comes up that I don't like as a DM... or something comes up as a duplicate... I will pick something on the fly from the APG or from a regional source book for where the PC's are currently located. That gives me a back up as well as letting me tailor the items by market for a little more world flavor.
Karui Kage |
That is super awesome! Thanks for putting it together as I will be using this a lot in the future.
As a general aside since this does not have any of the items in the APG or various other source books my plan for now is to use this tool as is. However, whenever something comes up that I don't like as a DM... or something comes up as a duplicate... I will pick something on the fly from the APG or from a regional source book for where the PC's are currently located. That gives me a back up as well as letting me tailor the items by market for a little more world flavor.
Definitely feel free to do so! I only included what I did because that was all I had random tables for. I would be happy to include other items if they released new random tables to include them. :)
and RuminDange, it is in C#.NET 3.5. I normally go with C++ at work, but C# was just so much easier to work with at home (no need to worry about too much memory handling and the like). I will see if I can anchor the text boxes and try stretching things a bit, thanks for the tip!
Aremis |
Well, I've finally completed it. It was a project I started a long time ago, but eventually lost interest in (along with losing what code I had done at that point). Thanks to my Kingmaker group, however, I decided to spend a day or two over my break working on it. After manually rolling for just a few minor items in their kingdom's magic item slots, I dreaded what it would be like when they got more and more open slots to fill with magic items.
So, my desire for "click of a button" convenience strong, I hunkered down and coded this program up. I've learned a lot with C since my first attempt at this, and am proud with the final application that I've made.
What exactly does this program do, you might ask? Well it does a few things:
Individual Generation
This is the first tab you'll see when opening the program. It's pretty self-explanatory. Pick a number of minor, medium, or major items of specific types and click the button. It will pop out random choices based on your selections. If you're curious, Minor Rods and Minor Staves are missing for a reason, that being that the Core Book does not have any of those types.City Generation
Using the rules in the Core Book for how many items of each type can pop up in various city sizes, this tab will genearate items for a certain city size based on your selection.Kingdom Generation
What I, personally, will be using the most, this allows you to set how many slots of each Item Type your kingdom has (in a Kingmaker or similar campaign) and generate the appropriate items each month.Those are the various sections. How do I calculate everything though? Well, I tried to be as comprehensive as I could, and this is what it comes down to:
...
- Randomly generated items are done so using the tables in the GameMastery Guide and the Core Rulebook.
- Armor and Weapons are done so that no two special abilities of the same type will be generated, and if two similar ones (shock and shocking burst) pop up, it will assign the better.
- Armor
Great Tool thank you!!!
flash_cxxi RPG Superstar 2009 Top 32 |
Mortagon |
Thank you for taking the time to make this. I have been looking for a good magic item generator for my games. As another poster mentioned above it would be even greater if it included items from the APG and the various Golarion books as well, I usually forget about that stuff when I generate treasures for my encounters and it would add some sorely needed verisimilitude to my pc's item outfit.
chopswil |
Hmm, it wouldn't be too difficult to add the APG in, just a bit time consuming. Well, there seems to be enough desire for it, I can probably work on that when I get my next bit of free time for Pathfinder coding. :)
APG magic items are in the Magic Item DB on pfd20srd in excel format
or if you want I could send you my SQL Server backup if you want a real DBdrop me a line chopswil at comcast dot net
Drejk |
Nice, neat and useful application.
Did you thought about keeping data base as separate file(s) (I think that something that could be edited in ascii editor would work the best) to make it customizable for each user? It would also make adding materials from other sources easier.
Nethys, you never fail to disappoint.
Either I got lost between negation of negative negatives or that sentence does not refer to Nethys's item generator ;)
Karui Kage |
I thought about it, yes. At the time, I was attempting to do this while on a short break from work, so I wanted to keep the program as simple as possible. I don't imagine it would have been *that* much more work to add in some kind of function to grab another file, read it, analyze, and use it... but it would have been extra work. :)
In the end, my ultimate goals are:
1. Take everything that's currently on my website (along with anything new that comes out) and stick it in a SQL server.
2. Convert my website entirely over to .NET and change it so it only pulls data from the SQL server, adding in a few filters so people can better search and customize each page.
3. Write some kind of Character Sheet app for mobile phones.
A. While this is all going on, occasionally update the random item generator to include options for other books and material.
All of this while working a full time job plus overtime to move up to a full time programming position. :)
Oh, and while running a weekly Kingmaker game and a biweekly Serpent's Skull game.
Toss in hanging out with friends, board games, dates, and more, and you have one busy Nethys. ;)
Drejk |
1. Take everything that's currently on my website (along with anything new that comes out) and stick it in a SQL server.
2. Convert my website entirely over to .NET and change it so it only pulls data from the SQL server, adding in a few filters so people can better search and customize each page.
3. Write some kind of Character Sheet app for mobile phones.
A. While this is all going on, occasionally update the random item generator to include options for other books and material.All of this while working a full time job plus overtime to move up to a full time programming position. :)
Oh, and while running a weekly Kingmaker game and a biweekly Serpent's Skull game.
Toss in hanging out with friends, board games, dates, and more, and you have one busy Nethys. ;)
Good for you that you didn't included such obviously boring, unproductive mortal concerns as sleeping and eating. You will save a lot of time that way ;)
Glock-9mm |
+1
Great little program, What would add to this (Though from reading about your busy life I expect its a pipe dream) would be having the ability to generate a GP ammount of random items.... IE: Set it to generate 20k worth of random "Minor" items.
Then I could dump it all onto my monsters/npcs for use! lol
But like I said, I feel your time contraints
Karui Kage |
I'll be adding two new tabs to this app shortly. One to generate items by total GP value, and the other to generate gear for NPCs based on the values in the core book (that place where they say that an NPC has X GP of gear, 40% is weapon, 30% is armor, etc.).
Besides those two things and more material, can anyone think of some other suggestions?
Also, someone suggested that I release this as a mobile app, which is something I hadn't thought of before. I'd likely need to stick to the core book stuff to avoid having to change any of the proper named things, but would people like to have this as a mobile app? If there's enough desire, then it probably will be worth transferring over to iPhone and Droid.
vagrant-poet |
Other than adding to requests that the APG stuff is maybe incorporated this is great. Thank you so much. I like being able to randomly generate some treasure when the PCs do something unexpected or for a random encounter.
Maybe a way to turn on or off the inclusion of APG stuff, or two versions. One with, one without? That said, all the APG stuff is on the prd, so that's not a really vital feature.
Karui Kage |
Version 1.1 Done!
Added a new tab for generating a total number of items by total GP value. Want to get 10,000 GP of medium items? Now you can!
Also fixed an error where Bashing could be generated on a buckler or tower shield. Since they can't be used to shield bash (well, I suppose a buckler could if you took that Rondelero Duelist alternate class for fighters) there is no purpose in having them possess Bashing.
Same link as above: Nethys's Random Item Generator for the Pathfinder RPG
Also, I am working on a version for the Mac, and possibly for the Droid/iPhone. No ETA, but it's on my to-do list.
Cowjuicer |
You are a god among Pathfinder fans. This tool is wonderful.
Unfortunately, because I have a netbook and not a full-size laptop, when I run my games, I cannot use the tool - it will not scale down beyond a certain smallness!
Is there any way you could adjust this - or perhaps place another "generate" button near the top of the window?
I would buy an Android version as well.
Cult of Vorg |
I do love this. Wish I could get it to the gaming table, though, would definitely pay for that. I'm thinking I'll use the Kingmaker tab to pregen 20 or so items, then roll off that smaller list for random loot.
If you're looking to expand, I dig the GMG's new random loot tables. (although it would be nicer to also have random tables for the mundane loot results instead of having to price it up, being always fun to have truly random items in a lair loot pile, and would save me from writing it into the margins of my core book).
Karui Kage |
Thanks for all the feedback guys. I've been very busy at work (60 average hours, 70 this week) and haven't had a lot of time to work on anything Pathfinder related, sadly. I am actually looking forward to a short break in my contract when I can catch up on everything.
In any event, I will do my best to write an Android app. I don't want to take any donations or anything yet as I have no idea when, but it's on my list.
As for a smaller version, I can actually do that right now. In fact, I just did.
Nethys's Random Item Generator v1.2 w/condensed size version
The above includes both the normal size and a version that is slightly smaller. I made it as small as I could while still keeping the buttons and such in usable places, but might tweak with it further in the future.
Only change with v1.2 is a similar one to v1.1, I just forgot that the Bashing quality could still be added to Tower/Buckler if said Tower/Buckler was generated as a result of magic armor spikes or shield spikes popping up. It's fixed now. Yay!
Oh, and Cult of Vorg, all the tables I use in the code actually come from the GMG and Core book, so that's already there. In the future I might just add in items from various splats to the tables at a 1% per rate or something, assuming whoever uses it checked to allow them. -shrug-
Again, one of those things I can do when I get the time.
Nethys out!
Karui Kage |
Fixed a pretty major bug in the way items for various cities are rolled. As was pointed out to me in another thread, items below a city's GP Value (50 GP for a thorp, for example) are actually re-rolled. I missed that one line and had been rolling without consideration for cost.
Anyhow, that's fixed. You'll notice as well that I'm only including the new smaller version of the program. I accidentally saved over the larger one, and while it wouldn't take me too long to change the layout so it's a bit bigger, I think the small version works just fine.
If people really miss the bigger version though, let me know and I'll upload 1.3 as the larger one.