Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Ramadan  
#1 Posted : Saturday, October 8, 2022 10:13:39 AM(UTC)
Ramadan
Private
Joined: 6/24/2022(UTC)
Posts: 9

Thanks: 7 times
I have a question and I hope someone will answer me. Can I change the price of a tank, soldier or plane on the map through the scripts?
Sponsor
Offline UTD^Force  
#2 Posted : Saturday, October 8, 2022 12:16:06 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I don't think that's possible. Even if you want to change a unit's cost through map.ini that would be very bothersome and limiting, as you can only use another unit's build cost and replace all of its code with your unit's code.
I'm not sure about units that do not have their costs specified in their main ini.big files, e.g. system units or weapon objects.
If you change the buildcost through map.ini, it will only change the visible number in game but will still deduct the previous cost from your money.
Buildcost in .ini
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
Ramadan on 10/9/2022(UTC)
Offline SkyMix_RMT  
#3 Posted : Saturday, October 15, 2022 6:28:28 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Heyo, 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
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
thanks 1 user thanked SkyMix_RMT for this useful post.
UTD^Force on 10/17/2022(UTC)
Users browsing this topic
Guest
Similar Topics
scripts2 (Generals: Maps and World Builder)
by Ramadan 10/9/2022 2:16:52 AM(UTC)
scripts1 (Generals: Maps and World Builder)
by Ramadan 10/9/2022 2:14:24 AM(UTC)
OreNode Cash Amount , money resources ? scripts (RA3: Maps and World Builder)
by apofisz22 2/6/2021 1:11:38 AM(UTC)
WB Snow Blizzard & Scripts (Generals: Maps and World Builder)
by o Wickedwolf O 7/5/2020 10:19:43 AM(UTC)
Export / Import of Scripts / Teams / Waypoints / Areas using a hex editor (Generals: Maps and World Builder)
by i^love^mixery 1/22/2020 4:24:56 PM(UTC)
exporting SkirmishScripts.scb problem (C&C Generals and Zero Hour)
by ᅚᅚᅚ 7/22/2019 3:19:54 AM(UTC)
Copying AI scripts from one faction to another? (Generals: Modding)
by tanksarevictory 5/4/2019 10:54:11 PM(UTC)
Zero Hour Worldbuilder, Scripts Broken (Generals: Maps and World Builder)
by Apeirogon 2/6/2019 4:20:16 PM(UTC)
what are these scripts? (Generals: Modding)
by AdrianeMapMaker 8/20/2018 8:33:02 AM(UTC)
Questions about some actions in scripts - hulk and cinematic script (Generals: Maps and World Builder)
by jman 5/18/2018 3:04:42 AM(UTC)
Help: Modifying Scripts in Zero Hour World Builder (Generals: Maps and World Builder)
by Mabus2018 1/11/2018 6:39:23 PM(UTC)
Does anyone know what the "Add GC_ tags" button in the Scripts window does? (Generals: Maps and World Builder)
by Deinon 9/15/2017 12:00:27 PM(UTC)
Reinforcement scripts not working (RA3: Maps and World Builder)
by Babasparks 4/24/2017 4:42:01 PM(UTC)
Can I write scripts in a notepad file? (C&C Generals and Zero Hour)
by Resist 4/20/2017 6:53:51 AM(UTC)
Problem With Custom Scripts. (RA3: Maps and World Builder)
by critchy 4/5/2017 6:03:08 PM(UTC)
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.