Author Topic: another Reputation issue....  (Read 407 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
another Reputation issue....
« on: October 31, 2015, 07:25:02 am »


               

Hello again! 


 


Well here i got a little issue with a script that alters the reputation of 2 factions within a conversation...it just does not seem to actually count up...


 




#include "nw_i0_generic"

void main()

{

object oPC = GetPCSpeaker();

object oFacMember = GetObjectByTag("SlayerFaction");

object oComm = GetObjectByTag("OrderOfArthem");

int PCCurrFac;

    // Raise the faction of the PC to the Slayer Organization.

    AdjustReputation(GetPCSpeaker(), OBJECT_SELF, 10);

    // Tell the PC that his/her faction has been lowered.

    SendMessageToPC(GetPCSpeaker(), "You have gained 5 points 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 Slayers is " + IntToString(PCCurrFac) + ".");

    // Lower the faction of the PC to OrderOfArthem.

    AdjustReputation(GetPCSpeaker(), oComm, -10);

    // Tell the PC that his/her faction has been lowered.

    SendMessageToPC(GetPCSpeaker(), "You have lost 5 point of faction with the Order of Arthem.");

    // Set the value of PCCurrFac to teh PCs current faction with the above group.

    PCCurrFac = GetFactionAverageReputation(oComm, oPC);

    // Tell the PC his/her faction with said group.

    SendMessageToPC(GetPCSpeaker(), "Your current faction with the order of Arthem is " + IntToString(PCCurrFac) + ".");

 

}

 



 



if anyone know a fix than that would be grand! '<img'>