Difference between revisions of "Description Mission - atom description"

From Nebuchadnezzar Modding Wiki
Jump to navigation Jump to search
Line 11: Line 11:
  
 
=== Properties in detail ===
 
=== 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 ===
 
=== Example ===

Revision as of 17:32, 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

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",
})
})