![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
So, I'm using a mod similar to the gender change one that Wallie made and breed change mod that kristhasirah made to try and make a marking changer and I'm running into problems.
I want to make it so that each adopt has a "hidden" color that can be brought out by the markings, so a fish that has the colors "Gold/Gold/Black" would not have the black show until the marking is added. When I only have one adopt specified, then it works well. PHP Code:
What I'm wondering is if doing an array would work the way that I want it to. If not, are there any other suggestions anyone might have that might work? I'm going to keep tinkering with this on my days off because this is one of the things that I need to fix before I set up the alpha tests on my site. Hopefully I'm making sense with my questions, too. I'm having one of those weeks where my language skills are off (and I can't blame wedding brain anymore) Thanks! |
#2
|
||||
|
||||
![]()
Ah, conditional statements. You should definitely be able to have multiple outcomes! You could try beginning the next statement with 'else if', rather than making another 'if' block - which could get messy if you have a lot of markings, or... perhaps try using switch statements. Additional info: ( x, x ).
Currently: 1- Your switch statement doesn't break. It's important to break so it leaves the switch statement and continues on with the code properly. You only have one case, though? So why is the switch statement here? 2- Your last closing bracket doesn't follow up with anything, as the function ends before the return goes through. Can you double check the formatting on all that? Why not make the outer if statement if($type == "Common (Gold/Gold/Black)") a switch statement instead? Are you looking for something like this? PHP Code:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 11-04-2014 at 11:49 AM. |
#3
|
|||
|
|||
![]()
Oh my goodness! That is exactly it! Thank you so so so much!
If you ever need any art or anything in return, let me know! This works perfectly! ^v^ |
#4
|
||||
|
||||
![]() ![]()
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Female Adopts can breed; male adopts only have 1. | Phoeniix | Questions and Supports | 2 | 11-09-2013 01:56 AM |
Make users make their own website on your site ... | kitty08 | Mys v1.2.x Mods | 0 | 10-27-2011 03:49 PM |
Just to make sure... | ipengu | Questions and Supports | 4 | 08-20-2011 05:00 PM |
Where do i go to make one? | Amber | Questions and Supports | 3 | 12-07-2009 03:05 PM |
How do you make... | Blue Icebox | Questions and Supports | 2 | 02-20-2009 12:49 AM |
What's New? |
What's Hot? |
What's Popular? |