PrivateJoined: 4/15/2019(UTC) Posts: 8  Thanks: 3 times
|
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.
|
|
|
|
MajorJoined: 2/21/2015(UTC) Posts: 386  Thanks: 80 times Was thanked: 132 time(s) in 96 post(s)
|
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? |
|
 1 user thanked SkyMix_RMT for this useful post.
|
|
|
PrivateJoined: 4/15/2019(UTC) Posts: 8  Thanks: 3 times
|
Originally Posted by: SkyMix_RMT  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? I am just making a multiplayer map. Code example: Object x Buildcost = 1400 Buildtime = 12.0 End Edited by user Wednesday, April 17, 2019 6:36:11 AM(UTC)
| Reason: Not specified
|
|
|
|
ColonelJoined: 8/13/2013(UTC) Posts: 816 Location: Middle east Thanks: 430 times Was thanked: 182 time(s) in 166 post(s)
|
I will just quote what skymix said and explain it: Originally Posted by: SkyMix_RMT  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. 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. Edited by user Wednesday, April 17, 2019 8:02:31 AM(UTC)
| Reason: quote code error |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
 2 users thanked UTD^Force for this useful post.
|
|
|
MajorJoined: 2/21/2015(UTC) Posts: 386  Thanks: 80 times Was thanked: 132 time(s) in 96 post(s)
|
UPDATE: it's actually possible to change.
Use this:
PlayerTemplate <FACTION NAME> ProductionCostChange = <OBJECT NAME> <FLOAT>% ProductionCostChange = <OBJECT NAME> -<FLOAT>% ProductionTimeChange = <OBJECT NAME> <FLOAT>% ProductionTimeChange = <OBJECT NAME> -<FLOAT>% End
|
|
 1 user thanked SkyMix_RMT for this useful post.
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.