XS `cEnableTech` not working properly

:arrow_forward: GAME INFORMATION

  • GAME BUILD #: 7486483
  • GAME PLATFORM: Steam / Microsoft Store
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

Trying to enable a technology with XS scripting
xsEffectAmount(cEnableTech, 233, cAttributeEnable, 0, 1);

If the player is not in the correct age for this technology, the icon for the technology automatically disappears once a villager builds [certain] new building (or a building is deleted)

This does not happen when enabling a technology via a normal trigger

:arrow_forward: FREQUENCY OF ISSUE

  • 100% of the time / matches I play (ALWAYS)

:arrow_forward: REPRODUCTION STEPS

Here’s the steps to reproduce the issue:

  1. Create a new scenario
  2. Create a new trigger with the following effect
    → Script Call
void test() {
    	xsEffectAmount(cEnableTech, 233, cAttributeEnable, 0, 1);
}

this enables illumination for player 1

  1. Place a villager and a monastery for player 1
  2. Player 1 set to feudal age
  3. Run scenario
  4. Build a market using the villager (wait until finish building)
  5. Select the monastery (or reselect if it was already selected)

:arrow_forward: EXPECTED RESULT

Illumination icon disappears from monastery (which was already there before villager finished the building)

This does not happen with normal trigger effect Enable / Disable Technology

It isn’t because the player is Feudal Age is it?

Well like mentioned … if you use the trigger effect it works as expected
→ technology appears regardless of which age you are in

@Felizon89 is this a tracked issue? It is broken still as far as I can tell.

Hi there, cEnableTech has been replaced in the latest update with cAttributeEnable of cModifyTech:

xsEffectAmount(cModifyTech, 233, cAttrSetState, cAttributeEnable, 1);
2 Likes