Some of you may know that I have a list I maintain that couples all the existing "official" monsters from 4th Edition Dungeons & Dragons with all the Terrain and Climate data that was present in every previous edition. This list was born from my frustration with the existing 4E Monster Manual and that the designers decided that Terrain and Climate data should be stripped from the source books as unneeded fluff. OK - for some of the monsters the data is there in the Lore sections, but its not consistently present. So, I made a big list of all the monsters and research all their terrain and climate info from every previous edition. I then presented the list to rest of you - and it seems people are downloading it (from my server stats at least). But, for me.. this does not have enough kkool. So...
What I'm basically interested in eventually doing is making a series of widgets that can be dropped into any blog or webpage, that serve to dynamically link back to my Core Lists. To do this I'll need to
- Learn JavaScript (can't be too hard, seems simple enough)
- Learn how to use the Google Documents API
- Learn how to use JSON to pull my Google Spreadsheets data as an RSS feed.
- Learn how to use JavaScript to parse the data and display it on a page.
Two hours of messing around with JavaScript for the first time, and reading through several Google API documents and I was able to come up with the following SIMPLE static script result that spits out the Rituals Core List as a unordering list (I'll add interactivity later)
Here's the silly little scriptlet code i came up with:
<script> |
And here's what it does... i know.. it looks like I typed it out, but this is what it looks like once rendered:
http://spreadsheets.google.com/feeds/list/p6th3bqNYPflsFyxmZsAEcw/od6/public/basic
Rituals in 4E
What is significant, to me, is that in one evening I've figured out how to make calls to my Google Spreadsheets from inside a JavaScript without anything too too fancy. In short, I learned something - and that is a good thing.
I'll keep you all posted on how this little project progresses.
Let me be the first to offer encouragement and praise!
ReplyDeleteI sometimes sit down and want to start programming some game related stuff, but after coding all day at the office, I just want to do something else when I get home.
Keep up the outstanding work!
And when I think about programming something game related, and want to slit my wrists because of how boring I find programming :)
ReplyDeleteBut I'm always happy to have other people program useful stuff that I can use!