Scenario Data Types

andy-joslin edited this page Dec 31, 2011 · 8 revisions
Clone this wiki locally

This page lists all the different data types available in LuaTrig and how to set them. You can either use the strings below or the IDs to set conditions and effects.

For example, to set an accumulate attribute effect's resource type to kills you could do either of these:

effect:resource("Kills")

or

effect:resource(20)

Resources

  • 0 : "Food"
  • 1 : "Wood"
  • 2 : "Stone"
  • 3 : "Gold"
  • 4 : "Population Limit"
  • 7 : "Relics"
  • 11 : "Population"
  • 20 : "Kills"
  • 21 : "Technologies"
  • 37 : "Villager Population"
  • 40 : "Military Population"
  • 41 : "Conversions"
  • 43 : "Razings"
  • 44 : "Kill Ratio"

Diplomacy

  • 0 : "Ally"
  • 1 : "Neutral"
  • 2 : "Enemy"

Unit Type

  • -1 : "None"
  • 1 : "Other"
  • 2 : "Building"
  • 3 : "Civilian"
  • 4 : "Military"

Unit Group

  • 0x00 : "Archer"
  • 0x01 : "Artifact"
  • 0x02 : "Trade Boat"
  • 0x03 : "Building"
  • 0x04 : "Civilian"
  • 0x05 : "Sea Fish"
  • 0x06 : "Soldier"
  • 0x07 : "Berry Bush"
  • 0x08 : "Stone Mine"
  • 0x09 : "Prey Animal"
  • 0x0A : "Predator Animal"
  • 0x0B : "Other"
  • 0x0C : "Cavalry"
  • 0x0D : "Siege Weapon"
  • 0x0E : "Map Decoration"
  • 0x0F : "Tree"
  • 0x12 : "Priest"
  • 0x13 : "Trade Cart"
  • 0x14 : "Transport Boat"
  • 0x15 : "Fishing Boat"
  • 0x16 : "War Boat"
  • 0x17 : "Conquistador"
  • 0x1B : "Walls"
  • 0x1C : "Phalanx"
  • 0x1E : "Flags"
  • 0x20 : "Gold Mine"
  • 0x21 : "Shore Fish"
  • 0x22 : "Cliff"
  • 0x23 : "Petard"
  • 0x24 : "Cavalry Archer"
  • 0x25 : "Dolphin"
  • 0x26 : "Birds"
  • 0x27 : "Gates"
  • 0x28 : "Piles"
  • 0x29 : "Resource"
  • 0x2A : "Relic"
  • 0x2B : "Monk with Relic"
  • 0x2C : "Hand Cannoneer"
  • 0x2D : "Two-Handed Swordsman"
  • 0x2E : "Pikeman"
  • 0x2F : "Scout Cavalry"
  • 0x30 : "Ore Mine"
  • 0x31 : "Farm"
  • 0x32 : "Spearman"
  • 0x33 : "Packed Siege Units"
  • 0x34 : "Tower"
  • 0x35 : "Boarding Boat"
  • 0x36 : "Unpacked Siege Units"
  • 0x37 : "Scorpion"
  • 0x38 : "Raider"
  • 0x39 : "Cavalry Raider"
  • 0x3A : "Sheep"
  • 0x3B : "King"
  • 0x3D : "Horse "