Description Mission - atom description

From Nebuchadnezzar Modding Wiki
Jump to navigation Jump to search

<- back to all classes

General description

  • Contains mission description used in the mission screens.

Properties description

Name Type Default value /
Obligatory
Description
title locale string obligatory Mission title.

Properties in detail

position

  • It's position in pixels from the top left cornder of map texture.

label alignment

  • Use -1 for left/top alignment
  • Use 0 for center alignment
  • Use 1 for right/bottom alignment

max_prestige

  • If defined then the prestige component of city relation is computed as ratio between current prestige and this max prestige multiply by maximal value of prestige relation component.

Example

atom ('city.nz.13.jerusalem',
{
    name		= "@city.jerusalem",
    position		= {170, 210},
    label_position	= {-10, 13},
    label_alignment	= {1, 0},

    control_point 	= {218, 183},
    home_bezier_offset	= {0, 0},
    this_bezier_offset	= {0, 0},

    import_goods = {
        'goods.brick',
        'goods.dye',
    },
    import_limits = {
        90,
        100,
    },
    import_prices = {
        15,
        35,
    },

    export_goods = {
        'goods.gold_jewels',
        'goods.grapes',
    },
    export_limits = {
        60,
        30,
    },
    export_prices = {
        85,
        40,
    },

    open_trade_goods = {
        'goods.gold_jewels',
        'goods.grapes',
        'goods.ceramic',
    },
    open_trade_count = {
        20,
        35,
        35,
    },

    trade_direction = "north",
    trade_ship = 'ship.trade',

    prestige_reached_event = 'event.city_reached',
    min_prestige = 550,
    max_prestige = 1800,
})