Regarding the cost of the xsEffectAmount() technology, no new costs can be added

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • GAME BUILD #: 93001 At the time of accession to Rome, it did not come into force
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.
The part of the xsEffectAmount() function in the xs script about changing tech fees doesn’t work.
It can only change the existing price data, it cannot add another resource.
Changing the tech cost in the editor can add new resource items.

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

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

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

  1. Place a town center
  2. Use the script to call the following code
    What this code does is change the cost of food, wood, and stone for player 1 loom
    void tech_cost_other()
    {
    xsEffectAmount(8,22,0,100,1);
    xsEffectAmount(8,22,1,100,1);
    xsEffectAmount(8,22,2,100,1);
    }
    3.Test the map to see how much the loom costs
    4.Use the following code to change the gold fee for Player 1 loom
    void tech_cost_gold()
    {
    xsEffectAmount(8,22,3,100,1);
    }
    5.It can be seen that this function can only change the existing data, and cannot add new spending items

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?
The cost of a unit can be added to a new spend type through the xs function, but the technology does not, which is not fair

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.

:arrow_forward: GAME FILES (SAVE / RECORDING)

:point_down: Attach a SAVE GAME (.aoe2spgame) or GAME RECORDING (.aoe2record) of the match where you encountered the issue. Link it below if using an external file service.