Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2016, 06:29 PM
Pear's Avatar
Pear Pear is offline
Woah man.
 
Join Date: Dec 2013
Location: The Underworld
Posts: 169
Gender: Female
Credits: 45,385
Pear is on a distinguished road
Default Location of code containing 'alternate' adopts

Yo c: I am interested in trying to figure out if I can make multiple outcomes for a single adopt. (So it's kind of like a puppy litter...lol)

Does anyone know where this piece of code would be located? Or if modifying the file could even be a lead to multiple outcomes?

Thanks broskies c;


Edit:
Whoops. I meant to post this in the script help forum. o-o'
__________________
Noot noot! Gotta get a new signooture. >->

Last edited by Pear; 08-01-2016 at 06:49 PM.
Reply With Quote
  #2  
Old 08-01-2016, 10:00 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,577
Hall of Famer is on a distinguished road
Default

I see, I moved your thread. It seems that the two subforums are quite confusing to some users, perhaps I should rename the one in community board category as 'Forum Feedback and Suggestions'.

Well the code that generates an adoptable's form(primary or alternate form) is inside file /classes/class_adoptables.php. It is simple enough:

PHP Code:
public function getAltStatus(){        
    if(
$this->alternates == "enabled" and $this->altoutlevel == 0){  
          
$rand mt_rand(1$this->altchance);         
          if(
$rand == 1) return "yes";                    
    }       
    return 
"no";    

As you can see, it checks whether alt form is enabled. If so it will generate a random number to determine whether your adoptable will get primary or alt form. This is where you will need to edit in order to change the mechanism of alt form creation. But keep in mind that multiple alt-forms can be very complex, depending on your need.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 08-04-2016, 07:55 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,527
Missy Master is an unknown quantity at this point
Default

This is something I have been very interested in as well...

where would we edit adding additional alt forms such as adding in images and then having it show on the various pages correctly?

Thanks HOF!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

Currently Active Users: 461 (0 members and 461 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636