![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#81
|
||||
|
||||
![]()
Now if only I could get the stat value to show in from the levelupview.php file, haha (unfortunately {$adopt->getStatname()}, {$this->adopt->getStatname()}, and {$statname} do not work, though {$statname} works just fine in the levelup.php file).
Ooh, that's a cool idea, Kyttias!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#82
|
||||
|
||||
![]()
Try {$adopt->statname}?
__________________
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. |
#83
|
||||
|
||||
![]()
Ended up with this error;
Fatal error: Cannot access protected property OwnedAdoptable::$magic in /home/catisserie/public_html/view/levelupview.php on line 27 (magic being the name of the stat) Still trying several things to try to work around it.
__________________
My Mods Site (1.3.4, 2020 Mods) |
#84
|
||||
|
||||
![]()
In classes/class_ownedadoptable.php add public $magic; to the variables at the start.
__________________
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. |
#85
|
||||
|
||||
![]()
Well, it's not coming up with an error now, but instead it's simply displaying a blank where the data should be displayed.
(.../view/levelupview.php): PHP Code:
Edit: OK, I got the function to work by doing this; PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 01-13-2016 at 06:49 AM. |
#86
|
||||
|
||||
![]()
*shrug* Bizarre. This is exactly what I use for my pet's personality (so, same concept of rendering it to levelupview.php):
Code:
This is a {$adopt->size}-sized, {$adopt->nature} {$adopt->type} that likes {$adopt->likes} and dislikes {$adopt->dislikes}. Code:
This is a {$this->adopt->size}-sized, {$this->adopt->nature} {$this->adopt->type} that likes {$this->adopt->likes} and dislikes {$this->adopt->dislikes}. If you really wanted to you could create a function by copying over one of the existing ones in class_ownedadoptable.php but it seems really redundant. Then again, I also display my birthdays with just $adopt->birthday and you should also really be able to call gender with just $adopt->gender (after making it no longer protected). At least in v1.3.4, because of how things pull from the database. Basically any column name should be able to show up this way. Check if there's value in it for that specific adopt???
__________________
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; 01-13-2016 at 09:38 AM. |
#87
|
||||
|
||||
![]()
There is indeed a value in for that adopt (and for all of them I've tested), but it simply will not show up (though it does show up when I re-visit that adopt so it loads the "you've already seen this pet today" page). I've even tried adding the function to the levelupview.php page. I'm having the same issue with displaying the "medals" with the levelupview.php file, as well. What's really odd is that I use {$adopt->getBirthday();} to show the adoptable's birth-date, and that shows up just fine, so I do not understand why {$adopt->getMagic();} isn't working, since they're both defined in all the same places, the same way in class_ownedadoptable.php:
PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#88
|
|||
|
|||
![]()
Does anyone have a copy of the screenshots for this mod since the images aren't avalible in the first post?
:) |
#89
|
||||
|
||||
![]()
Heres the post kyttias made to try to help explain the parts from the images
http://mysidiaadoptables.com/forum/s...0&postcount=74 |
#90
|
|||
|
|||
![]()
Thank you!
Sorry, Is there a way to have more than one stat, would I just add another colum or would it change the directions? I'm fairly new thisthis so I'm not really sure. Last edited by aiiree; 03-25-2016 at 10:34 AM. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trade System | Kyttias | Questions and Supports | 4 | 05-29-2016 12:29 AM |
Making v.1.3.3 Stat Mod Compatible with V.1.3.4 | Hwona | Questions and Supports | 0 | 07-08-2014 01:37 PM |
Stat Inheritance Mod * thanks to Wallie! * | Missy Master | Mys v1.3.x Mods | 0 | 06-30-2014 02:23 PM |
Anyone Want to Have a Stat System | Hwona | Feedback and Suggestions | 12 | 06-30-2014 09:30 AM |
Basic Stat System | Hedgen | Questions and Supports | 3 | 03-10-2013 02:47 PM |
What's New? |
What's Hot? |
What's Popular? |