More Class Questions...

Posted by Malti on Tue 02 May 2006 05:02 AM — 4 posts, 15,061 views.

USA #0
Hope Im not annyoing people and I am not trying to spam the board, so here it goes. I want to add prestige classes. When you get to a certain level, I acctually want to change the class, keep the same skills you have, and give you some new ones. How would I go about doing the coding aspect of this? Where should I begin (I have looked over the code and got lost) in the code? Also, would I make .class files?
USA #1
I'm not sure I understand what you're really trying to change. Skills are already unlocked by level anyways, so why not just add the 'prestige skills' at whatever level you would be switching classes? I'm not sure it's really necessary to actually completely change the whole class, if you're just adding skills, no?
USA #2
That is a really really really good Idea. That will save me alot of work in the end. How do I go about changing the class name at a certain level though?
USA #3
It mainly depends on where you want to print the modified name. The easiest, I think, would be to find all the places it gets printed (shouldn't be that many, really) and just do an if-check on the player's level; if it's at the prestige level, print a different name. You might want to add a new field to the class data structure (that'd be in db.c, I think) that gives the class's prestige name in addition to the normal name.