scripting:reference:system_functions:playerstatusfunctions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:reference:system_functions:playerstatusfunctions [2020/02/07 03:30] – [sysNumPlayersWithPlayerVarVal] mit | scripting:reference:system_functions:playerstatusfunctions [2023/04/15 14:00] (current) – mit | ||
---|---|---|---|
Line 21: | Line 21: | ||
*msg %PLAYER% Bob's player ID is $playerID | *msg %PLAYER% Bob's player ID is $playerID | ||
} | } | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== sysGetPlayerName==== | ||
+ | ^ Format | sysGetPlayerName( PlayerID )| | ||
+ | ^ Description | Returns the name for a specified player ID | | ||
+ | ^ Returns | Player Name | | ||
+ | // | ||
+ | < | ||
+ | { | ||
+ | $name = sysGetPlayerID( $gServerKey[StoredPlayerID] ) | ||
+ | *msg %PLAYER% The player ID stored in the server key is for the player name $name | ||
} | } | ||
</ | </ | ||
Line 57: | Line 70: | ||
==== sysNumPlayersWithPlayerVarVal ==== | ==== sysNumPlayersWithPlayerVarVal ==== | ||
- | Example : '' | + | Example : '' |
// | // | ||
==== sysGenerateTopPlayerVarsList ==== | ==== sysGenerateTopPlayerVarsList ==== | ||
- | TBD // | + | ^ Format | sysGenerateTopPlayerVarsList( VarNum, Num_players_to_list )| |
- | // | + | ^ Description | Generates a list of players sorted by the $gPlayerVar selcted. e.g. '' |
+ | ^ Returns | The number of players actually added to the list. (Only players with the PlayerVar above 0 get added) | | ||
+ | \\ | ||
==== sysGetTopPlayer ==== | ==== sysGetTopPlayer ==== | ||
- | TBD // | + | ^ Format | sysGetTopPlayer ( List_Index )| |
+ | ^ Description | Access the list of top players generated using sysGenerateTopPlayerVarsList. List_Index starts at 0, so '' | ||
+ | ^ Returns | PlayerID | | ||
+ | // | ||
// | // | ||
==== sysGetPlayerListScore ==== | ==== sysGetPlayerListScore ==== | ||
+ | ^ Format | sysGetPlayerListScore ( PlayerID )| | ||
+ | ^ Description | Returns the ' | ||
+ | ^ Returns | Score value | | ||
+ | FIXME : Separate below into separate PlayerListScore page: | ||
+ | *settings PlayerListMode | ||
+ | commands *incplayerlistscore, | ||
+ | Related Subgame functions: | ||
+ | SubgameActivatePlayerListScores( SubgameID, Mode )\\ | ||
+ | SubgameGetHighestPlayerListScore( SubgameID )\\ | ||
+ | SubgameNumPlayersWithPlayerListScore( SubgameID, Score )\\ | ||
+ | SubgameGetPlayerWithPlayerListScore( SubgameID, Score, Index )\\ | ||
+ | // | ||
+ | < | ||
+ | </ | ||
TBD // | TBD // | ||
// | // |
scripting/reference/system_functions/playerstatusfunctions.1581067809.txt.gz · Last modified: 2020/02/07 03:30 by mit