SpyEffect.StolenTechIndex
| Flag: | SpyEffect.StolenTechIndex |
| File(s): | rules(md).ini |
| Values: | Before version 0.B: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. (Limited to: 0 to 31)
|
| Default: | -1 |
| Extension Version: | New in version 0.1.
Changed in version 0.B. |
| Applicable to: | BuildingTypes |
| |
The stealable technology types that is stolen upon spying this enemy building.
Notes
Only values from 0 to 31 (inclusive) are supported. Use -1 to disable the effect.
Note that despite its singular name this tag takes a list of integers and it is thus possible to steal several technology types when infiltrating a single building.
Usage
In Yuri's Revenge, there were only three types of stealable technology available and these were hard-coded to the first three buildings in the [AI]→BuildTech= list (game defaults given in parens):
- Spying the first (GATECH) satisfies RequiresStolenAlliedTech=yes
- Spying the second (NATECH) satisfies RequiresStolenSovietTech=yes
- Spying the third (YATECH) satisfies RequiresStolenThirdTech=yes
In Ares, spying a building with SpyEffect.StolenTechIndex=2 (for example) satisfies the stolen tech requirements for units that require stolen tech 2[1].
If you set SpyEffect.Custom=yes on buildings in the BuildTech list (like GATECH, NATECH or YATECH), then those buildings will no longer satisfy the old RequiresStolen*Tech flags.
Footnotes
- ↑ This is achieved by setting 2 in the Prerequisite.StolenTechs list of units. Only after every prerequisite in this list is satisfied can it be produced.