• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

trer12

Recruit
Feb 15, 2016
5
0
관세수정.png




Hello guys!

I try to add some subdivided tariff control button, but the tariff control functions are hardcoded as


'SetGoodsTariffImportPriority'

'SetGoodsTariffNoPriority'

'SetGoodsTariffExportPriority'


these three functions. I guess each function call return modifier


'tariff_modifier_import_priority',

'tariff_modifier_no_priority' ,

'tariff_modifier_export_priority',


from common/laws/00_trade_policy.txt.


So my question is this, is there anyway add my own custom function which returns my custom modifier from custom .txt file?

I figure out how to add new button on the budget panel, but i need new function to make the button work