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
Parameters and return
Global scope · Return: void
Other overloads
| Member | Signature and description |
|---|---|
EnvWriteStringGlobal | void EnvWriteString(str, str)Pops value and key managed strings and delegates their payloads to the environment writer. |
EnvWriteStringGlobal | void EnvWriteString(Settlement, str, str)CKS native primitive that writes a string value under a key into a settlement's Env key-value store. |
EnvWriteStringGlobal | void 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. |