Change ship hull strength#

The XML patch guide uses complete files from wiki/examples/elite_hull: manifest and Elite macro patch. Copy the folder contents into your extension and retain the directory structure. The selector was checked against X4 9.00; the new mod was not separately run in game.

A first MD script#

Hello X4 provides a manifest and MD script. Its one-time cue writes to the log and need not execute again when loading an already saved state.

A custom UI#

Create a window covers a Helper frame, table, text and Close button. Your mod must supply a call after UI readiness. Lua ↔ MD shows both event endpoints; a standard UI button is a fragment inside an existing table builder.

New content#

Add a ship follows macro, index and ware registration. Obtain the complete original macro from your own game; original game files are not presented as authored examples. Text and prices provide targeted XML examples.

Before using a block#

Identify whether it is a complete file, an actions fragment, part of a Lua function or pseudocode. Check version, dependencies and IDs. A successful wiki build does not turn a learning example into a tested game scenario.