XS scripting impossible to change cost of technologie

:arrow_forward: GAME INFORMATION

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

  • GAME BUILD #: 101.102.61625
  • GAME PLATFORM: Steam / Microsoft Store
  • OPERATING SYSTEM: Windows 11

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.

Currently in XS scripting it is impossible to add a new cost to a tech or an unit,

For example the Place holder tech cost per default 100 food, you can increase the food cost but you can’t add a gold cost to it

void tech_cost() {
xsEffectAmount(cModifyTech, 968, cAttrSetFoodCost, 7500, -1);
xsEffectAmount(cModifyTech, 968, cAttrSetGoldCost, -1, -1);
xsEffectAmount(cModifyTech, 968, cAttrSetGoldCost, 7500, -1);
}

: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. Get a scenario an enable yourself the possibility to research the place holder tech
  2. Use the following script I provide or make it yourself if you want more detailled testing
  3. Notice that whatever you do you wont be able to add a gold cost to the tech unless you use the trigger effect change cost which actually allow you to do so but completely useless extra step

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?
The result should be allowing us to change the cost from food to gold or whatever depending of the ID list available like this guide written by the community suggest too: Tricks - AoE2DE UGC Guide

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

This is a known bug. I suggest modifying the cost of an already existing tech, with food or gold cost or whatever and changing its costs, icon and strings. Make another trigger that has condition tech researched and as effects you can make the desired unit modifications

1 Like

Do ther ever plan to fix it ?

No idea.

1 Like

We need a fixing here please…