|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
47 int iRaceRows = Get2DARowCount(
"racialtypes");
49 for (iRace = 0; iRace < iRaceRows; iRace++)
51 string sRaceModTable = Get2DAString(
"racialtypes", sColumnName, iRace);
52 if(sRaceModTable !=
"")
54 int iRaceModRows = Get2DARowCount(sRaceModTable);
56 for (iRaceMod = 0; iRaceMod < iRaceModRows; iRaceMod++)
58 string sType = Get2DAString(sRaceModTable,
"Type", iRaceMod);
59 string sParam1 = Get2DAString(sRaceModTable,
"Param1", iRaceMod);
60 string sParam2 = Get2DAString(sRaceModTable,
"Param2", iRaceMod);
61 string sParam3 = Get2DAString(sRaceModTable,
"Param3", iRaceMod);
62 int iParam1 = sParam1 ==
"" ? 0xDEADBEEF : StringToInt(sParam1);
63 int iParam2 = sParam2 ==
"" ? 0xDEADBEEF : StringToInt(sParam2);
64 int iParam3 = sParam3 ==
"" ? 0xDEADBEEF : StringToInt(sParam3);
const int NWNX_RACE_MODIFIER_SAVEVSTYPE
const int NWNX_RACE_MODIFIER_SRINCLEVEL
const int NWNX_RACE_MODIFIER_INITIATIVE
const int NWNX_RACE_MODIFIER_DMGREDUCTION
void NWNX_Race_LoadRacialModifiers(string sColumnName="RacialModsTable")
Loops through racialtypes.2da and checks for the column for racial modifications and sets them.
const int NWNX_RACE_MODIFIER_SAVE
const int NWNX_RACE_MODIFIER_AC
const int NWNX_RACE_MODIFIER_SRCHARGEN
const int NWNX_RACE_MODIFIER_FEAT
const int NWNX_RACE_MODIFIER_DMGRESIST
const int NWNX_RACE_MODIFIER_AB
const int NWNX_RACE_MODIFIER_IMMUNITY
const int NWNX_RACE_MODIFIER_DMGIMMUNITY
const int NWNX_RACE_MODIFIER_SAVEVSRACE
const int NWNX_RACE_MODIFIER_SKILL
const int NWNX_RACE_MODIFIER_RACE
int NWNX_Race_GetModifierConstant(string raceMod)
Translate a modifier type from a string to its constant.
const int NWNX_RACE_MODIFIER_FEATUSAGE
const int NWNX_RACE_MODIFIER_SPELLIMMUNITY
const int NWNX_RACE_MODIFIER_REGENERATION
const int NWNX_RACE_MODIFIER_CONCEALMENT
const int NWNX_RACE_MODIFIER_INVALID
const int NWNX_RACE_MODIFIER_ACVSRACE
void NWNX_Race_SetRacialModifier(int iRace, int iMod, int iParam1, int iParam2=0xDEADBEEF, int iParam3=0xDEADBEEF)
Sets a racial modifier.
const int NWNX_RACE_MODIFIER_MOVEMENTSPEED
const int NWNX_RACE_MODIFIER_ABVSRACE