|  | 
| Home Community Mys-Script Creative Off-Topic | 
| 
 | |||||||
|  | 
|  | Thread Tools | Display Modes | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  Creating a "Faction" for adoptables/owned adoptables 
			
			Some time ago, I asked about adding a description (that would be created in the ACP during adoptable creation) that would display on the myadopts/stats/ page.  Thanks to you guys, I got that done. Now I want to add yet another option called "Faction" to be specified during the adoptable creation process in ACP. Only, I need this new option to carry over from the adopts_adoptables table in the database to the adopts_owned_adoptables in the database (whenever someone buys/adopts the adoptable). So essentially, this new option needs to show up in every table in the database that an adoptable shows up in. Mainly because I am planning to use this new option in a custom battle system I'll be having made. Any help is welcome!!! Last edited by Vaporman87; 03-04-2014 at 01:58 PM. | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			If it's already in the adopts_adoptable table, you don't need to carry it over since all OwnedAdoptables inherit all properties from an Adoptable. To the class adoptable, you need to add a new variable $faction to the attribute list (this variable has to have the same name as the one you got in your database, but with a $ behind it) and create a function similar to others in that file to return that $faction (getFaction() ). You can then use the getFaction() on an OwnedAdoptable like that to obtain its faction. Of course with this all OwnedAdoptables of the same species/type will have the same faction
		 
				__________________    asp.net stole my soul. | 
|  | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| "Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) | bobbybig | Templates and Themes | 3 | 07-18-2018 06:54 PM | 
| Removing of prefix "class", "abstract", "interface" Suggestions | FounderSim | Suggestions and Feature Requests | 3 | 10-05-2014 05:35 PM | 
| "Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) | bobbybig | Templates and Themes | 5 | 04-15-2013 03:11 PM | 
| [Updated] AJAX Sortable Adoptables on "myadopts.php" Page | fadillzzz | Mys v1.2.x Mods | 57 | 05-29-2012 02:16 AM | 
| A php question about changing the "level up" section | coffeeaddict | Questions and Supports | 6 | 02-26-2011 11:08 AM | 
| What's New? | What's Hot? | What's Popular? |