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, 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: 618,394
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
Reply


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 08:09 AM.

Currently Active Users: 3961 (0 members and 3961 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636