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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...