Difference between revisions of "Description Mission - atom description"

From Nebuchadnezzar Modding Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
atom ('city.nz.13.jerusalem',
 
atom ('city.nz.13.jerusalem',
 
{
 
{
     name = "@city.jerusalem",
+
atom ('mission.description.nz.11',
     position = {170, 210},
+
{
     label_position = {-10, 13},
+
     title = "@mission.nz.11",
     label_alignment = {1, 0},
+
     period = {-722, -705},
 
+
     period_in_title = true,
     control_point = {218, 183},
+
     map = "images/ui/maps/mission_11.png",
     home_bezier_offset = {0, 0},
+
     short_description = "@mission.nz.11.desc",
    this_bezier_offset = {0, 0},
+
     long_description = {
 
+
        "@mission.nz.11.a",
    import_goods = {
+
        "@mission.nz.11.b",
         'goods.brick',
+
         "@mission.nz.11.c",
         'goods.dye',
+
         "@mission.nz.11.d",
 
     },
 
     },
     import_limits = {
+
     city = "@mission.nz.11.city",
         90,
+
    city_description = {
        100,
+
         "@mission.nz.11.city.a",
 
     },
 
     },
     import_prices = {
+
     victory = "images/ui/victory_image.png",
        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,
 
 
})
 
})
 
</pre>
 
</pre>

Revision as of 17:28, 16 April 2021

<- 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',
{
atom ('mission.description.nz.11',
{
    title = "@mission.nz.11",
    period = {-722, -705},
    period_in_title = true,
    map = "images/ui/maps/mission_11.png",
    short_description = "@mission.nz.11.desc",
    long_description = {
        "@mission.nz.11.a",
        "@mission.nz.11.b",
        "@mission.nz.11.c",
        "@mission.nz.11.d",
    },
    city = "@mission.nz.11.city",
    city_description = {
        "@mission.nz.11.city.a",
    },
    victory = "images/ui/victory_image.png",
})
})