View Single Post
  #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: 397,750
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