Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Item function to turn an adopt into another species?
Just wondering if anyone's done this yet? I'm going to be looking into it in the coming days.
Essentially, you'd use a consumable item that would change one species into a completely different species that you've set for that item. This item can only work for species you've enabled it to work on. It would only be changing the adopt's "type" column. |
#2
|
||||
|
||||
Shouldn't be too difficult, to be honest. I'd imagine something like this in functions_items.php...just replace where I have "speciesA" and "speciesAname".
PHP Code:
PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 02-03-2016 at 12:00 PM. |
#3
|
||||
|
||||
Thank you so much Abron. <3 I'll let you know how it works once I'm able to test it!
|
#4
|
||||
|
||||
Sure thing, I hope it works for you!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#5
|
||||
|
||||
Thanks for this!!! Works brilliantly! Is there any chance this could be made into a random opportunity to make it into any pet? Like, random pet change? >.>
|
#6
|
||||
|
||||
You could do some things to manually add pets, use a rand function to assign each pet as a number. You'll just have to manually add in all of the pet types that you want to be possible from it. I haven't tested it, but I think it'd be something like this. Then just change "speciesA" (etc) to a specific pet type (make sure it is word for word, case and all). Should work, I think, but as I said I haven't tested it, so use at your own risk.
PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 05-31-2016 at 08:24 AM. |
#7
|
||||
|
||||
THANK YOU THANK YOU THANK YOU!!!!
I did have to tweak it a little bit and I'm really surprised I got it working. x.x I'm horrible with PHP (Inexperienced and dyslexic), but for those who want this for their site, this is the code that worked for me. Don't forget to replace my pet types with your own! PHP Code:
|
|
|
What's New? |
What's Hot? |
What's Popular? |