Difference between revisions of "Mission - atom description"

From Nebuchadnezzar Modding Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 26: Line 26:
 
|demands || vec_1D'''['''atom'''['''[[Demand - atom description|Demand]]''']]''' || obligatory || Mission demands (royal requests).
 
|demands || vec_1D'''['''atom'''['''[[Demand - atom description|Demand]]''']]''' || obligatory || Mission demands (royal requests).
 
|-
 
|-
|base_mods || vec_1D'''['''string''']''' || obligatory || Base mods of this mission. All terrains data from thiese mods wil be available in this mission.
+
|base_mods || vec_1D'''['''string''']''' || obligatory || Base mods of this mission. All terrains data from these mods will be available in this mission.
 
|-
 
|-
 
|map_mod_override || string || empty || Map file mod path override. If non empty then the game will look for the mission map file in this mod data.
 
|map_mod_override || string || empty || Map file mod path override. If non empty then the game will look for the mission map file in this mod data.
 
|-
 
|-
|allowed_buildings || vec_1D'''['''atom'''['''[[Building - atom description|Building]]''']]''' || empty || All available buildings in the mission.
+
|allowed_buildings || vec_1D'''['''atom'''['''[[Building - atom description|Building]]''']]''' || obligatory || All available buildings in the mission.
 
|-
 
|-
|allowed_monuments || vec_1D'''['''atom'''['''[[Monument - atom description|Monument]]''']]''' || empty || All available monuments in the mission.
+
|allowed_monuments || vec_1D'''['''atom'''['''[[Monument - atom description|Monument]]''']]''' || obligatory || All available monuments in the mission.
 
|-
 
|-
|allowed_templates || vec_1D'''['''atom'''['''[[Mn Template - atom description|Mn Template]]''']]''' || empty || All available monument templates in the mission.
+
|allowed_templates || vec_1D'''['''atom'''['''[[Mn Template - atom description|Mn Template]]''']]''' || obligatory || All available monument templates in the mission.
 
|-
 
|-
 
|target_population || int || 0 || Population objectives.
 
|target_population || int || 0 || Population objectives.
Line 56: Line 56:
  
 
=== Properties in detail ===
 
=== Properties in detail ===
*See in-game prestige tab where you can find how individual components are computed using these data.
+
==== map_mod_override ====
 +
* Mission map file location detemined automaticaly by mod and mission name.
 +
* Change this property through a mod to make the game load mission map file from other mod. Typically from the mod changing this property.
  
 
=== Example ===
 
=== Example ===
<pre class="mw-collapsible mw-collapsed">
+
<pre>
 
atom ('mission.nz.11',
 
atom ('mission.nz.11',
 
{
 
{
description = 'base::mission.description.nz.11',
+
    description = 'mission.description.nz.11',
  
first_residents_event = 'event.first_residents',
+
    first_residents_event = 'event.first_residents',
leaving_residents_event = 'event.leaving_residents',
+
    leaving_residents_event = 'event.leaving_residents',
returning_residents_event = 'event.returning_residents',
+
    returning_residents_event = 'event.returning_residents',
no_path_residents_event = 'event.no_path_residents',
+
    no_path_residents_event = 'event.no_path_residents',
intro_event = 'base::event.intro.nz.11',
+
    intro_event = 'event.intro.nz.11',
money_events = {'base::event.money.nz.11', 'base::event.money.nothing'},
+
    money_events = {'event.money.nz.11', 'event.money.nothing'},
  
allowed_buildings = ac(
+
    allowed_buildings = ac(
nature_buildings, ac(
+
        nature_buildings, ac(
irrig_buildings, {
+
        irrig_buildings, {
'base::build.road.dirty',
+
        'build.road.dirty',
'base::build.road.stone',
+
        'build.road.stone',
'base::build.bridge',
+
        'build.bridge',
'base::build.mine.clay',
+
        'build.mine.clay',
'base::build.mine.fish',
+
        'build.mine.fish',
'base::build.shop.bread',
+
        'build.shop.bread',
'base::build.shop.ceramic',
+
        'build.shop.ceramic',
'base::build.shop.brick',
+
        'build.shop.brick',
'base::build.shop.copper_jewels',
+
        'build.shop.copper_jewels',
'base::build.shop.beer',
+
        'build.shop.beer',
'base::build.shop.tablet',
+
        'build.shop.tablet',
'base::build.shop.ceremony',
+
        'build.shop.ceremony',
'base::build.shop.meat',
+
        'build.shop.meat',
'base::build.shop.furniture',
+
        'build.shop.furniture',
'base::build.shop.seal',
+
        'build.shop.seal',
'base::build.shop.gold_jewels',
+
        'build.shop.gold_jewels',
'base::build.shop.fabric',
+
        'build.shop.fabric',
'base::build.shop.cloth',
+
        'build.shop.cloth',
'base::build.service.water',
+
        'build.service.water',
'base::build.service.priest',
+
        'build.service.priest',
'base::build.service.administration',
+
        'build.service.administration',
'base::build.service.library',
+
        'build.service.library',
'base::build.service.lawyer',
+
        'build.service.lawyer',
'base::build.market.basic.7',
+
        'build.market.basic.7',
'base::build.market.mid.11',
+
        'build.market.mid.11',
'base::build.market.luxury.10',
+
        'build.market.luxury.10',
'base::build.farm.plant.11',
+
        'build.farm.plant.11',
'base::build.farm.animal.9',
+
        'build.farm.animal.9',
'base::build.warehouse.11',
+
        'build.warehouse.11',
'base::build.house.lower.4',
+
        'build.house.lower.4',
'base::build.house.middle.5',
+
        'build.house.middle.5',
'base::build.house.upper.3',
+
        'build.house.upper.3',
'base::build.caravanserai.11',
+
        'build.caravanserai.11',
'base::build.mn_warehouse',
+
        'build.mn_warehouse',
'base::build.port.small',
+
        'build.port.small',
'base::build.port.big',
+
        'build.port.big',
'base::build.decor.stele',
+
        'build.decor.stele',
'base::build.decor.obelisk',
+
        'build.decor.obelisk',
'base::build.decor.statue',
+
        'build.decor.statue',
'base::build.decor.grass.small',
+
        'build.decor.grass.small',
'base::build.decor.garden.small.1',
+
        'build.decor.garden.small.1',
'base::build.decor.garden.small.2',
+
        'build.decor.garden.small.2',
'base::build.decor.garden.small.3',
+
        'build.decor.garden.small.3',
'base::build.decor.garden.small.color.1',
+
        'build.decor.garden.small.color.1',
'base::build.decor.garden.small.color.2',
+
        'build.decor.garden.small.color.2',
'base::build.decor.garden.small.color.3',
+
        'build.decor.garden.small.color.3',
'base::build.decor.garden.small.color.4',
+
        'build.decor.garden.small.color.4',
'base::build.decor.garden.small.fountain.1',
+
        'build.decor.garden.small.fountain.1',
'base::build.decor.garden.small.fountain.2',
+
        'build.decor.garden.small.fountain.2',
'base::build.decor.garden.small.fountain.3',
+
        'build.decor.garden.small.fountain.3',
'base::build.decor.garden.big.1',
+
        'build.decor.garden.big.1',
'base::build.decor.garden.big.2',
+
        'build.decor.garden.big.2',
'base::build.road.decorative.1',
+
        'build.road.decorative.1',
'base::build.road.decorative.2',
+
        'build.road.decorative.2',
'base::build.road.decorative.3',
+
        'build.road.decorative.3',
})),
+
    })),
allowed_monuments = {
+
    allowed_monuments = {
'base::mn.temple.11',
+
        'mn.temple.11',
'base::mn.palace.11',
+
        'mn.palace.11',
},
+
    },
allowed_templates = {
+
    allowed_templates = {
'base::mn_template.temple.11',
+
        'mn_template.temple.11',
'base::mn_template.palace.11',
+
        'mn_template.palace.11',
},
+
    },
  
        base_mods = {"base"},
+
    base_mods = {"base"},
map = 'base::map.nz.11',
+
    map = 'map.nz.11',
prestige = 'base::prestige.nz.11',
+
    prestige = 'prestige.nz.11',
requests = {'base::request.nz.11.a', 'base::request.nz.11.b', 'base::request.nz.11.c'},
+
    requests = {'request.nz.11.a', 'request.nz.11.b', 'request.nz.11.c'},
demands = {},
+
    demands = {},
  
target_population = 24000,
+
    target_population = 24000,
target_prestige = 1440,
+
    target_prestige = 1440,
target_level_atoms = {
+
    target_level_atoms = {
'base::level.house.middle.5',
+
        'level.house.middle.5',
'base::level.house.upper.3',
+
        'level.house.upper.3',
},
+
    },
target_level_counts = {
+
    target_level_counts = {
64,
+
        64,
11,
+
        11,
},
+
    },
target_monument_atoms = {
+
    target_monument_atoms = {
'base::mn_category.temple.11',
+
        'mn_category.temple.11',
'base::mn_category.palace.11',
+
        'mn_category.palace.11',
},
+
    },
target_monument_counts = {
+
    target_monument_counts = {
1,
+
        1,
1,
+
        1,
},
+
    },
 
})
 
})
 
</pre>
 
</pre>

Latest revision as of 17:24, 16 April 2021

<- back to all classes

General description[edit]

  • Mission atom is the main atom of any mission.
  • It contains all settings of the mission or links to other atoms containg mission settings.

Properties description[edit]

Name Type Default value /
Obligatory
Description
description atom[Description Mission] obligatory Mission description atom.
first_residents_event atom[Event] obligatory Event atom for the first incoming settlers.
leaving_residents_event atom[Event] obligatory Event atom for the leaving settlers.
returning_residents_event atom[Event] obligatory Event atom for the returning settlers.
no_path_residents_event atom[Event] obligatory Event atom when settlers are not able to reach empty houses.
map atom[Map] obligatory Mission map atom.
prestige atom[Prestige] obligatory Mission prestige atom.
requests vec_1D[atom[Request]] obligatory Mission requests.
demands vec_1D[atom[Demand]] obligatory Mission demands (royal requests).
base_mods vec_1D[string] obligatory Base mods of this mission. All terrains data from these mods will be available in this mission.
map_mod_override string empty Map file mod path override. If non empty then the game will look for the mission map file in this mod data.
allowed_buildings vec_1D[atom[Building]] obligatory All available buildings in the mission.
allowed_monuments vec_1D[atom[Monument]] obligatory All available monuments in the mission.
allowed_templates vec_1D[atom[Mn Template]] obligatory All available monument templates in the mission.
target_population int 0 Population objectives.
target_money int 0 Money objectives.
target_prestige int 0 Prestige objectives.
target_level_atoms vec_1D[atom[House Level]] empty vec House level objectives atoms.
target_level_counts vec_1D[int] empty vec House level objectives values.
target_goods_atoms vec_1D[atom[Goods]] empty vec Goods objectives atoms.
target_goods_counts vec_1D[int] empty vec Goods objectives values.
target_monument_atoms vec_1D[atom[Mn Category]] empty vec Monument objectives atoms.
target_monument_counts vec_1D[int] empty vec Monument objectives values.

Properties in detail[edit]

map_mod_override[edit]

  • Mission map file location detemined automaticaly by mod and mission name.
  • Change this property through a mod to make the game load mission map file from other mod. Typically from the mod changing this property.

Example[edit]

atom ('mission.nz.11',
{
    description = 'mission.description.nz.11',

    first_residents_event = 'event.first_residents',
    leaving_residents_event = 'event.leaving_residents',
    returning_residents_event = 'event.returning_residents',
    no_path_residents_event = 'event.no_path_residents',
    intro_event = 'event.intro.nz.11',
    money_events = {'event.money.nz.11', 'event.money.nothing'},

    allowed_buildings = ac(
        nature_buildings, ac(
        irrig_buildings, {
        'build.road.dirty',
        'build.road.stone',
        'build.bridge',
        'build.mine.clay',
        'build.mine.fish',
        'build.shop.bread',
        'build.shop.ceramic',
        'build.shop.brick',
        'build.shop.copper_jewels',
        'build.shop.beer',
        'build.shop.tablet',
        'build.shop.ceremony',
        'build.shop.meat',
        'build.shop.furniture',
        'build.shop.seal',
        'build.shop.gold_jewels',
        'build.shop.fabric',
        'build.shop.cloth',
        'build.service.water',
        'build.service.priest',
        'build.service.administration',
        'build.service.library',
        'build.service.lawyer',
        'build.market.basic.7',
        'build.market.mid.11',
        'build.market.luxury.10',
        'build.farm.plant.11',
        'build.farm.animal.9',
        'build.warehouse.11',
        'build.house.lower.4',
        'build.house.middle.5',
        'build.house.upper.3',
        'build.caravanserai.11',
        'build.mn_warehouse',
        'build.port.small',
        'build.port.big',
        'build.decor.stele',
        'build.decor.obelisk',
        'build.decor.statue',
        'build.decor.grass.small',
        'build.decor.garden.small.1',
        'build.decor.garden.small.2',
        'build.decor.garden.small.3',
        'build.decor.garden.small.color.1',
        'build.decor.garden.small.color.2',
        'build.decor.garden.small.color.3',
        'build.decor.garden.small.color.4',
        'build.decor.garden.small.fountain.1',
        'build.decor.garden.small.fountain.2',
        'build.decor.garden.small.fountain.3',
        'build.decor.garden.big.1',
        'build.decor.garden.big.2',
        'build.road.decorative.1',
        'build.road.decorative.2',
        'build.road.decorative.3',
    })),
    allowed_monuments = {
        'mn.temple.11',
        'mn.palace.11',
    },
    allowed_templates = {
        'mn_template.temple.11',
        'mn_template.palace.11',
    },

    base_mods = {"base"},
    map = 'map.nz.11',
    prestige = 'prestige.nz.11',
    requests = {'request.nz.11.a', 'request.nz.11.b', 'request.nz.11.c'},
    demands = {},

    target_population = 24000,
    target_prestige = 1440,
    target_level_atoms = {
        'level.house.middle.5',
        'level.house.upper.3',
    },
    target_level_counts = {
        64,
        11,
    },
    target_monument_atoms = {
        'mn_category.temple.11',
        'mn_category.palace.11',
    },
    target_monument_counts = {
        1,
        1,
    },
})