Boarded a smallish navy ship, upon reaching the captain's cabin, the enemy captain stood peacefully, but had a blank dialogue screen.
The problem is with the code I wrote for cabinfight dialog, the error log points to line 91:
COMPILE ERROR - file: dialogs\Cabinfight_dialog.c; line: 91
missed ')'
I'm afraid I don't know myself how to correct the error, can someone better at coding see what I did wrong and fix it?
Sorry about the mistake.
Here is the code for reference:
bDeathFight = false;
if(IsCharacterPerkOn(NPChar, "SwordplayProfessional")
{
if(frnd() < 0.2)
{
if(GetCharacterReputation(PChar) > REPUTATION_NEUTRAL && GetCharacterReputation(NPChar) < REPUTATION_NEUTRAL)
{bDeathFight = true;}
if(GetCharacterReputation(PChar) < REPUTATION_NEUTRAL && GetCharacterReputation(NPChar) > REPUTATION_NEUTRAL)
{bDeathFight = true;}
}
}
if(sti(NPChar.nation) = PIRATE)
{
if(frnd() < 0.3)
{
bDeathFight = true;
}
}
The problem is with the code I wrote for cabinfight dialog, the error log points to line 91:
COMPILE ERROR - file: dialogs\Cabinfight_dialog.c; line: 91
missed ')'
I'm afraid I don't know myself how to correct the error, can someone better at coding see what I did wrong and fix it?
Sorry about the mistake.
Here is the code for reference:
bDeathFight = false;
if(IsCharacterPerkOn(NPChar, "SwordplayProfessional")
{
if(frnd() < 0.2)
{
if(GetCharacterReputation(PChar) > REPUTATION_NEUTRAL && GetCharacterReputation(NPChar) < REPUTATION_NEUTRAL)
{bDeathFight = true;}
if(GetCharacterReputation(PChar) < REPUTATION_NEUTRAL && GetCharacterReputation(NPChar) > REPUTATION_NEUTRAL)
{bDeathFight = true;}
}
}
if(sti(NPChar.nation) = PIRATE)
{
if(frnd() < 0.3)
{
bDeathFight = true;
}
}
Last edited: