- integer user.GetPlayerID()
- Gets the user name.
- V1 Function Name
- New to V2
user.GetPlayerID returns the numeric identifier for the current user.
print ( "player id = " .. user.GetPlayerID () )
might produce the output:
player id = 476462
The player id is padded with zeroes on the left to 10 spaces, and used to name a subdirectory of the puzzles directory for the current puzzle, for example:
(See puzzle.GetPuzzleID for the value of *puzzleid*.)
The puzzle id (without padding) is also the "node" of the player's page on the Foldit website, for example: