Well, Here I am again with yet another (probably very easy one but still) script issue I am having with a script that I managed to put together using two tutorials on how to add or decrease the reputation points a pc gains by chosing a certain line in the conversation.
so any help or adjustments would be grant.
so here is the script:
#include "nw_i0_generic"
void main()
{
object oPC = GetPCSpeaker();
object oFacMember = GetObjectByTag("Guard");
int PCCurrFac;
// Lower the faction of the PC to the guards.
AdjustReputation(GetPCSpeaker(), OBJECT_SELF, 10);
// Tell the PC that his/her faction has gone up.
SendMessageToPC(GetPCSpeaker(), "You have gained 10 point of faction with the guards.");
// Set the value of PCCurrFac to the PCs current faction with the above group.
PCCurrFac = GetFactionAverageReputation(oFacMember, oPC);
// Tell the PC his/her current faction with said group.
SendMessageToPC(GetPCSpeaker(), "Your current faction with the guards is " + IntToString(PCCurrFac) + ".");
problem: I think that I am doing something wrong with the message part here, since it was initially designed to let the player know what the score is with the npc's faction.