GetPLocalInt

From NWN Lexicon



Contents

[edit] GetPLocalInt(object, string)

Determines the value of a locally stored variable from any PC in a party.

int GetPLocalInt(
    object oPC,
    string sLocalName
);

[edit] Parameters

oPC

PC whose party will be searched for the local variable.

sLocalName

Local variable name to get the value.


[edit] Description

Scans through all players in the party, to treat them all as a single entity for the purposes of most plots. This makes BioWare plots more multi-player friendly.



[edit] Remarks

Although not absolutely necessary, SetPLocalInt should be used. SetPLocalInt sets a local variable to all party members. With these two functions a multiplayer game can handle some players leaving and new players entering mid game.

GetPLocalInt is short for GetPartyLocalInt.

Same as aGetPLocalInt(object, string).


[edit] Requirements

#include " nw_i0_plot "

[edit] Version

1.28

[edit] See Also

functions: 

SetPLocalInt



 author: Tom Cassiotis, editor: Charles Feduke
 

Personal tools
Categories