Posted by: MoqqyT - Tuesday, April 16, 2019 4:55:58 PM
Why buildcost stay the same even tho i changed it in .ini?
or it displays the new buildcost i set but it didnt actually change the real cost.
Posted by: SkyMix_RMT - Tuesday, April 16, 2019 8:11:26 PM
If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.
If this is a mod, then you must be doing something wrong, what changes did you make exactly?
Posted by: MoqqyT - Wednesday, April 17, 2019 6:20:53 AM
[quote=SkyMix_RMT;148826]If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.
If this is a mod, then you must be doing something wrong, what changes did you make exactly?[/quote]
I am just making a multiplayer map.
Code example:
Object x
Buildcost = 1400
Buildtime = 12.0
End
Posted by: UTD^Force - Wednesday, April 17, 2019 9:01:56 AM
I will just quote what skymix said and explain it:
[quote=SkyMix_RMT;148826]If we are talking about map.ini file, you can't change buildcost with a map.ini, it's just not possible, you can however, use a different unit that has the price you're looking for, then give it completely new code for the original unit you wanted.[/quote]
A multiplayer map uses map.ini, so you can't change the cost of units in map.ini.
The solution is to take a unit that has the price which you are looking for, and replace its entire code with the unit you want to change the price for.
Posted by: SkyMix_RMT - Saturday, October 15, 2022 7:28:28 PM
UPDATE: it's actually possible to change.
Use this:
PlayerTemplate
ProductionCostChange =
Posted by: BLEACH - Saturday, June 24, 2023 6:37:12 PM
How do I change the build cost with the ini? where do I put the code