Difference between revisions of "CheckCharismaLow"

From NWN Lexicon
Jump to: navigation, search
m (Prettified article formatting)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
 
 
 
=CheckCharismaLow()=
 
 
 
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>
 
<nwscript>
[[int | int ]] CheckCharismaLow();
+
int CheckCharismaLow();
 
</nwscript>
 
</nwscript>
 
+
{{DISPLAYTITLE:CheckCharismaLow()}}
====Description====
+
===Description===
 
 
 
Returns TRUE if the player character in the conversation has an charisma lower than 10.
 
Returns TRUE if the player character in the conversation has an charisma lower than 10.
  
<br /><br />
+
===Remarks===
 +
Function can be found in nw_i0_plot.nss on line 658.
  
====Remarks====
+
This function always uses [[GetPCSpeaker]]() to determine the charisma score, so using it anywhere besides in a conversation will return FALSE.
  
Function can be found in nw_i0_plot.nss on line 658. <br /><br /> This function always uses GetPCSpeaker() to determine the charisma score, so using it anywhere besides in a conversation will return FALSE.
+
===Requirements===
 +
<nowiki>#include "</nowiki>[[nw_i0_plot]]"
  
<br />
+
===Version===
 +
1.28
  
====Requirements====
+
===Example===
 
+
<nwscript>
<nowiki>#include "</nowiki>[[ nw_i0_plot | nw_i0_plot ]]"
+
// Add as a starting conditional on a conversation thread for a
 
+
// negative NPC reaction
====Version====
 
 
 
1.28
 
  
====Example====
+
#include "nw_i0_plot"
  
<nwscript>
+
int StartingConditional()
// add as a starting conditional on a conversation thread for a
+
{
// negative NPC reaction
+
    int bUglyLooker = CheckCharismaLow();
+
    return bUglyLooker;
#include "NW_I0_PLOT"
+
}
 
int StartingConditional()
 
{
 
    int bUglyLooker = CheckCharismaLow();
 
    return bUglyLooker;
 
}
 
 
</nwscript>
 
</nwscript>
  
====See Also====
+
===See Also===
 
 
 
{| class="seealso"
 
{| class="seealso"
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
|
+
|[[CheckCharismaMiddle]], [[CheckCharismaHigh]]
[[ CheckWisdomHigh  | CheckWisdomHigh ]]
+
|}<br />
|-
 
|}
 
 
 
<br />
 
 
----
 
----
<font color="gray">  author: John Shuell, editor: Charles Feduke, additional contributor(s): Michael Schirf</font><br />  <br />
+
<font color="gray">  author: John Shuell, editor: Charles Feduke, additional contributor(s): Michael Schirf</font>
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Get_Data_from_Creature_Functions]]
 
[[Category:Get_Data_from_Creature_Functions]]

Latest revision as of 23:38, 12 June 2013

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:  CheckCharismaMiddle, CheckCharismaHigh


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