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 01-04-2010, 08:58 PM
ruko ruko is offline
Member
 
Join Date: Jan 2010
Posts: 3
Credits: 756
ruko
Default Evolution by name changing

Is there a code or feature to like, when it reaches to a certain level, the pet or pokemon name changes to something else?
Reply With Quote
  #2  
Old 01-05-2010, 04:03 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,552
Arianna will become famous soon enough
Default RE: Evolution by name changing

No, there isn't. I don't plan to code one, and I think this question has been asked before, and other people have said no. Sorry.
Reply With Quote
  #3  
Old 01-05-2010, 03:28 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,634
arlecchina
Default RE: Evolution by name changing

If you want the level name to change you could do this:

PHP Code:
if($currentlevel == "0"){
$levelname="Insert what you want here";
}
else if(
$currentlevel == "1"){
$levelname="Insert what you want here";

And then use $levelname whenever you refer to the level.

You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).

If you want the actual pet's name to change you could do this:

PHP Code:
if($currentlevel == "0"){
$petname="Insert what you want here";
}
else if(
$currentlevel == "1"){
$petname="Insert what you want here";

And then use $name whenever you refer to the pet's name.

You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).

I use titles in my site so when a pet reaches a certain level they have a title before their actual name. Such as Prince Polly or King Polly.

So i put $petname before I put the pet's actual name (which I think is usually refered to as $name).

So $name get's Polly from the database but $petname get's it's info from the if statement referring to the current level.
Reply With Quote
  #4  
Old 01-05-2010, 07:43 PM
ruko ruko is offline
Member
 
Join Date: Jan 2010
Posts: 3
Credits: 756
ruko
Default RE: Evolution by name changing

Thanks for the code, now where do we put that?
Reply With Quote
  #5  
Old 01-05-2010, 07:47 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,634
arlecchina
Default RE: Evolution by name changing

Quote:
Originally Posted by ruko
Thanks for the code, now where do we put that?
I have put it in any place where either the level or the pet's name is mentioned. levelup.php or myadopts.php are the files I would start with.

If you're asking where exactly to put it in those files, I can't easily answer that. There are many places where you might want to put it. My suggestion is to study those files and how they work and decide where you want to use it.

You can make it easier by creating a function in the functions.php that handles the level name or pet name and then call that function in the levelup.php and myadopts.php files.
Reply With Quote
  #6  
Old 01-05-2010, 10:02 PM
ruko ruko is offline
Member
 
Join Date: Jan 2010
Posts: 3
Credits: 756
ruko
Default RE: Evolution by name changing

oaky, thanks :)
Reply With Quote
  #7  
Old 01-06-2010, 03:56 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,552
Arianna will become famous soon enough
Default RE: Evolution by name changing

Oh, I was assuming that it was different for each pet. Like, pet one would have it's 'type' variable being changed to one thing, while pet two would have it being changed to another. Sorry.
Reply With Quote
  #8  
Old 02-10-2010, 07:42 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: 392,071
Hall of Famer is on a distinguished road
Default RE: Evolution by name changing

Quote:
Originally Posted by arlecchina
If you want the level name to change you could do this:

PHP Code:
if($currentlevel == "0"){
$levelname="Insert what you want here";
}
else if(
$currentlevel == "1"){
$levelname="Insert what you want here";

And then use $levelname whenever you refer to the level.

You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).

If you want the actual pet's name to change you could do this:

PHP Code:
if($currentlevel == "0"){
$petname="Insert what you want here";
}
else if(
$currentlevel == "1"){
$petname="Insert what you want here";

And then use $name whenever you refer to the pet's name.

You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).

I use titles in my site so when a pet reaches a certain level they have a title before their actual name. Such as Prince Polly or King Polly.

So i put $petname before I put the pet's actual name (which I think is usually refered to as $name).

So $name get's Polly from the database but $petname get's it's info from the if statement referring to the current level.
Would you tell me which script file to modify?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeze ONLY the evolution, not the clicks dulop Questions and Supports 2 09-28-2012 10:29 AM
evolution system for 1.2.x? sensacion Questions and Supports 2 07-06-2011 11:49 AM
X Days before evolution fadillzzz Mys v1.1.x Mods 0 02-21-2011 03:42 AM
Evolution through time? Hall of Famer Questions and Supports 6 02-28-2010 11:42 PM
Evolution system? Hall of Famer Questions and Supports 10 11-05-2009 05:54 PM


All times are GMT -5. The time now is 11:21 PM.

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