Jump to content

Upgrading Unit by tech


dajayalol
 Share

Recommended Posts

I am just a noob around here, tring to find a way to contribute

Here's my question

Is there any way to make a tech button script such that

It can convert a kind of unit of yours, say, all your roman hastati into Marian Legionnaries.,

and preserves your previous weapon upgrade effect

since roman 's may get "Reforms" in their tech

Anyone got any idea of how to script this?

I have read binaries\data\mods\public\\simulation\data echnologies\

but seem it can only modify values of armor,hack,health...etc right now

for example:the immortals tech

{

"genericName": "Immortals",

"description": "The Anusiya champion infantry train twice as fast, but lose a little max health.",

"cost": {"food": 200, "wood": 0, "stone": 0, "metal": 200},

"requirements": {"tech": "phase_city"},

"requirementsTooltip": "Unlocked in City Phase.",

"icon": "fist_spear.png",

"researchTime": 30,

"tooltip": "Anusiya -50% train time, but also -10% health.",

"modifications": [

{"value": "Cost/BuildTime", "multiplier": 0.5},

{"value": "Health/Max", "multiplier": 0.9}

],

"affects": ["Champion Infantry"]

}

Edited by dajayalol
Link to comment
Share on other sites

Right. I don't think there is yet the capability to swap a unit to another with a currently implemented tech effect. I agree though that it would be useful to be able to do this in the future -- "Marian Reforms" or "Military Reforms" etc. I could see a "Marian Reforms" tech for the Part 1 Romans that turns all the player's infantry into Marian Legionaries for a high cost, similar to the Norse "Ragnarok" in Age of Mythology. And then, of course, we could add other "reforms" techs to other civs, like the Ptolemies, Macedonians, and Seleucids to upgrade their pikemen to later forms or to upgrade their Thureophoroi to "Roman-style" Thorakites, or Hypaspists to Silver Shields.

  • Like 1
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...