Difference between revisions of "CheckCharismaLow"

From NWN Lexicon
Jump to: navigation, search
(Created page with " =CheckCharismaLow()= Determines if the Charisma score of the speaking player is below 10. int  CheckCharismaLow(); ====Description==== Returns ...")
 
Line 7: Line 7:
 
Determines if the Charisma score of the speaking player is below 10.
 
Determines if the Charisma score of the speaking player is below 10.
  
 +
<nwscript>
 
  [[int | int ]] CheckCharismaLow();
 
  [[int | int ]] CheckCharismaLow();
 +
</nwscript>
  
 
====Description====
 
====Description====
Line 31: Line 33:
 
====Example====
 
====Example====
  
<font color="#007f00">// add as a starting conditional on a conversation thread for a  
+
<nwscript>
  </font><font color="#007f00">// negative NPC reaction
+
// add as a starting conditional on a conversation thread for a  
  </font>
+
  // negative NPC reaction
  <font color="#7f0000">#include "NW_I0_PLOT"
+
   
  </font>
+
  #include "NW_I0_PLOT"
  <font color="#0000ff">int</font> StartingConditional()
+
   
 +
  int StartingConditional()
 
  {
 
  {
     <font color="#0000ff">int</font> bUglyLooker = CheckCharismaLow();
+
     int bUglyLooker = CheckCharismaLow();
     <font color="#0000ff">return</font> bUglyLooker;
+
     return bUglyLooker;
 
  }
 
  }
 +
</nwscript>
  
 
====See Also====
 
====See Also====

Revision as of 21:29, 25 August 2012



CheckCharismaLow()

Determines if the Charisma score of the speaking player is below 10.

Description

Returns TRUE if the player character in the conversation has an charisma lower than 10.



Remarks

Function can be found in nw_i0_plot.nss on line 658.

This function always uses GetPCSpeaker() to determine the charisma score, so using it anywhere besides in a conversation will return FALSE.


Requirements

#include " nw_i0_plot "

Version

1.28

Example

 // add as a starting conditional on a conversation thread for a 
 // negative NPC reaction
 
 #include "NW_I0_PLOT"
 
 int StartingConditional()
 {
     int bUglyLooker = CheckCharismaLow();
     return bUglyLooker;
 }

See Also

functions: 

CheckWisdomHigh



 author: John Shuell, editor: Charles Feduke, additional contributor(s): Michael Schirf