Help - Search - Members - Calendar
Full Version: Can the cost reduction effect of Oil Refinery and Industrial Plant be stacked?
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
nikitazero678
Like the title suggests, I wonder whether there is a code which makes this possible.
I had tried assigning both cost reduction bonus modules to be given through different upgrades, but it does not work.

EDIT: Oops, I posted the thread in the wrong section, as my mind's a bit messed up due to exhaustion. Please move this thread to Generals/Zero Hour modding section.
(USA)Bruce
Well codewise its not possible in shockwave mod, but it is possible in ROTR.

How this works- I have no idea but check the code.

Hell you can have something that makes everything MORE expensive, looking at you mr.Oil Sabotage GP from ROTR
Shiro
It's possible, ShW just wasn't properly coded in this regard. IIRC what you need to do is make the Command Center grant the Cost Reduction upgrade (and for security such as cross-teching, every other structure players can build, as well).
Gracia
I believe this is possible, in fact it'd even stack with ShW's vChina upgrade so the lowest you pay for a Battlemaster is around $300! I am fairly sure this still happens. (If you capture a Oil Refinery, Kwai's Industrial Plant and that Optimised Production vChina has)
Shiro
The Battlemaster production is actually just a change of the build button, not the same function as the Cost Reduction from the Oil Refinery or Industrial Plant.
nikitazero678
QUOTE (SoraZ @ 10 Oct 2016, 21:21) *
It's possible, ShW just wasn't properly coded in this regard. IIRC what you need to do is make the Command Center grant the Cost Reduction upgrade (and for security such as cross-teching, every other structure players can build, as well).


Can you post the detailed code here? I'll try it and see if it works.
Shiro
CODE
  Behavior = GrantUpgradeCreate ModuleTag_AlwaysGrantedUpgrade01
    UpgradeToGrant     = Upgrade_CostReduction
  End

Just this... I think.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.