Author Topic: Small Alignment Change  (Read 593 times)

Legacy_Nafar

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Small Alignment Change
« on: October 19, 2010, 03:50:35 pm »


               How do I change the players alignment by about 5 points through conversation?
Thanks in advance,
Nafar
               
               

               
            

Legacy_Mudeye

  • Full Member
  • ***
  • Posts: 238
  • Karma: +0/-0
Small Alignment Change
« Reply #1 on: October 19, 2010, 04:37:57 pm »


               void AdjustAlignment(

   object oSubject,

   int nAlignment,

   int nShift,

   int bAllPartyMembers = TRUE

);



The detailed description is in the Lexicon. You can find that in these forums.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Small Alignment Change
« Reply #2 on: October 19, 2010, 04:58:14 pm »


               NWN Lexicon
               
               

               
            

Legacy_Nafar

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Small Alignment Change
« Reply #3 on: October 19, 2010, 07:19:35 pm »


               thanks
               
               

               
            

Legacy_Nafar

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Small Alignment Change
« Reply #4 on: October 19, 2010, 07:43:17 pm »


               So, how do i implement the above script?



               
               

               
            

Legacy_Mudeye

  • Full Member
  • ***
  • Posts: 238
  • Karma: +0/-0
Small Alignment Change
« Reply #5 on: October 19, 2010, 08:12:00 pm »


               Ok so if you want the PC to shift 2 points towards evil. For the ActionsTaken script put the following.

void main()
{
       object pc = GetPCSpeaker();
    AdjustAlignment( pc, ALIGNMENT_EVIL, 2 );
}
               
               

               


                     Modifié par Mudeye, 19 octobre 2010 - 07:12 .
                     
                  


            

Legacy_Nafar

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Small Alignment Change
« Reply #6 on: October 19, 2010, 10:02:01 pm »


               Ok, thanks a ton