The purpose of the Class Control System (CCS) is to restrict the way in which a player character (PC) gains levels. The stock Neverwinter Nights (NWN) game allows the PC to level immediately upon gaining enough experience points (XP). CCS performs the following functions: - Character Level Control Policy � restricts characters from leveling without the use of a trainer. - Multiclass Control Policy � controls characters eligibility for a multiclass by defining how many levels a character must have in each level before multiclassing becomes available to him, and disables multiclassing altogether. - Epic Level Control Policy � restricts characters from advancing beyond level 20. - Training Cost Policy � specifies how much a character is charged each time he trains, and at what level he will start getting charged for training.
Khalek_D_Ariana, I believe you just need to make sure that CCS_EPIC_LEVEL_CONRTOL=1 in the ?ccs_defaults? script, which it is by default. Then execute the code from the ?ccs_en_epic_lvl? script from your OnClientEnter module event. You should be calling oPC, or whatever variable you use to depict as the PC, as GetEnteringObject(). So don?t use the ExecuteScript function here, actually merge the code from the ?ccs_en_epic_lvl? script into your OnClientEnter module event if you already have one. The ?ccs_en_epic_lvl? script assigns oPC as GetPCSpeaker(), as this script was intended to be called from a conversation. So if you don?t already have an OnClientEnter module event, just change the way oPC is set by making it GetEnteringObject(). E-mail me if this does not work for you or if this is totally geek to you, and thanks for your interest in CCS!
Posted by Richard at 2004-02-1216:48:00
Hmmm, perhaps I forgot to take this out of the 1.4 documentation? The ?ccs_on_act_item? script was removed in v1.4 due to HotU?s ability to run a script that matches an item?s tag when the item is activated. So, you don?t actually need this script. Anyone upgrading to v1.4 from previous versions should remove this script if they have it. Additionally, anyone upgrading to v1.4 who previously used the PC Trainer Tool should replace the tools with the one from v1.4 as the item?s tag was changed, i.e. PC Trainer Tools prior to v1.4 will not work in v1.4. Hope that helps!
Posted by Khalek_D_Ariana at 2004-02-1209:37:00
Just a clarification...can I use this to allow epic levels, but only when trained and paid for, and have no effect on character levelling prior to 21? If so, it's perfect for my multiplayer module. Thanks. It looks like a good system.
Posted by Khalek_D_Ariana at 2004-02-1209:37:00
Just a clarification...can I use this to allow epic levels, but only when trained and paid for, and have no effect on character levelling prior to 21? If so, it's perfect for my multiplayer module. Thanks. It looks like a good system.
Posted by Accerak at 2004-02-1106:34:00
Hi; Just wondering, I'm going through the instructions to install the script, and it says there should be a script called ccs_on_act_item. I'm not finding this when I import the erf. Everything else is there, but not this one. Any suggestions, or has this script been removed and the instructions just not updated to reflect that?
Posted by Richard at 2004-02-0416:59:00
Excellent! I?m glad to hear that. Just as an option, you could export the ?Level Up? pillar from the CCS test module, be sure to also export the script attached to it, and import it into your module for testing. It will always give you as much XP as you need to gain the next level! This should assist you in testing your henchmen. Also, you may want the ?Give Gold? lever from the CCS test module if you?ve configured CCS to require payment to train. Thanks for your interest in CCS! =)
Posted by otwyn_nwn at 2004-02-0403:37:00
Hi, it is Otwyn again...can't login for the comments as I am at work. Thanks for the info Richard. I think I figured out my problem. I tried to level them up when I had enough XP to level, but I had not visited the trainer and levelled myself. If I had levelled first, it probably would have worked. Now problem is I need to gain enough XP for another level to try it again. Other then this CCS works very well in our module.
Posted by Richard at 2004-02-0322:29:00
Ah, I get it now. Well, I can?t really see why it would effect the way a henchman levels, simply because CCS only interacts with the way the PC levels. It is likely that the henchman?s trigger to level up is when the PC levels. Because NWN is built in a modular fashion, I should be able to change or influence one aspect of the game without effecting other parts of it. You see, the PC is still going to level at some point, which should trigger the henchman?s level up event and use a set of scripts completely unrelated to CCS. So to answer Otwyn?s question, I?d have to say CCS does not effect the way a henchman levels up, whatsoever; and will continue to level normally as the PC gains levels. Of course, that is my theory. If anyone can prove me wrong, I will gladly do the research to fix the problem. Thanks for the clarification, Sleroth.
Posted by Sleroth at 2004-02-0321:59:00
I think what he means is that henchmen level as the PC does but as the PC now needs a trainer how would the henchman level? Any thoughts or suggestions?