欧陆风云4吧 关注:334,388贴子:10,298,737
  • 13回复贴,共1

mod制作求助!

只看楼主收藏回复

rt,lz做了一个政府能力,进游戏后可正常使用,但是一读档机制就消失了,救救孩子吧


IP属地:江苏来自iPhone客户端1楼2024-04-12 15:32回复
    看看代码


    IP属地:浙江来自Android客户端2楼2024-04-12 16:02
    收起回复
      这是政府能力的代码前半部分@SEKGY
      22_orders = {
      alert_icon_gfx = GFX_alerticons_government_mechanics
      alert_icon_index = 4
      available = {
      }
      powers = {
      order_power = {
      min = 0
      max = 100
      default = 0
      reset_on_new_ruler = yes
      base_monthly_growth = 0.1
      monarch_power = adm
      scaled_modifier = {
      modifier = {
      land_forcelimit= 20
      manpower_in_true_faith_provinces = 0.3
      global_missionary_strength = 0.03
      tolerance_own = 3
      tolerance_heathen = -3
      tolerance_heretic = -3
      yearly_absolutism = -2
      }
      }
      range_modifier = {
      modifier = {
      movement_speed = 0.1
      land_morale = 0.1
      }
      start_value = 100
      }
      }
      }


      IP属地:江苏3楼2024-04-12 18:38
      收起回复
        后半部分
        interactions = {
        mine_get_church = {icon = GFX_seize_clerical_holdings_button
        cost_type = order_power
        cost = 20
        effect = {
        random_province = {
        limit = {
        owner = {
        tag = ROOT
        }
        }
        add_random_development = 1
        }
        add_country_modifier = {
        name = seize_clerical_holdings_modifier
        duration = 1825
        }
        }
        cooldown_years = 5
        ai_chance = {
        factor = 1
        modifier = {
        factor = 0
        is_at_war = yes
        }
        modifier = {
        factor = 0
        NOT = {
        any_owned_province = {
        num_free_building_slots = 1
        }
        }
        }
        modifier = {
        factor = 0
        overextension_percentage = 0.01
        }
        modifier = {
        factor = 0
        NOT = { adm_power_cost = 650 }
        NOT = { monthly_adm = 10 }
        }
        modifier = {
        factor = 2
        treasury = 95
        }
        modifier = {
        factor = 5
        treasury = 300
        }
        modifier = {
        factor = 5
        NOT = {
        has_global_modifier_value = {
        which = build_cost
        value = -0.1
        }
        }
        }
        }
        }
        get_spawn_rebel = {
        icon = GFX_invite_minorities_button
        cost_type = order_power
        cost = 20
        trigger = {
        any_neighbor_country ={
        NOT = {alliance_with = ROOT}
        NOT = { truce_with = ROOT }
        NOT = { religion = ROOT }
        num_of_owned_provinces_with = {
        value = 1
        religion = ROOT}
        }
        }
        effect = {
        add_yearly_manpower = 2
        every_neighbor_country ={limit = {
        NOT = {alliance_with = ROOT}
        NOT = { truce_with = ROOT }
        NOT = { religion = ROOT }
        num_of_owned_provinces_with = {
        value = 1
        religion = ROOT}
        }
        random_owned_province = {limit = {religion = ROOT}
        spawn_rebels = {
        type = heretic_rebels
        size = 1
        friend = ROOT
        } }
        add_opinion = { who = ROOT modifier = cossack_raids_opinion }
        }
        }
        cooldown_years = 10
        ai_chance = {
        factor = 0
        modifier = {
        factor = 1
        any_neighbor_country ={
        war_with = ROOT
        }
        }
        }
        }
        get_power_for_war = {
        icon = GFX_sanction_holy_war_button
        cost_type = order_power
        cost = 30
        trigger = {
        is_at_war = yes
        }
        effect = {
        add_country_modifier = {
        name = holy_warr_modifier
        duration = 730
        }
        }
        cooldown_years = 8
        ai_chance = {
        factor = 1
        }
        }
        }}


        IP属地:江苏4楼2024-04-12 18:39
        回复
          政府改革代码@sekgy
          order_religion = {
          icon = "feudal_theocracy"
          allow_normal_conversion = no
          potential = {
          religion_group = muslim
          OR = { has_reform = order_religion
          have_had_reform = order_religion}
          }
          nation_designer_trigger = {
          religion_group = muslim
          }
          legacy_equivalent = feudal_theocracy_legacy
          valid_for_nation_designer = yes
          nation_designer_cost = 60
          modifiers = {
          missionaries = 1
          church_loyalty_modifier = 0.05
          }
          maintain_dynasty = yes
          conditional = {
          allow = { always = yes }
          government_abilities = {
          22_orders
          }
          }
          custom_attributes = {
          enables_divine_idea_group = yes
          enables_aristocratic_idea_group = no
          }
          }


          IP属地:江苏5楼2024-04-12 18:40
          回复
            速速上传工坊 我也要玩


            IP属地:湖南来自iPhone客户端6楼2024-04-12 23:39
            收起回复
              MT地图,那不是卡爆?


              IP属地:江西来自Android客户端7楼2024-04-13 09:40
              回复