The player's profile: credits, relocations, resupplies, trophies, statistics (since API 3).
The saved profile. Credits, relocations and resupplies are writable; every write is logged (the console and the
game's log) and kept with the game's save, like the game's own purchases. Trophies and statistics are read only;
licences are content.unlocked / content.unlock; purchase flags are never written.
# profile.credits(n?) → integer
since API 3
The credits (player.credits / addCredits too).
| Parameter | Type | |
n optional | integer | 0-999999999 |
# profile.relocations(n?) → integer
since API 3
Relocations owned (Ice Age does not use them).
| Parameter | Type | |
n optional | integer | |
# profile.resupplies(n?) → integer
since API 3
Resupplies owned (Ice Age gives one per hunt).
| Parameter | Type | |
n optional | integer | |
# profile.trophies() → table
since API 3
The trophy room's trophies.
| Returns | |
| table | {slot, species, weapon, time, points, scale, range, locked}... |
# profile.fields() → table
since API 3
Every member of the profile (the raw layer).
| Returns | |
| table | FieldInfo list |