Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-05-2010, 03:28 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 5,003
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
 


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 04:36 AM.

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