钢铁雄心四MOD教学:国策(一) 您所在的位置:网站首页 钢铁雄心4国策无要求 钢铁雄心四MOD教学:国策(一)

钢铁雄心四MOD教学:国策(一)

2023-08-05 08:37| 来源: 网络整理| 查看: 265

首先,下载该软件,可以起到很好的辅助作用,文本文档用该软件打开

国策树位置

focus_tree = {

             id = china_nationalist_focus       #国策树的ID,不能和其他国策ID重复

     country = {        

                   tag = CHI          #国策树对应的国家

                                 }

                } 

 

default = no  

continuous_focus_position = { x = 20 y = 1000 }       #通用国策的位置

}          #国策树结尾括号 所有国策要写在这个括号上面。

#重整国民革命军 

focus = {   #一个国策的开始

              id = CHI_army_effort    #国策的ID

             icon = GFX_goal_chi_dexieshi     #国策图片

             x = 4            #国策的横向坐标

             y = 0           #国策的纵向坐标

          cost = 10        #国策的花费时间,1代表为7天,那么10则代表为70天,可以使用一位小数,如:3.5 或7.4等

         ai_will_do = {      #AI选择的几率

                factor = 100   #数值越大,AI选择的几率越大

                    }

completion_reward = {      #国策完成后的效果

                              army_experience = 5   #陆军经验加五

          add_tech_bonus = {      #国策完成后的研究加成

                         name = land_doc_bonus

                                       bonus = 1       #百分之百

                                      uses = 1         #一次

                                        category = land_doctrine  #陆军学说

                                        }

random_list = {  #概率发生

                      70 = { add_political_power = 200 }  #百分之70的概率:政治点数加200

                      30 = { add_political_power = -100 }  #百分之30的概率:政治点数减100

                          }

                   }

         }     #一个国策的结束,注意括号

国策ID的本地化

建立一个这个文件夹:localisation

CHI_army_effort:0 "国策的名字"

 CHI_army_effort_desc:0"国策的介绍"

国策图标位置选个自己喜欢的

#陆军改革

focus = {

                      id = CHI_jundui_gaige

                     icon = GFX_focus_chi_army_reform

                    prerequisite = { focus = CHI_army_effort } #需要的前置国策

                    x = -4   

                      y = 1

                     relative_position_id = CHI_army_effort #对应国策位置

#如果有该代码,那么该国策位于对应国策的横向负四,纵向一的位置

                      cost = 10

            ai_will_do = {

                   factor = 80

                    }

         available = {   }  #点击国策需要的前置条件

         bypass = {    }  #跳过该国策所需要的条件

completion_reward = {  #该国策完成内容以后介绍

               unlock_decision_category_tooltip = CHI_army_reform

               custom_effect_tooltip = available_political_advisor

               show_ideas_tooltip = CHI_mao_renfeng

                       }

        }

效果图

focus = {

               id = GER_deriyouhao

              icon = GFX_focus_chi_collaboration_with_the_japanese

              prerequisite = { focus = GER_jinjunlyl }

              mutually_exclusive = { focus = GER_zhongdeyouhao }#互斥国策,与对应的国策只能二选一,对应的国策也需要写排斥该国策的代码

       available = { #点击国策所需要的前提条件

                    AND = {    #需要以下全部

                          country_exists = JAP     #日本存在

                          JAP = { is_puppet = no } #日本不是其它国家的傀儡

                         NOT = { has_war_with = JAP }     #没有与日本处于战争中

                JAP = {

                   custom_trigger_tooltip = 

                        tooltip = GER_alone_or_peace_faction_tt  #未加入阵营

                        is_alone_or_in_faction_at_peace_with_GER = yes #加入了一个与德国处于和平的阵营

                                 }

                        }

                 }

             }

                     x = 1

                     y = 1

                   relative_position_id =  GER_jinjunlyl

                   cost = 10

available_if_capitulated = yes     #在投降之后是否能够点击:是

            ai_will_do = {

                      factor = 1

                           modifier = {

                               is_in_faction_with = JAP

                              factor = 0 

                                             }

                        }

completion_reward = {

                     JAP = {

                  add_opinion_modifier = { target = GER modifier = ger_jap_diplomacy_focus }

                           }

                     CHI = {

                   add_opinion_modifier = { target = GER modifier = withdrew_advisors }

                                 }

                             }

      }

#改过自新

focus = { 

                    id = CHI_gaiguo_zixin

                    icon = GFX_goal_CHI_junqi

                    prerequisite = { focus = CHI_juntong_ju }

                    prerequisite = { focus = CHI_60_jihua }

                    prerequisite = { focus = CHI_huangpu_junxiao }

#这里用了三个prerequisite,意味着这个国策需要三个前置国策才能解锁 

                   x = -2.5

                   y = 1

                  relative_position_id = CHI_juntong_ju

                  cost = 10

                 ai_will_do = {

                      factor = 100

                               }

          available = {     #点击国策需要的前置条件

           #1     NOT = { 

                             has_idea = CHI_army_corruption_1

                                          }#1

#1的意义:没有民族精神:CHI_army_corruption_1

              #2     has_idea = CHI_army_corruption_2  #2

#2的含义:需要拥有名族精神:CHI_army_corruption_2  #2

                                }

bypass = {

          has_completed_focus = CHI_lianhezhengfu

}     #以下将跳过国策:完成国策:CHI_lianhezhengfu

completion_reward = {

                          army_experience = 20

                        add_ideas = gaiguo_zixin  #添加民族精神:gaiguo_zixin

               add_tech_bonus = {

                              name = land_doc_bonus

                                bonus = 1

                                 uses = 1

                               category = land_doctrine

                                 category = armor

                                  technology = motorised_infantry

                               }

               }

}

-------------------------未完待续-----------------------------------------------------------------



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有