After fixing the above, the code now looks like this
That does seem a bit doubled up though. I'd suggest using either UpdateRMRelation OR SetRMRelation .
The first one is my fancy new function that affects all nations, including allies and such and handles acts of piracy.
If you simply want to add points ONLY to the nation whose governor you helped, you might want to use only that second function.
Code:
UpdateRMRelation(pchar, PIRATE, 5);
SetRMRelation(pchar, sti(pchar.quest.smuggling_guild.governor_quest.nation), RequiredNextRankDirect(GetRank(pchar, sti(pchar.quest.smuggling_guild.governor_quest.nation))+1) );
The first one is my fancy new function that affects all nations, including allies and such and handles acts of piracy.
If you simply want to add points ONLY to the nation whose governor you helped, you might want to use only that second function.