You are here

Race change?

9 posts / 0 new
Last post
Arianna0
Race change?

Is there a easy script or tool out there that can permanently change the Race of the character due to a  Reincarnation spell?

 

  • up
    50%
  • down
    50%
Trinital

You can modify their character using a bic editor and change the race.. But it won't retroactively change their racials / stats / feats. So their character would be illegal at that point more than likely.

The way Skullport handles this is since they have a Bank for item storage and persist all character data in a database,

You can grant players a free reroll.

  • up
    50%
  • down
    50%
Arianna0

storage of items is not a issue 

getting skillpoints and feats exactly back previous  is   . . but  may have to go the  rebuild route if I cannot find a sane way around it

Bic editors generally  screw up  PCs on our servers

  • up
    50%
  • down
    50%
Trinital

Yea Reroll is probably the most sane way..

Trying to figure out all the small changes you need to make, and how they effect the characters build long term will be a nightmare.

  • up
    50%
  • down
    50%
Arianna0

SO what I came up with was this 

It changes a human into a Halforc

fixing his stats into thier current form  while adding the +2 to STR

removes the human racial traits and adds the HalfOrc  Darkvision trait

 

#include "nwnx_objectattributes_include"

void main()
{
    // Get the creature who triggered this event.
    object oPC = GetLastUsedBy();

    // Change how the PC looks.
    XPObjectAttributesSetRace(oPC, RACIAL_TYPE_HALFORC);
    XPObjectAttributesSetSubRace(oPC, RACIAL_SUBTYPE_HALFORC);
    
    //SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_HALF_ORC);
    SetCreatureAppearanceType(oPC,5); // appearance.2da-line

    SetBaseAbilityScore (oPC,ABILITY_STRENGTH,10);
    SetBaseAbilityScore (oPC,ABILITY_DEXTERITY, 18);
    SetBaseAbilityScore (oPC,ABILITY_CONSTITUTION,14);
    SetBaseAbilityScore (oPC,ABILITY_INTELLIGENCE,21);
    SetBaseAbilityScore (oPC,ABILITY_WISDOM, 9);
    SetBaseAbilityScore (oPC,ABILITY_CHARISMA,10);
    
    FeatRemove (oPC,FEAT_QUICK_TO_MASTER);
    FeatRemove (oPC,1773);//FEAT_HUMAN_SKILLED
    FeatAdd (oPC,FEAT_DARKVISION,1,1,1);
}



 

 

  • up
    50%
  • down
    50%
Arianna0

and as far as I can tell it works  perfectly 

  • up
    50%
  • down
    50%
Trinital

Now do that for all the other racial combinations, especially when some give feats that change how soon class feats / prcs can be taken.

Welcome to Hell.. frown

  • up
    50%
  • down
    50%
Arianna0

Ya   . . . at this point I now know how to fix individuals  should they be reincarnated  but it would take reworking the script for each one

once I figure out how to get it to NOT  change your  INT/CHA/ WIS scores  and  +/- the other three as applicable.   When I tried  doing it with out  specifying what to set the ablities at it would set them to the average scores for that race.  Hopefully no one else needs to be reincarnated any time soon.

Considering I have very very minimal scripting skilz     I am happy I got it to do what I wanted it too

 

 

 

  • up
    50%
  • down
    50%
FaerzressSparkles

Y'alls a bunch of racists!

  • up
    50%
  • down
    50%