钢铁雄心4吧 关注:440,155贴子:8,007,844
  • 6回复贴,共1

找了半天没有宣战代码,自己研究出了,分享

只看楼主收藏回复

现在搞了10来个势力,大家可以自己改。可以向美日苏英、以及国内各势力。。。
country_event = {
id = 90910
title = 向日苏美英列强宣战
desc = 向日苏美英列强宣战
picture = china.1.d
trigger = { is_ai = no }
is_triggered_only = yes
option = {
name = 向日本宣战
CHI = {
declare_war_on = {
target = JAP
type = puppet_wargoal_focus
}
}
}
option = {
name = 向苏联宣战
CHI = {
declare_war_on = {
target = SOV
type = puppet_wargoal_focus
}
}
}
option = {
name = 向英国宣战
CHI = {
declare_war_on = {
target = ENG
type = puppet_wargoal_focus
}
}
}
option = {
name = 向美国宣战
CHI = {
declare_war_on = {
target = USA
type = puppet_wargoal_focus
}
}
}
}


IP属地:浙江1楼2016-07-10 20:46回复
    country_event = {
    id = 90911
    title = 向共晋马疆宣战
    desc = 向中共、山西、西北三马、新疆宣战
    picture = china.1.d
    trigger = { is_ai = no }
    is_triggered_only = yes
    option = {
    name = 向中共宣战
    CHI = {
    declare_war_on = {
    target = PRC
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向山西宣战
    CHI = {
    declare_war_on = {
    target = SHX
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向西北三马宣战
    CHI = {
    declare_war_on = {
    target = XSM
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向新疆宣战
    CHI = {
    declare_war_on = {
    target = SIK //新疆?
    type = puppet_wargoal_focus
    }
    }
    }
    }
    country_event = {
    id = 90912
    title = 向藏、滇、桂、蒙宣战
    desc = 向藏、滇、桂、蒙宣战
    picture = china.1.d
    trigger = { is_ai = no }
    is_triggered_only = yes
    option = {
    name = 向西藏宣战
    CHI = {
    declare_war_on = {
    target = TIB
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向云南宣战
    CHI = {
    declare_war_on = {
    target = YUN
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向广西宣战
    CHI = {
    declare_war_on = {
    target = GXC
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向蒙古宣战
    CHI = {
    declare_war_on = {
    target = MON //蒙古
    type = puppet_wargoal_focus
    }
    }
    }
    }
    country_event = {
    id = 90913
    title = 向唐、印、葡萄牙、荷兰宣战
    desc = 向唐努瓦图、印、葡萄牙、荷兰宣战
    picture = china.1.d
    trigger = { is_ai = no }
    is_triggered_only = yes
    option = {
    name = 向唐努瓦图宣战
    CHI = {
    declare_war_on = {
    target = TAN
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向印度宣战
    CHI = {
    declare_war_on = {
    target = RAJ
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向葡萄牙宣战
    CHI = {
    declare_war_on = {
    target = POR
    type = puppet_wargoal_focus
    }
    }
    }
    option = {
    name = 向荷兰宣战
    CHI = {
    declare_war_on = {
    target = HOL //荷兰
    type = puppet_wargoal_focus
    }
    }
    }
    }


    IP属地:浙江2楼2016-07-10 20:48
    回复
      使用办法,在游戏界面输入~,打开命令行,输入 event 90100或90101等,即可。


      IP属地:浙江3楼2016-07-10 20:50
      回复
        能不能教我改内阁!


        IP属地:福建4楼2016-07-10 20:53
        回复
          谢了lz,我写mod就差这个了


          IP属地:湖北来自Android客户端5楼2016-07-10 21:20
          收起回复