GetItemStatsProfile

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 20:11, 18 October 2026 by QCherry (talk | contribs) (Document planned 0.1.9 item stats, armor, runes and experimental map-editor seats/lights; not a release)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getItemStatsProfile

AVAILABLE FROM UPDATE 0.1.9
Planned for 0.1.9; not yet publicly released. Not included in public 0.1.8. See the scope and validation notes below.

Exports item overrides owned by the calling resource.

Syntax

profile = getItemStatsProfile()

Parameters

This function does not accept parameters.

Returns

A table mapping canonical item keys to property/value tables. Contains only this resource's overrides, not another resource's values or a dump of defaults.

Examples

local json = toJSON(getItemStatsProfile())
assert(writeResourceData("item_balance", json))

Notes

  • Planned for G1R:MP 0.1.9; not yet publicly released and not included in public 0.1.8. This documents the implemented development API, not a release announcement. See Item type stats for scope and remaining in-game validation.
  • Server-side only. Profiles affect every copy of the same type on this server, across dimensions; not individual item instances.
  • Use matching supported client and server builds. Server acceptance and a client application report do not prove the native gameplay effect.
  • The result can be serialized with toJSON and restored with replaceItemStatsProfile. See Resource data storage.