So as I am terrifically lazy and my own hatchery is a bit of a joke, I thought it'd be entertaining to make a program in Python that writes and formats little dragon blurbs for me.
The current program asks me to put in the dragon's ID, which it uses to generate the image and links of the dragon. I also have to type in the dragon's primary, secondary, and tertiary, as it uses those to generate the sentences in the bio, give a title for use in the sales quote, and specify whether the dragon's male or female (which changes the gender used in the sentences).
After that, it... well, it does this. Note that the purchase button does actually work if you put in a dragon that's on the AH - I just didn't want to be advertising in the creative corner, haha.
So yeah, that's where I'm at! Just thought I'd use this thread to track what I'm doing with the thing. At the moment I think I wanna add more sentences, maybe have sentences that pick from the genes you put in as well - maybe even have a GUI so I can put dragons in faster, or a means of doing up the bios in batches.
The terrifically lazy code can be found here, just copy it into PyCharm if you want to try it out. It's kind of spaghetti at the moment, soz.
edit: Got it doing batches and gender-specific wording, though the implementation on gender could be a whole lot more elegant! I'll fix it down the line.
The current program asks me to put in the dragon's ID, which it uses to generate the image and links of the dragon. I also have to type in the dragon's primary, secondary, and tertiary, as it uses those to generate the sentences in the bio, give a title for use in the sales quote, and specify whether the dragon's male or female (which changes the gender used in the sentences).
After that, it... well, it does this. Note that the purchase button does actually work if you put in a dragon that's on the AH - I just didn't want to be advertising in the creative corner, haha.
LOCAL LADY EXTREMELY IMPRESSED WITH BROMPUTER CODE wrote:
DUDE! DUUUUUDE wrote:
So yeah, that's where I'm at! Just thought I'd use this thread to track what I'm doing with the thing. At the moment I think I wanna add more sentences, maybe have sentences that pick from the genes you put in as well - maybe even have a GUI so I can put dragons in faster, or a means of doing up the bios in batches.
The terrifically lazy code can be found here, just copy it into PyCharm if you want to try it out. It's kind of spaghetti at the moment, soz.
edit: Got it doing batches and gender-specific wording, though the implementation on gender could be a whole lot more elegant! I'll fix it down the line.