scripted_gui = { ottoman_state_window = { context_type = selected_state_context window_name = "OTT_Infopanel" parent_window_token = selected_state_view dirty = global.AFG_toll_dirty_update_var visible = { OR = { is_owned_by = ROOT is_controlled_by = ROOT } OR = { is_owned_by = AFG is_controlled_by = AFG } is_core_of = AFG #Core States OR = { state = 409 state = 410 state = 411 state = 412 state = 415 state = 414 } } triggers = { OTT_Action_Centralise_button_click_enabled = { custom_trigger_tooltip = { tooltip = AFG_toll_below_maximum_tt THIS = { check_variable = { var = AFG_toll_level value = 5 compare = less_than } } } } OTT_Action_Decentralise_button_click_enabled = { custom_trigger_tooltip = { tooltip = AFG_toll_above_minimum_tt THIS = { check_variable = { var = AFG_toll_level value = 2 compare = greater_than_or_equals } } } } } effects = { OTT_Action_Centralise_button_click = { THIS = { add_to_variable = { AFG_toll_level = 1 } } update_afghan_toll = yes update_afg_toll_dirty_variable = yes ROOT = { AFG_national_assembly_checks = yes add_to_variable = { AFG_consumer_goods_factor_toll = 0.02 tooltip = consumer_goods_factor_tt } } } OTT_Action_Decentralise_button_click = { THIS = { add_to_variable = { AFG_toll_level = -1 } } update_afghan_toll = yes update_afg_toll_dirty_variable = yes ROOT = { AFG_national_assembly_checks = yes add_to_variable = { AFG_consumer_goods_factor_toll = -0.02 tooltip = consumer_goods_factor_tt } } } } } }