Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Pets with Personality? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4556)

Kyttias 06-26-2014 05:13 PM

Pets with Personality?
 
I was stumbling through random generators earlier and one I found had a distinct pattern:

"This {adjective}{age}{species} is {size} and {intelligence}. {Gender} likes {likes} and hates {hates}."

I think this is cool from the sense someone could integrate random generation for their creatures, from a purely flavor text standpoint.

"This affectionate young {species} is smaller than average and unusually intelligent. {Gender} likes making noise and hates strangers."

You could even include one to three likes and hates, also randomized. Each creature will feel unique as they pull from a random array that sticks with them their entire life, except for age, which should change based on their level.

I think this might be a fun feature to implement. Enough so that if anyone had interest in making it, I'd be willing to pay a bit for it just so the entire community could have it if they wanted it. ovo

squiggler 06-26-2014 06:31 PM

This might be fun to have. It's definitely not on my priority list, but I would enjoy this feature.

tahbikat 06-27-2014 10:53 AM

Support! I really want personalities. :P

Hwona 06-27-2014 12:22 PM

I tried doing something similar, but I don't think I know the best way to do this. XP You could try to add an extra column in the owned_adoptables database. Then, on each page where an adoptable is created, you could select a random word from an array and then put that into one of the columns. I'm using v.1.3.3, but I can try and play around with some things. :3

Hall of Famer 06-27-2014 10:37 PM

It actually isnt difficult, unless its time-based and require cron jobs/scheduled tasks. The real question is, what do you want the pets personality to do? Is it just for display on pets profile to make it look more interesting? Or do you have other plans for pets personality like it may affect how it battles/interacts with owners in future versions?

Kyttias 06-28-2014 12:45 AM

Nah, nothing fancy, just flavor text, for now.

But I'm sure some would be curious about things sort of more in the direction of Pokemon, as well. For example, 'likes sweet things' and from a list of sweet, sour, bitter, spicy and bland foods to choose from. (Click bonus/level up would not occur upon visit, but upon food selection, with a bonus given to choosing the proper food.) I've seen other sites already implement similar things, it's quite entertaining.

Just having a static variable attached to an adoptable that never changes is a big step forward for those who want to code past that. Unfortunately, I'm pretty bad about database entry. For now, I'm eagerly watching what Wallie's doing, because it sounds super close to what I want to do.

I'm glad that Mysidia's intention is to be here for beginners who don't need complex websites. Some of us are big dreamers, though, so we can't wait for some actual documentation and tutorials. Now that I've finally settled into my new home, I've had a lot more time to appreciate the inner workings of the script. ^^

Hwona 06-28-2014 12:59 PM

^ Edit: Everything works! Should I share this as a modification? I can't figure out how to give each existing adoptable their own random personality, but you can change them to something unique maybe? :3
There's probably an easy way to make all of this editable through the ACP, but I have no idea how to work with addons.

Kyttias 06-28-2014 01:46 PM

Ah, so their personalities are being set to something when they're created, though? (So they all have the same personality for now?) Have you tried grabbing from array? In PHP there's an array_rand function (php.net / w3schools).

If you hand it over I'll attempt to take a look at it, but I'll be spending the next week someplace without convenient internet. ><

Hwona 06-28-2014 01:49 PM

^ New adoptables will have different personalities.(I used that function) :3 However, on my site, there are existing adopts and I can't give them different personalities, so I'm just going to go ahead and give them a "special" personality.
Edit: What are your thoughts? It would be great if you could fix that tiny thing, but I've got everything else. :3

Kyttias 06-28-2014 02:47 PM

Ah, some supplement script would have to be made to insert (or very literally install?) data for older adoptables. Once it's run once then the file could be tossed out.


All times are GMT -5. The time now is 08:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.