Ok, here are your problem scripts, unfortunately you still aren't going to have a stable module until you can get this thing to compile with the PRC compiler.
[size=16]drow_recog.nss[/size]
if (GetSubRace(GetPCSpeaker())=="Drow")
Should be
if (GetRacialType(GetPCSpeaker()) = 163 || 164)
[size=16]duergar_recog.nss[/size]
if (GetSubRace(GetPCSpeaker())=="Duergar")
Should be
if (GetRacialType(GetPCSpeaker()) = 153)
[size=16]entrance_port.nss & guardian_spawn.nss[/size]
(guardian_spawn.nss uses oRespawner instead of oTarget as the object, you'll have to change that manually)
string sRace=GetSubRace(oTarget);
Should be
int iRace = GetRacialType(oTarget);
And farther down
else
if (sRace == "Drow")
{
ExploreAreaForPlayer(GetObjectByTag("UnderdarkCentral"),oTarget);
AssignCommand(oTarget, JumpToLocation(GetLocation(GetObjectByTag ("drowstart"))));
}
else
if (sRace == "Duergar")
{
ExploreAreaForPlayer(GetObjectByTag("LaduguerHalls"),oTarget);
AssignCommand(oTarget, JumpToLocation(GetLocation(GetObjectByTag ("duergarstart"))));
Should be
else
if (iRace = 163 || 164)
{
ExploreAreaForPlayer(GetObjectByTag("UnderdarkCentral"),oTarget);
AssignCommand(oTarget, JumpToLocation(GetLocation(GetObjectByTag ("drowstart"))));
}
else
if (iRace = 153)
{
ExploreAreaForPlayer(GetObjectByTag("LaduguerHalls"),oTarget);
AssignCommand(oTarget, JumpToLocation(GetLocation(GetObjectByTag ("duergarstart"))));
[size=16]hc_inc_subrace.nss[/size]
You're going to basically want to remark out this entire script. This is the one that gives & destroys the subrace items & it will conflict with the creature hides & weapons that the PRC uses.
[size=16]hc_on_cl_enter.nss[/size]
//Setting custom factions
if (GetSubRace(oPC)=="Drow")
{
AdjustReputation(oPC,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
if (GetSubRace(oPC)=="Duergar")
{
AdjustReputation(oPC,GetObjectByTag("duergar_faction"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
Should be
//Setting custom factions
if (GetRacialType(oPC) = 163 || 164)
{
AdjustReputation(oPC,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
if (GetRacialType(oPC) = 153)
{
AdjustReputation(oPC,GetObjectByTag("duergar_faction"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
[size=16]hc_on_play_death.nss[/size]
(this script doesn't take Duergar into consideration, if that is an issue, the script above can give pointers on how it should work I think)
if (GetSubRace(oPlayer)=="Drow")
{
AdjustReputation(oPlayer,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPlayer,"BondofH_NOD"))
AdjustReputation(oPlayer,GetObjectByTag("good_boy"),-100);
}
else
{
AdjustReputation(oPlayer,GetObjectByTag("good_boy"),100);
}
Should be
if (GetRacialType(oPlayer) = 163 || 164)
{
AdjustReputation(oPlayer,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPlayer,"BondofH_NOD"))
AdjustReputation(oPlayer,GetObjectByTag("good_boy"),-100);
}
else
{
AdjustReputation(oPlayer,GetObjectByTag("good_boy"),100);
}
[size=16]hc_on_ply_respwn.nss[/size]
string sRace=GetSubRace(oRespawner);
Should be
int iRace = GetRacialType(oRespawner);
& a bit further down
if (sRace == "Drow")
{
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("drowstart"))));
}
else
if (sRace == "Duergar")
{
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("duergarspawn"))));
}
else
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("playerrespawn"))));
Should be
if (iRace = 163 || 164)
{
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("drowstart"))));
}
else
if (iRace = 153)
{
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("duergarspawn"))));
}
else
AssignCommand(oRespawner, JumpToLocation(GetLocation(GetObjectByTag ("playerrespawn"))));
[size=16]rr_enter.nss[/size]
// Sets up subrace if legal one chosen
if(use_pc_subrace())
SendMessageToPC(oPC,"Your subrace of "+GetSubRace(oPC)+" has been enabled.");
if (GetSubRace(oPC)=="Drow")
{
AdjustReputation(oPC,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
Should be
// Sets up subrace if legal one chosen
if(use_pc_subrace())
SendMessageToPC(oPC,"Your subrace of "+GetSubRace(oPC)+" has been enabled.");
if (GetRacialType(oPC) = 163 || 164)
{
AdjustReputation(oPC,GetObjectByTag("bad_boy"),100);
if (!HasItem(oPC,"BondofH_NOD"))
AdjustReputation(oPC,GetObjectByTag("good_boy"),-100);
}
[size=16]whizbang_drow.nss[/size]
int StartingConditional()
{
// Reject player races
if(GetSubRace(GetPCSpeaker()) == "Drow")
return TRUE;
else
return FALSE;
}
Should be
int StartingConditional()
{
// Reject player races
if(GetRacialTyep(GetPCSpeaker()) = 163 || 164)
return TRUE;
else
return FALSE;
}
[size=16]sei_subraces.nss[/size]
(This one is kinda screwy, and won't compile under the PRC compiler. Basically this is the script set (SEI) you're going to want to get rid of completely by the time your mod is done)
string sSubraceField = GetStringLowerCase( GetSubRace( a_oCharacter ) );
Should be
string sSubraceTemp = Get2DAString("racialtypes", "Label", GetRacialType(a_oCharacter));
SetSubRace( a_oCharacter, sSubraceTemp );
string sSubraceField = GetStringLowerCase( GetSubRace( a_oCharacter ) );
Pick these apart guys. I'm not 100% on the last one. Haven't done many 2DA lookups.