Imperivm Modding WikiCKS · FORMATS · GUIDESEspañol
Global · CKS MEMBER

EnvWriteString

Writes a string under a key in the specified player's environment. Arguments are, in order, the player number, the key, and the string to write.

This overload scopes the key to the specified player. Scripts use it, for example, to record research states. Retention of this data across games and complete player-number validation are not documented.

Signature

void EnvWriteString(int, str, str)

Parameters and return

Global scope · Return: void

PositionType
1int
2str
3str

Other overloads

MemberSignature and description
EnvWriteStringGlobalvoid EnvWriteString(str, str)

Pops value and key managed strings and delegates their payloads to the environment writer.

EnvWriteStringGlobalvoid EnvWriteString(Settlement, str, str)

CKS native primitive that writes a string value under a key into a settlement's Env key-value store.

EnvWriteStringGlobalvoid EnvWriteString(Building, str, str)

Requests a string write under an environment key scoped to the specified building and its settlement. Arguments are the building, the key and the string.

← Explore Global
MarkdownJSON

Suggest a better description

Your proposal will be held in a private inbox for review.

Controller: José Luis de la Torre Reyes. Proposals are processed to review documentation improvements on the basis of legitimate interests. You can request access, correction, erasure or object by writing to seluedita@gmail.com. Opening this form uses a first-party security cookie for one hour. Submitting stores the proposal and an IP-derived security identifier in the private inbox; omitting your name does not make the submission technically anonymous. Privacy information · Cookies and browser storage.

0 / 4000

Proposals are reviewed before publication. Do not include personal information in the description.