Author Topic: Shifting alignment....  (Read 332 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Shifting alignment....
« on: September 25, 2015, 06:01:57 am »


               

okay here I got another issue which I am not too sure how to fix.... I tried everything (to my knowledge) so if anyone could tell me what I did wrong here....


 


basically the pc has lied to the quest giver and has finished the quest, thus he will be granted a few points towards evil. 


 


the problem is now that I am getting an error code regarding the implementation of the line I was hoping someone could point out what I did wrong and how to do it properly thank you '<img'> 


 




#include "pqj_inc"

void main()

{

    // Give the speaker some gold

    GiveGoldToCreature(GetPCSpeaker(), 150);

 

    // Give the speaker some XP

    GiveXPToCreature(GetPCSpeaker(), 200);

    // Set the variables

    SetLocalInt(GetPCSpeaker(), "iFPQuest", 200);

// Get the PC who is in this conversation.

    object oPC = GetPCSpeaker();

 

    // Update the player's journal.

    AddPersistentJournalQuestEntry("FP", 3, oPC, FALSE);

 


// The PC has become more Evil.

    AdjustAlignment(oPC, ALIGNMENT__EVIL, 3);


}

 

 



 



 



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Shifting alignment....
« Reply #1 on: September 25, 2015, 10:32:06 am »


               

You have two underscores in ALIGNMENT__EVIL, there should only be one.



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Shifting alignment....
« Reply #2 on: September 25, 2015, 06:29:08 pm »


               Ah ok so that is what i did wrong '<img'> thank you!!