ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

SpyEffect.StolenTechIndex

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
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)


Starting from version 0.B: Comma-separated list of integers. (Limited to: 0 to 31)

Default:  -1
Extension Version: New in version 0.1.

Changed in version 0.B.

Applicable to: BuildingTypes

This flag is part of Ares. Do not use it without Ares installed.



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):

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

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

See Also

The_Prerequisite_System