The RPG Maker Resource Kit

RMRK General => Creativity => Topic started by: bluntsword on December 04, 2015, 10:33:50 PM

Title: Coding/Storying question... I guess.
Post by: bluntsword on December 04, 2015, 10:33:50 PM
What kind of effort would it take to code a program to grab text from a website (specifically this (http://donjon.bin.sh/) one) and put it into a mostly ordered but somewhat random progression?

For instance:
Have the program grab the first paragraph under theme here (http://donjon.bin.sh/fantasy/adventure/), and then two character's names from here (http://donjon.bin.sh/fantasy/random/#type=npc;order=Adventurer).

I know "Well just copy and paste it" is a good solution but SURELY there's got to be a way to code something that could just grab peices of that website and throw it into a text document.

The result would look like a story, or at least an outline of one.

Am I making sense?
Title: Re: Coding/Storying question... I guess.
Post by: Acolyte on December 05, 2015, 12:41:57 AM
I don't think coding the program itself would be that hard, but I think the information would need to be organized into some sort of database first.
Title: Re: Coding/Storying question... I guess.
Post by: bluntsword on December 05, 2015, 12:47:40 AM
Hmm.

So hit "random" on those things a ton, catalog them, then write program?

I assume there would need to be a fair bit of "this goes here" and "insert this over there."

So technical.
Title: Re: Coding/Storying question... I guess.
Post by: Acolyte on December 05, 2015, 12:56:54 AM
Yeah pretty much.
Title: Re: Coding/Storying question... I guess.
Post by: bluntsword on December 14, 2015, 03:27:44 PM
This.

I need help thinking about how to edit something like this to do what I'm looking for.

http://pastebin.com/vktYxMw6

This comes from this NaNoGenMo post: https://github.com/dariusk/NaNoGenMo-2015/issues/168