Last Stance Mod Manual Help

File Format: JSON

To configure your level, fighter or enemy you need to write the configs in a JSON file.

There are many JSON tutorials out there

but here is a short overview how they work:

Common mistakes

json_comma_ok.png
json_comma_bad.png
json_comma_ok_dict.png
json_comma_bad_dict.png

Formatting

The line-formatting is for you, the computer doesn't care.

["frame_1.png","frame_2.png","frame_3.png",{"key":"value","another":"value"}]

Rundown

Numbers

{ "unlockCost": 300 }

Decimals

{ "timePerFrame": 0.15 }

Booleans | true/false | yes/no

{ "flipX": true, "flipY": false }

List (Array) with text-elements (Strings)

[ "frame_1.png", "frame_2.png", "frame_3.png" ]

Key-Value dictionaries

{ "key": "value", "another": "value" }

Combined

{ "background1": { "timePerFrame": 0.25, "frameNames": [ "hg1.png", "hg2.png" ] } }

Combined complex:

{ "fighterName": "Nata", "description": "Nita's sister.", "unlockCost": 100, "attackType": "punch", "hp": 2, "attackPoints": 1, "timeToLive": 4.0, "timeRecovery": 0.35, "previewImageName": "nataidle_00001.png", "idle": [ { "timePerFrame": 0.03, "frameNames": [ "nataidle_00001.png", "nataidle_00002.png" ] } ], "attacksOneSide": [ { "timePerFrame": 0.25, "frameNames": [ "nat_atk1_f1.png" ] }, { "timePerFrame": 0.25, "frameNames": [ "nat_atk2_f1.png" ] } ] }
Last modified: 11 August 2024