Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ Generals/Zerohour Modding _ Can the cost reduction effect of Oil Refinery and Industrial Plant be stacked?

Posted by: nikitazero678 10 Oct 2016, 8:52

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.

Posted by: (USA)Bruce 10 Oct 2016, 12:25

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

Posted by: SoraZ 10 Oct 2016, 15: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).

Posted by: ABritishTeapot 11 Oct 2016, 10:57

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)

Posted by: SoraZ 11 Oct 2016, 12:15

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.

Posted by: nikitazero678 11 Oct 2016, 13:41

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.

Posted by: SoraZ 11 Oct 2016, 14:29

CODE
  Behavior = GrantUpgradeCreate ModuleTag_AlwaysGrantedUpgrade01
    UpgradeToGrant     = Upgrade_CostReduction
  End

Just this... I think.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)