ID:2008151
 
(See the best response by Lummox JR.)
Ok so i'm trying to get the player to have specific class stats/variables and so far it hasn't worked, below is the current code for player/mob variables. I have the players class being changed to which class they want. It compiles correctly, but when I select the class the variables do not change, i'm thinking I should somehow use a if() statement, or some sort of list, or combo of the too.
Any and all help would be appreciated.

Code:
mob/var
Name = null
Gender = null
Class = null
Level = 0
Exp = 0
Nexp = 50
HP = 100
MaxHP = 100
MP = 100
MaxMP= 100
Str = 10
Def = 0
Mgc = 2

mob
Class="SoulBlade"
SoulBlade
HP = 150
MaxHP = 150
MP = 100
MaxMP= 100
Str = 20
Def = 5
Mgc = 5

Class = "AngelicArcher"
AngelicArcher
HP = 125
MaxHP = 125
MP = 200
MaxMP= 200
Str = 10
Def = 5
Mgc = 20

Best response
You're setting Class under /mob instead of under the subtypes you want.

IMO though this is not a very good use of subtypes. All it amounts to is a few stat changes and maybe some icon stuff, which are much easier to accomplish via a simple database or text file you can load at runtime--which gives you more extensibility and also means you're not locked into those subtypes later on. Just make all your players the same type, like /mob/player.