Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Alternate Images for Genders
Instead of the alternates being set by a random factor, being set by the gender of the pet.
I'm new so please don't kick me for something that already exists. |
#2
|
||||
|
||||
I am sorry that I havent gotten back to you regarding your request yet. And yes, this is definitely doable. You will need to manually edit the line that generates alternative forms of adoptables. I can show you an example of how to do that later if I have time.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
That would be awesome thanks :)
|
#4
|
||||
|
||||
Here is a possible way to have alternates set by gender:
Find these lines in doadopt.php: PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
So if it's male it will show the male image and female vice versa?
|
#6
|
||||
|
||||
Yes, it should. It will generate a pet gender first and then decide which image to use based on whether its male or female. In my script above the female image is primary, while male image is alternate.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
ooo very nice! I'm going to try this out today!
|
#8
|
||||
|
||||
do i delete
Code:
$alts = getaltstatus($id, 0, 0); Last edited by SilverDragonTears; 08-24-2011 at 02:52 PM. |
#9
|
||||
|
||||
Well its better to delete that line since it wont do anything after you've changed the method alternate form of adoptables is defined.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#10
|
||||
|
||||
Oh ok I'll delete it then! I'm loving this so much I'm going back and making male and female images of all of the adopts. Sucks though that the ones already adopted won't have that feature implemented with them though.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Genders/More Alternate Images | Clessidra | Suggestions and Feature Requests | 3 | 02-27-2014 10:42 AM |
Multi Alternate Images | Taintedkitten | Questions and Supports | 3 | 01-10-2013 07:44 PM |
Adoptable genders | Silvercivet | Questions and Supports | 2 | 02-12-2012 10:35 AM |
How do I completely disable/delete Breeding and genders? | D.A.T.A. | Questions and Supports | 5 | 08-29-2011 01:34 AM |
Alternate images, how do they work? | Shikari | Questions and Supports | 4 | 08-06-2011 08:17 PM |
What's New? |
What's Hot? |
What's Popular? |