Changing the cost of a unit is one of the most common changes you can make using the Tuning Pack.
In this example, we will use the Tuning Pack to make a spearman cheaper.
1) Find the Unit's Cost
A unit's cost is found in the cost_ext extension.
Select the Spearman in your mod and navigate to: extensions > cost_ext > time_cost > cost
Here you will be able to see and access the spearman's current food cost. The default is currently at 60 food.
2) Change the Food Cost
Double-Click on the food field and enter a new value to change its cost.
Change it to 40 food.
Items in Bold
When you see a value displayed in bold text, this means that value is currently overwriting the original value in the parent ebp.
This can be an easy way to visually scan your tuning pack to see everything it is changing.
3) Save your Changes
To save the changes you have just made to your mod, using the main menu, select: File > Save.
4) Build your Mod
After you have saved your work, build your mod using the main menu by selecting: Build > Build Mod.
All your changes will then be compiled into a build.
5) Check your Changes In-Game
To check your mod in-game, create a match and select your mod in the Game Setup → Tuning Pack dropdown.
Now start a new game.
Once you get into game, build a barracks and check the cost of the spearman.
Your spearman should now have a cost of 40 food.
To continue this tutorial, proceed to: Example 3 - Propagating Unit Stats