write_draft
Overwrite an existing draft Lua file of a War Selection mod (latest version by default) while backing up the previous content. Use after editing the draft in the game's developer mode.
Instructions
WRITE: overwrite the existing draft modsStorage/draft/_-.lua of a mod (latest draft version by default). The game creates that file when the mod script is opened with 'edit script' in developer mode; this tool never creates files and never touches published files in modsStorage. The previous content is backed up to the user data folder (draft-backups). Save/apply in the game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| mod_id | Yes | ||
| version | No | ||
| extension | No | .lua |