Difference between revisions of "CheckCharismaLow"

From NWN Lexicon
Jump to: navigation, search
Line 8: Line 8:
  
 
<nwscript>
 
<nwscript>
int CheckCharismaLow();
+
int CheckCharismaLow();
 
</nwscript>
 
</nwscript>
  
Line 34: Line 34:
  
 
<nwscript>
 
<nwscript>
// add as a starting conditional on a conversation thread for a  
+
// add as a starting conditional on a conversation thread for a  
// negative NPC reaction
+
// negative NPC reaction
+
 
#include "NW_I0_PLOT"
+
#include "NW_I0_PLOT"
+
 
int StartingConditional()
+
int StartingConditional()
{
+
{
    int bUglyLooker = CheckCharismaLow();
+
    int bUglyLooker = CheckCharismaLow();
    return bUglyLooker;
+
    return bUglyLooker;
}
+
}
 
</nwscript>
 
</nwscript>
  

Revision as of 00:16, 26 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