I was wondering if there was a way to have you choose a class, then depending on the class it would give you the different stats. Here is my Login code:
mob/Login()
usr.name = input("What is your name?") as text
world << "[usr] has entered the world."
Class = input("Choose a class.") in list("Warrior (Male)","Warrior (Female)","Elf (Male)","Elf (Female)","White Mage (Male)","White Mage (Female)","Black Mage (Male)","Black Mage (Female)","Thief (Male)","Thief (Female)","Ninja (Male)","Ninja (Female)","Summoner (Male)","Summoner (Female)")
Move(locate(/area/start))
Anyway, i was wondering what i should put after this. Would i use an if command like:
if(Class = "Warrior (Male)")
icon = 'player.dmi'
icon_state = "1"
var
HP = 50
MP = 10
if(Class = "White Mage (Male)")
icon = 'player.dmi'
icon_state = "5"
var
HP = 25
MP = 30
There will be more stats, i'm just making it simpiler for anyone who can help. Anyway, please help, i've read through the guides and they don't help. Thank you in advance!
ID:150848
![]() Jul 18 2001, 7:53 am
|
|
On 7/18/01 5:06 pm Vortezz wrote:
Check out my Class Selecting demo. :) hehe, i just got done hosting it too. =P |
On 7/18/01 5:06 pm Vortezz wrote:
Check out my Class Selecting demo. :) Thanks so much for pointing out that demo! It really helped! Thanks again! |
On 7/18/01 5:40 pm SSTrunks7 wrote:
On 7/18/01 5:06 pm Vortezz wrote: Cool. I love knowing that I provided some satisfaction! |
On 7/18/01 5:40 pm Vortezz wrote:
On 7/18/01 5:40 pm SSTrunks7 wrote: I just wanted to say thanks again, your demo was so simple that i got it really quick, i was using the "if(blah == "Knight") kinda thing until i found your way, thanks again, and remember that people like me appreciate those who make demos!! Keep it up! |
What you are effectively trying to do here is create a different code class for each character class.
Check out the Step BYOND tutorial to see how the different characters have different code classes.