ID:5482
Nov 16 2005, 6:54 pm
|
|
I can't belive this, I have tried nearly every variation to define src.class as a empty var untill filled and each time I build it says undefined.... *begins ripping hair out*
|
Oh, and ripping your hair out might not be that healthy either.
I know, I know. ;) |
It shouldn't be that difficult... You need class defined for your players, so it needs to go under their type...
The problem I think you're running into is that your players (since you're using some sort of character handling code) are passed through multiple types of mobs (mob/create_character, mob/characters, etc)... And defining it for just one of those types will not work... So, you just need to define it for all of them, by putting it directly under the parent /mob type... mob/var/class And you're done... IT will now be defined for all /mob types, because they all will inherit it from /mob... |
You don't even need to set it to anything when you define it... You can just leave it blank like I just did... No need for 'class = ""' or whatever..
|
It didn't turn out pretty, I don't advise it to anyone.