Posted by: Resist - Wednesday, April 19, 2017 10:49:53 PM
How can I use modules ? take, for example, Changing a unit's cost ? or If I want to make an american barracks gives money -like black market- is this called behavior ? Help me please if there is any tutorial. Thanks a lot

Posted by: Resist - Thursday, April 20, 2017 4:35:58 PM
[quote=Resist;144384] or If I want to make an american barracks gives money -like black market- is this called behavior ? [/quote] [code=plain]Object AmericaBarracks AddModule ModuleTag_24 Behavior = AutoDepositUpdate ModuleTag_24_Override DepositTiming = 10000 DepositAmount = 50 InitialCaptureBonus = 800 End End End[/code] here is a code that I made, I'm new to this things but I'm learning fast.

Posted by: mr_hymn_ - Thursday, April 20, 2017 10:32:08 PM
Correct but please add only [code] Behavior = AutoDepositUpdate ModuleTag_24_Override DepositTiming = 10000 DepositAmount = 50 InitialCaptureBonus = 800 End End [/code] Addmodule is needed for map.ini but if you're editing factionbuilding.ini you don't need addmodule tag.

Posted by: Resist - Friday, April 21, 2017 4:31:58 AM
[quote=Mr_Hymn_;144412]Correct but please add only [code] Behavior = AutoDepositUpdate ModuleTag_24_Override DepositTiming = 10000 DepositAmount = 50 InitialCaptureBonus = 800 End End [/code] Addmodule is needed for map.ini but if you're editing factionbuilding.ini you don't need addmodule tag.[/quote] okay thanks for info, actually it's fr map.ini i'm not editing.

Posted by: mr_hymn_ - Friday, April 21, 2017 7:01:55 AM
Try this please. All of your buildings, units etc... cost you for free. [code=plain] AddModule ModuleTag_010 Behavior = GrantUpgradeCreate ModuleTag_010 UpgradeToGrant = Upgrade_CostReduction End End AddModule ModuleTag_05 Behavior = CostModifierUpgrade ModuleTag_05 TriggeredBy = Upgrade_CostReduction EffectKindOf = VEHICLE Percentage = -100% End End AddModule ModuleTag_06 Behavior = CostModifierUpgrade ModuleTag_06 TriggeredBy = Upgrade_CostReduction EffectKindOf = AIRCRAFT Percentage = -100% End End AddModule ModuleTag_07 Behavior = CostModifierUpgrade ModuleTag_07 TriggeredBy = Upgrade_CostReduction EffectKindOf = INFANTRY Percentage = -100% End End AddModule ModuleTag_08 Behavior = CostModifierUpgrade ModuleTag_08 TriggeredBy = Upgrade_CostReduction EffectKindOf = STRUCTURE Percentage = -100% End End [/code]

Posted by: Resist - Friday, April 21, 2017 8:14:17 AM
[quote=Mr_Hymn_;144421]Try this please. All of your buildings, units etc... cost you for free. [code=plain] AddModule ModuleTag_010 Behavior = GrantUpgradeCreate ModuleTag_010 UpgradeToGrant = Upgrade_CostReduction End End AddModule ModuleTag_05 Behavior = CostModifierUpgrade ModuleTag_05 TriggeredBy = Upgrade_CostReduction EffectKindOf = VEHICLE Percentage = -100% End End AddModule ModuleTag_06 Behavior = CostModifierUpgrade ModuleTag_06 TriggeredBy = Upgrade_CostReduction EffectKindOf = AIRCRAFT Percentage = -100% End End AddModule ModuleTag_07 Behavior = CostModifierUpgrade ModuleTag_07 TriggeredBy = Upgrade_CostReduction EffectKindOf = INFANTRY Percentage = -100% End End AddModule ModuleTag_08 Behavior = CostModifierUpgrade ModuleTag_08 TriggeredBy = Upgrade_CostReduction EffectKindOf = STRUCTURE Percentage = -100% End End [/code][/quote] it works perfectly, Thanks !