Jump to content

Lock Phase Upgrades


Marosai
 Share

Recommended Posts

 

I got this from a mod on github Sciguy42. I believe that something like this disabling the phase city technology.

 

https://github.com/SciGuy42/Macedonia_0ad/blob/master/maps/scenarios/Macedonia_22.js

(In this example he is disabling the possibility to build several buildings and units for all civs for this map only.)

var disabledTemplates = (civ) => [

// Economic structures

"structures/" + civ + "_corral",

"structures/" + civ + "_farmstead",

"structures/" + civ + "_field",

"structures/" + civ + "_storehouse",

"structures/" + civ + "_rotarymill",

"structures/" + civ + "_market",

// Expansions

"structures/" + civ + "_civil_centre",

"structures/" + civ + "_military_colony",

// Walls

"structures/" + civ + "_wallset_stone",

"structures/rome_wallset_siege",

"other/wallset_palisade",

// Shoreline

"structures/" + civ + "_dock",

"structures/brit_crannog",

"structures/cart_super_dock",

"structures/ptol_lighthouse",

//villagers

"units/" + civ + "_support_female_citizen"

];

  • Like 1
Link to comment
Share on other sites

Yes. I remember now. In your map XML file:

{
  "AISeed": 0,
  "CircularMap": true,
  "Description": "Northern Italy near the Alps is called Cisalpine Gaul by the Romans. It's a fertile area contested by the Gauls, Etruscans, and Romans alike. ",
  "Keywords": [
    "new"
  ],
  "DisabledTechnologies": [
    "pair_farming_01",
    "pair_farming_02",
    "celts/gather_farming_harvester",
    "gather_farming_cultivation",
    "ptolemies/gather_grain_water_wheel",
    "ptolemies/gather_grain_well_sweep",
    "farms_crop_rotation",
    "vision_defense_tower"
  ],
  "LockTeams": false,
  "Name": "Cisalpine Winter (2 players)",
  "PlayerData": [
    "",
    {
      "Name": "Player 1"
    },
    {
      "Name": "Player 2"
    }
  ],
  "Preview": "cisalpine_winter_2p.png",
  "RevealMap": false,
  "VictoryConditions": [
    "domination"
  ]
}

See "DisabledTechnologies" section. Just put the phases you want to disable there. :) 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...