Skip to content

What is the call function for the new races? wemic and brownie?

Evenin folks, does anyone know how to check if a PC is one of the above said races via an IF statement?

I have tried if (GetSubRace(oPC) == as well as if (GetRacialType(oPC) == RACIAL_TYPE_BROWNIE).

The GetRacialType throws an error due to it not knowing what "Brownie" is apparently and the GetSubRace seems to sadly do nothing. I run a subrace engine and im attempting to try and force a certain subrace on to these PC's due to lore reasons of my PW and im not having much luck. Thanks all for your help and tc!

Comments

  • ZeroarkZeroark Member Posts: 22
    Hi!
    You're getting that error because NWScript doesn't knows what "RACIAL_TYPE_BROWNIE" is. You have to add it as a constant or variable somewhere. Try this:

    int RACE_FEAT_WEMIC = 51;
    int RACIAL_TYPE_BROWNIE = 53;

    if (GetRacialType(oPC) == RACIAL_TYPE_BROWNIE)
    { // Do something here }

    If you're wondering where I pulled those magic numbers from, I did from the racialtypes.2da file from CEP 2.65
  • NightbladeCHNightbladeCH Member Posts: 10
    Ah, man your awesome thanks! I knew thats why it was throwing the error just not how to fix it. Thanks a ton.
  • ZeroarkZeroark Member Posts: 22
    You're welcome, hope that solved your problem!
Sign In or Register to comment.