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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline rey  
#1 Posted : Wednesday, April 11, 2018 4:06:47 AM(UTC)
rey
Major
Joined: 11/6/2015(UTC)
Posts: 152

Thanks: 8 times
Was thanked: 4 time(s) in 4 post(s)
is it possible in any way? the only variant i found is by making copies of units with edited build-times and obj names, plus change of commandset for construction building, exchanging "old" units with "edited". but maybe there's some other way?
Sponsor
Offline thepredatorbg  
#2 Posted : Wednesday, April 11, 2018 10:14:05 AM(UTC)
thepredatorbg
Private
Joined: 6/20/2017(UTC)
Posts: 17
Bulgaria

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: rey Go to Quoted Post
is it possible in any way? the only variant i found is by making copies of units with edited build-times and obj names, plus change of commandset for construction building, exchanging "old" units with "edited". but maybe there's some other way?


It's the only way I think.
Offline cccdfern  
#3 Posted : Wednesday, May 16, 2018 6:25:23 AM(UTC)
cccdfern
Private
Joined: 3/14/2017(UTC)
Posts: 1

I'll have a proper dig when I get more time, but the Remix mod does this with the tank (and others?) general.
Seems to work by piggybacking or reusing existing upgrades.

Specialize this Warfactory to the production of a single unit type.

Specialized units build twice as quickly and at half the cost.

CommandButton Tank_Command_ConstructChinaTankBattleMaster_Specialize
Command = OBJECT_UPGRADE
Upgrade = Upgrade_ChinaOverlordGattlingCannon
TextLabel = CONTROLBAR:UpgradeChinaSpecializeBattleMaster
ButtonImage = SNWarMaster
ButtonBorderType = UPGRADE
DescriptLabel = CONTROLBAR:TooltipUpgradeChinaSpecializeBattleMaster
End

Upgrade Upgrade_ChinaOverlordGattlingCannon
DisplayName = UPGRADE:ObjectUpgrade
Type = OBJECT
BuildTime = 15.0
BuildCost = 300
ButtonImage = SSUnitUpgrade
UnitSpecificSound = OverlordExpansion
End

Theres probably more relevant code to this, but its late and this may get you/others on the right track.
Offline rey  
#4 Posted : Friday, May 18, 2018 3:31:49 PM(UTC)
rey
Major
Joined: 11/6/2015(UTC)
Posts: 152

Thanks: 8 times
Was thanked: 4 time(s) in 4 post(s)
actually i accidentally found solution with creating obj that has little part of code of targeted unit, but with changed build time + BuildVariations that point to original unit.
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.