Mission editing

From Of Life and Land Wiki
Jump to navigation Jump to search
EditorMission.png

In the mission file (MissionDescription.json in your scenario folder) you can define what factions are in your scenario, how they behave in diplomacy, which diplomatic rights are unlocked and who knows which maps and has which map policies.

Faction definition

You find all scenario faction definition in: MissionDescription.json > Diplomacy > Factions

Faction top level entry
Entry key Type Description
ActiveEvents array of event string keys Usually empty and filled while playing the game.
ActiveQuests array of event string keys Usually empty and filled while playing the game.
Diplomacy Quests Diplomacy quest entries Use the template / copy from other faction
Exploration array of { "Discovery state":number, "Map filename":string } Usually all 0 (undiscovered). Set to 2 if you want it to be discovered already on scenario start.
Faction name string Name of the faction. You can use translation keys to be localized.
Immigration { "CounterPush":number, "EventPush":number, "Pull":number } Usually set by the game at runtime.
Pull states how high the immigration desire is based on your attractiveness,
CounterPush how the pull is reduced by events, deaths, problems etc.,
EventPush how many extra people you get through events.
Passive boolean True will hide it from the diplomatic actions and do not grant them any protection or permission.
Player boolean Are you sure you want to exist?
Schedule Schedule entry Copy or leave empty. It is generated for every new map.
Wealth Number How many hundredth coins you have in 1x/100 (100 equals one coin)


Diplomacy Quest Entry (E.g. Collaboration)
Entry key Type Description
Preconditions array of diplomatic quest keys Which right is needed to unlock this one? Empty if there is no precondition
Request array of { "ID":Number, "TargetCount":Number } What items and how much they want to unlock it. Empty if they do not ask for anything.
Reward array of { "ID":Number, "TargetCount":Number } What item and how much they give you if you unlock it. Empty if they do not give you anything (how rude!).

Faction relation definition

You find all scenario faction definition in: MissionDescription.json > Diplomacy > Status matrix

Each faction entry has a relation to another faction. For example factions A B C D E can have 10 relations. Each relation is defined in one entry in a fixed order.

A B C D E
A - A-B A-C A-D A-E
B - - B-C B-D B-E
C - - - C-D C-E
D - - - - D-E
E - - - - -
Status matrix Entry
Entry key Type Description
Collaboration Boolean Are they working together?
True if they established this diplomatic right.
FreeTrade Boolean Are they not collecting any taxes for their trades?
True if they established this diplomatic right.
Join Boolean Did they join the player?
True if they established this diplomatic right.
RightOfWay Boolean Are they allowed to pass through their land?
True if they established this diplomatic right.
Settling Boolean Ar they allowed to settle on their land?
True if they established this diplomatic right.
Trading Boolean Are they trading with each other?
True if they established this diplomatic right.