Author Topic: Can an area OnEnter script change a PC's class from Barbarian to Fighter if the PC is multi-classed?  (Read 310 times)

Legacy_UnrealJedi

  • Full Member
  • ***
  • Posts: 226
  • Karma: +0/-0


               I have chosen to not allow barbarians in my module. At the beginning of the module a script will change (via conversation) the PC's class from barbarian to fighter if they made a barbarian character.

However, the PC could, upon advancing a level, multi-class and add barbarian. To avoid this, I am wondering if it is possible for an area OnEnter to remove the barbarian class or change it to fighter. Of course, the OnEnter would have to be added to EVERY area, which I don't mind doing.

Or...is there a way to not allow multi-classing in my module (which will probably seriously ****** off players) but I'm willing to take that chance)?

Thanks for your input and scripting expertise...
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0


               You can put a check in the OnPlayerLevelUp that will delevel them if they take any barbarian levels.  That's the easiest way to handle from level 2 on.
 Changing their class at level 1 is actually far more work, since you have to change over the class, all the class feats, HPs, skill points.  It would be much easier to just give them a message not to make one and boot them.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0


               if you have already took care of new chars with barbarian race, restrict players to take barbarian upon level up is easy. You need to add new 2DA with prerequisities and bound it to the barbarian in classes.2da.

My unofficial patch have this done so all you need is to add variable AllowBarbarian to 1 on PC and they won't be able to take barbarian class (they still will be able to take it in initial character creation as thats client-side).