Difference between revisions of "API GetPlayerFactionStanding"
From Vendetta Lua
(split) |
(→GetPlayerFactionStanding) |
||
Line 7: | Line 7: | ||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
− | ''factionid'' a number representing a faction. | + | ''factionid'' a number representing a faction. All faction numbers, 1-13, will work for other players. [[factionid]]<br> |
''charid'' [[charid]] of a player (in the current sector?). nil is equivalent of own id. | ''charid'' [[charid]] of a player (in the current sector?). nil is equivalent of own id. | ||
<br> | <br> |
Latest revision as of 18:46, 8 September 2009
GetPlayerFactionStanding
Definition:
GetPlayerFactionStanding(int factionid, charid) -> int standing
Description:
get a players standing with a faction
Arguments:
factionid a number representing a faction. All faction numbers, 1-13, will work for other players. factionid
charid charid of a player (in the current sector?). nil is equivalent of own id.
Returns:
standing number representing faction standing 0-65535, (0 in-game being -1000, 32768 in-game being 0 and 65535 being 1000 in-game)
Example:
If the player's Itani Faction Standing was 0:
print( GetPlayerFactionStanding(1) ) -> "32768"
Or used in conjunction with GetPlayerFaction:
print( GetPlayerFactionStanding( GetPlayerFaction(charid) ) -> "Will return the players faction standing of the faction that charid belongs to." )