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)

Hall of Famer 06-29-2014 03:24 AM

Interesting, looks like you two are already trying to get it to work. ^^ Like I said, it shouldnt be hard, just need some creativity and efforts. If you want random personality but with different chance/probability to occur, you may try the class Probability. It is very simple to use, and will generate the appropriate personality for you based on the chance/probability you assign. A chance of 20 is higher than 10, so more likely to occur. Hope this helps.

Hwona 06-29-2014 09:36 AM

^Ah! I'll look into this! :D

Kyttias 07-02-2014 01:12 PM

Wallie, you finished this, right? You can go ahead and share it? (And just making sure, this and your stats mod work on new adopts that come from promocodes, too, right?) What did you want in return? ovo

Hwona 07-02-2014 02:07 PM

Gah! Promocodes... got it...
Thanks for reminding me! Should I share this as a mod? As of now, I haven't gotten to the part where you can alter the likelyhood of an adoptable getting a certain stat, but I'll add that later on. Also, I'm working with v.1.3.3 and I found out that the levelup.php file is quite different in the newset version, so I may need to do a bit of tweaking. I'm pretty certain that personalities will be assigned with just some slight repositioning but I can't figure out how to display it on the levelup page... :3
One more thing... what did you mean by what I want in return?

Hall of Famer 07-02-2014 03:48 PM

Why not? You can always release a Mod if you believe it's ready. ^^

Kyttias 07-02-2014 04:16 PM

Eh, I'd make you something if you like. I'm thankful for your efforts! ^^ Maybe some delicious flowers for your catepillars?

I'm not so concerned about the positioning, so long as I can get it down to a {$variable} form, I'll be able to place it in wherever I like.

But yeah, promo code babies are super important. ^^; Next I want to know how to give a creature directly to a person without having to use the promo code as a go between (with a 'will you accept this creature? y/n?' dialog).

As for sharing it, I suppose it's up to you? If you have PayPal, I can always donate a little bit of money, too.

Hwona 07-02-2014 04:24 PM

^Aww, thanks! I really don't need anything, but flowers sound really nice! :D Are you good with just personalities having an equal chance of being picked? If so, I'm going to go ahead and make the thread. Getting it into a variable is not a problem. The issue we had with converting the stat system to v.1.3.4 was that I couldn't find a way to add an extra message to put the variable in. Do you know how to do that?

Kyttias 07-02-2014 04:46 PM

Equally random, yup.

As for an 'extra message'? Uhmm... well... there's this, for example:

Code:

$online = $mysidia->db->select("online", array(), "username != 'Visitor'")->rowCount();
$offline = $mysidia->db->select("online", array(), "username = 'Visitor'")->rowCount();
$this->assign("population","{$online} Users Online + {$offline} Guests");

If you call just {$online} or {$offline}, you receive just a number. But if you call {$population} it'll render something like "12 Users Online + 17 Guests" wherever you choose to place it.

I'm super not sure if that's helpful. =/ I hope so.

Hwona 07-02-2014 04:55 PM

I'm not sure if that'll work with the levelup page. Do you know if the comment function works with v.1.3.4? How about addLangVar?

Kyttias 07-02-2014 05:23 PM

I don't know how the comment function works, no. ><; I just know how to make variables that can be used in pages.


All times are GMT -5. The time now is 05:38 PM.

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