Difference between revisions of "SetPLocalInt"

From NWN Lexicon
Jump to: navigation, search
(Created page with " =SetPLocalInt(object, string, int)= Sets a variable that remains attached to a PC party. void  SetPLocalInt(      object  oPC, ...")
 
Line 7: Line 7:
 
Sets a variable that remains attached to a PC party.
 
Sets a variable that remains attached to a PC party.
  
 +
<nwscript>
 
  [[void | void ]] SetPLocalInt(
 
  [[void | void ]] SetPLocalInt(
 
      [[object | object ]] oPC,
 
      [[object | object ]] oPC,
Line 12: Line 13:
 
      [[int | int ]] nValue
 
      [[int | int ]] nValue
 
  );
 
  );
 +
</nwscript>
  
 
====Parameters====
 
====Parameters====

Revision as of 21:59, 25 August 2012



SetPLocalInt(object, string, int)

Sets a variable that remains attached to a PC party.

 [[void | void ]] SetPLocalInt(
     [[object | object ]] oPC,
     [[string | string ]] sLocalName,
     [[int | int ]] nValue
 );

Parameters

oPC

PC within a party.

sLocalName

Name of the variable.

nValue

Value the variable holds.


Description

Sets a local integer on every PC who belongs to the party that the oPC belongs to, identified by sLocalName with the value of nValue. This is useful for servers when parties are constantly changing (players disconnecting/reconnecting).



Remarks

Multi-player friendly way of tracking integers among an entire party of PCs. Same as aSetPLocalInt(object, string, int).


Requirements

#include " nw_i0_plot "

Version

1.28

See Also

functions: 

GetPLocalInt



 author: Charles Feduke, additional contributor(s): Tom Cassiotis