GAME INFORMATION
- GAME BUILD #: 7486483
- GAME PLATFORM: Steam / Microsoft Store
- OPERATING SYSTEM: Windows 10
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
FREQUENCY OF ISSUE
- 100% of the time / matches I play (ALWAYS)
REPRODUCTION STEPS
Here’s the steps to reproduce the issue:
- Create a new scenario
- Create a new trigger with the following effect
→ Script Call
void test() {
xsEffectAmount(cEnableTech, 233, cAttributeEnable, 0, 1);
}
this enables illumination for player 1
- Place a villager and a monastery for player 1
- Player 1 set to feudal age
- Run scenario
- Build a market using the villager (wait until finish building)
- Select the monastery (or reselect if it was already selected)
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