Skip to content
Loading local search…

Try a task like “spawn a ship” or “read inventory”, or an exact API name.

Choose one category, or search all.

sc_actor_stats_write_v1.adjust

Add delta to one named stat of your own player through the game’s stat-adjust function; the game clamps it and applies its own consequences. *out_after (may be NULL) is the stat read back right after the write. A change the game would discard (no authority, no local change allowed) is refused, never a silent OK.

sco_result (*)(sco_plugin *, uint64_t, uint32_t, float, float *)

Service index

Property Value
Symbol sc_actor_stats_write_v1.adjust
Record ID sc-actor-stats-write-v1-adjust
Service game.actor_stats_write
Table sc_actor_stats_write_v1
Version macro SC_ACTOR_STATS_WRITE_VERSION_1_0
Packed table version 65536
Since / availability size >= 16; 1.0
Complete member extent (x64 bytes) 16
Table size (x64 bytes) 32

Header source

sco_result (*adjust)(sco_plugin* self, uint64_t id, uint32_t stat, float delta, float* out_after);
Add delta to one named stat of your own player through the game’s stat-adjust function; the game clamps it and applies its own consequences. *out_after (may be NULL) is the stat read back right after the write. A change the game would discard (no authority, no local change allowed) is refused, never a silent OK.

OK applied and read back; BAD_ARG null or released self, id 0 or not your player, stat not a 1.0 stat, a non-finite input or a step past SC_ACTOR_STATS_WRITE_MAX_STEP; NOT_FOUND not spawned or no record of that stat; UNAVAILABLE game.actor_stats.write off, no fresh offline admission, or mode DISCARDED (the game would ignore the change); FAILED game fault or no read-back; WRONG_THREAD off the game thread.

Table absent: query_service NOT_FOUND. game.actor_stats.write is OFF by default (product switch or SCO_ACTOR_STATS_WRITE=1, plus its rows and game.actor_stats.read); while it is off, or (adjust, set) the session is not certified offline, the answer is UNAVAILABLE.

Copied scalar inputs; one float or uint32 copied out when the out pointer is set; no allocation, no engine pointer transfer, nothing retained. No lease: a write is a one-shot game adjust.

Game thread only; WRONG_THREAD elsewhere before any game access.

No plugin callback.

Calls the game’s own stat-adjust function at most once under a fault guard; no plugin re-entry.

Nothing is restored on unload: the stats are gameplay state the game changes every tick. game.actors’ stop withdraws the table and clears the capability.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sc_actor_stats_write.h
(*adjust)
cpp direct include/sc_actor_stats_write.h
(*adjust)
csharp unsupported docs/game/actor-stats.md
The C# and Lua game.actor_stats routes are unsupported in 1.0, for reads and writes.
lua unsupported docs/game/actor-stats.md
The C# and Lua game.actor_stats routes are unsupported in 1.0, for reads and writes.

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.