I know how to change icons of a player depending on what they choose, but I don't know how to do this: Icon inside stats panel will depend on what class u choose in the beginning.
I'm SO confused..
I tried to make a variable X, and the X will change its value depending on what u chose, and i tried if X(1) then blah blah blah but all I get is bunch of errors..
I think im buying the blue book soon :((
i mean i have to..
Copyright © 2024 BYOND Software.
All rights reserved.
mob
Login()
switch(input("What mob?","Mob") in list("Knight","Warrior","Moron")
if("Knight") src.client.mob = /mob/Player/Knight
if("Warrior") src.client.mob = /mob/Player/Warrior
else src.client.mob = /Mob/Player/Moron
Player
Login() //This is important, have nothing under it, so that the login proc isn't called again, throwing the player into an infinite loop.
verb
Attack()
//And whatever other procs you have
Knight
Stat()
//Whatever...
Warrior
Stat()
//Whatever...
Moron
Stat()
//Whatever...
Then, you can set each of the mobs to whatever you want, and adjust the procs how you want. Remember that this is object oriented, so that if you set a var for Player, it will be the same for knights, warriors, and morons.