Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ More Class Questions...
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Malti
USA (55 posts) Bio
|
| Date
| Tue 02 May 2006 05:02 AM (UTC) |
| Message
| | 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? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #1 on Tue 02 May 2006 08:15 AM (UTC) |
| Message
| | 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? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Malti
USA (55 posts) Bio
|
| Date
| Reply #2 on Tue 02 May 2006 03:49 PM (UTC) |
| Message
| | 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? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #3 on Tue 02 May 2006 05:43 PM (UTC) |
| Message
| | 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,208 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top