Tutorial 1: Your first game set extension

    1. Go to “<WK_Installation_Path>/saved/Warrior Kings Game Set”.

    2. (If you don’t find the saved directory, you might find it in:

    3. C:\Users\<yourusername>\AppData\Local\VirtualStore\<WKB_Installation_Path>

    4. and if you don’t find “Warrior Kings Game Set”, make it.)

    5. Create a new file and name it “my first exts.cpp”.

    6. Write in this file:

    7. LINK_GAME_SET "multi-player extensions.cpp"

    8. CHARACTER_EXTENSION "Peasant"

    9. CAN_BUILD "Palings"

    10. END_CHARACTER_EXTENSION

    11. Save the file.

    12. Go to <WK_Installation_Path>/saved/Save_Games.

    13. Make a copy of one of your savegames in the same directory. (Preferably use a savegame using a skirmish exclusive map, not a campaign map.)

    14. Open the copy in WordPad.

    15. Look for the line beginning with GAME_SET and change “Warrior Kings Game Set\multi-player extensions.cpp” to “Warrior Kings Game Set\my first exts.cpp”. (If it is not “multi-player extensions.cpp” then you must correct it in the first line of “my first exts.cpp” you previously made at step 3.)

    16. Save the file.

Now try to load the modified savegame. You will see that your peasants are now able to build palings!

LINK_GAME_SET means that the contents of another game set file (cpp) are automatically copied into your file. As such you don’t have to copy the contents of the previous game set file in yours. (If you know C or C++, it works like #include.)

CHARACTER_EXTENSION is a block that contains additional information for a particular character type, in this case the peasants.

CAN_BUILD adds to a character the ability to build a building, in this case palings (palings are considered as buildings).