What is the call function for the new races? wemic and brownie?
NightbladeCH
Member Posts: 10
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!
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!
0
Comments
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