stellaris吧 关注:279,598贴子:6,786,956
  • 10回复贴,共1

修改天灾刷兵数量,舰队结构,刷新条件的教学

只看楼主收藏回复

一楼喂百度先……我怕被吞了……


IP属地:福建1楼2017-12-20 20:24回复
    群星里有关天灾的主要部分在三个event文件里,分辨是crisis_events_1,crisis_events_2,crisis_events_3,对应的1是虫子,2是恶魔,3是机器。
    在crisis_events_1里面,有关虫子究竟会刷出几只舰队,靠的是一个叫swarm_brood = yes的参数,这个参数就是一支舰队的全部配置,包含指挥官和下属每种船的数量。
    比如:
    random_rim_system = {
    limit = { has_star_flag = swarm_invasion_target_1 }
    random_system_planet = {
    event_target:prethoryn = {
    ### FIRST SYSTEM
    swarm_brood = yes
    swarm_brood = yes
    swarm_brood = yes
    这么一段语句就是虫子入侵时刷出来的三大支舰队中的一支,有三条swarm_brood = yes的参数,所以这一大支舰队里面有三小支舰队
    那么修改的最简单的办法,就是把这个swarm_brood = yes复制几行
    在这个文件里,除开初始刷出来的舰队以外,还有补充的舰队,比如:
    # Build new fleet (based on the Third Fleet)
    country_event = {
    id = crisis.207
    hide_window = yes
    is_triggered_only = yes
    immediate = {
    save_event_target_as = prethoryn
    owner_species = { save_event_target_as = prethoryn_species }
    swarm_brood = yes
    swarm_brood = yes
    swarm_brood = yes
    swarm_brood = yes
    可以看到swarm_brood = yes被我多复制了两条,实际测试,这些新舰队每次刷出四支而不是原来的两支,战斗力一下上去了
    那如果要修改swarm_brood = yes这里面舰队的配置,就要去00_scripted_effects这个文件里,搜索swarm_brood,就可以找到swarm_brood这个参数所代表的舰队配置:
    create_fleet = {
    name = "NAME_Prethoryn_Star_Brood"
    effect = {
    set_owner = event_target:prethoryn
    create_ship = {
    name = random
    design = "NAME_Swarm_Queen"
    graphical_culture = "swarm_01"
    }
    assign_leader = last_created_leader
    while = {
    count = 15
    create_ship = {
    name = random
    design = "NAME_Swarm_Large"
    graphical_culture = "swarm_01"
    }
    }
    while = {
    count = 13
    create_ship = {
    name = random
    design = "NAME_Swarm_Carrier"
    graphical_culture = "swarm_01"
    }
    }
    while = {
    count = 63
    create_ship = {
    name = random
    design = "NAME_Swarm_Small"
    graphical_culture = "swarm_01"
    }
    }
    15条大船,13条航母,63条小船
    可以把数字替换成任意值,也可以添加其他船,比如添加堕落泰坦什么的……
    此外,关于刷新的检测:
    # Build new fleet every 2 years
    event = {
    id = crisis.206
    hide_window = yes
    is_triggered_only = yes
    immediate = {
    if = {
    limit = {
    any_country = {
    is_country_type = swarm
    num_owned_planets > 0
    num_ships < 2000
    }
    }
    这个语句的意思是,如果虫子占领的星球数量不是0,舰队容量小于2000,就增援部队,可以改成小于4000才不增援。
    注意,虫子和其他两种天灾不同,是需要陆军的,所以如果要强化虫子,在00_armies把
    # Swarm Armies
    swarm_army = {
    damage = 2.0
    morale_damage = 2.0
    health = 2.0
    morale = 2.0
    time = 180
    里面的time改小也是必需的。


    IP属地:福建2楼2017-12-20 20:25
    回复
      相较于虫子,恶魔的直观许多,比如以下是恶魔入侵舰队的配置:
      create_fleet = {
      effect = {
      set_owner = PREV
      create_ship = {
      name = random
      design = "NAME_Revenant"
      graphical_culture = "extra_dimensional_01"
      }
      assign_leader = last_created_leader
      while = {
      count = 35
      create_ship = {
      name = random
      design = "NAME_Revenant"
      graphical_culture = "extra_dimensional_01"
      }
      }
      while = {
      count = 56
      create_ship = {
      name = random
      design = "NAME_Phantom"
      graphical_culture = "extra_dimensional_01"
      }
      }
      while = {
      count = 86
      create_ship = {
      name = random
      design = "NAME_Wraith"
      graphical_culture = "extra_dimensional_01"
      }
      }
      35条大船,56条中船,86条小船
      恶魔的增援舰队是:
      # Fleet Reinforcements
      fleet_event = {
      id = crisis.1003
      hide_window = yes
      is_triggered_only = yes
      immediate = {
      event_target:extradimensionals = {
      random_list = {
      25 = {
      create_leader = {
      type = admiral
      species = event_target:extradimensional_species
      name = random
      skill = 1000
      traits = {
      trait = leader_trait_ethereal
      }
      }
      }
      25 = {
      create_leader = {
      type = admiral
      species = event_target:extradimensional_species
      name = random
      skill = 1000
      traits = {
      trait = leader_trait_dimensional_stutter
      }
      }
      }
      50 = {
      create_leader = {
      type = admiral
      species = event_target:extradimensional_species
      name = random
      skill = 500
      }
      }
      }
      create_fleet = {
      effect = {
      set_owner = PREV
      create_ship = {
      name = random
      design = "NAME_Revenant"
      graphical_culture = "extra_dimensional_01"
      }
      assign_leader = last_created_leader
      while = {
      count = 14
      create_ship = {
      name = random
      design = "NAME_Revenant"
      graphical_culture = "extra_dimensional_01"
      }
      }
      while = {
      count = 20
      create_ship = {
      name = random
      design = "NAME_Phantom"
      graphical_culture = "extra_dimensional_01"
      }
      }
      while = {
      count = 38
      create_ship = {
      name = random
      design = "NAME_Wraith"
      graphical_culture = "extra_dimensional_01"
      }
      }
      count =后面跟着就是数字就是该类型船的刷新数量


      IP属地:福建3楼2017-12-20 20:25
      回复
        机械天灾虽然也一样,但是有一点不同
        # Machine World Fleet Reinforcement Cycle
        planet_event = {
        id = crisis.2050
        hide_window = yes
        is_triggered_only = yes
        trigger = {
        is_planet_class = pc_ai
        NOT = { has_planet_flag = machine_lair }
        owner = { is_country_type = "ai_empire" }
        }
        immediate = {
        # If at fleet cap, check again later
        if = {
        limit = {
        owner = { num_ships > 2000 }
        }
        planet_event = { id = crisis.2050 days = 300 }
        break = yes
        }
        这些语句的意思,按照我的理解就是,每过300天检测一次机械天灾的舰队容量,如果大于2000就不补给舰队
        可以根据需要,比如改成num_ships > 4000,那就是除非舰队容量超过4000,才会停止补给,不怕CPU烧了可以改成9999
        然后机械天灾的配置文件也在00_scripted_effects文件里,搜索ai_fleet:
        create_ai_fleet = {
        owner = {
        create_leader = {
        type = admiral
        species = owner_main_species
        name = random
        skill = 400
        }
        last_created_leader = { set_age = 0 }
        }
        create_fleet = {
        effect = {
        set_owner = event_target:AI_crisis
        while = {
        count = 40
        create_ship = {
        name = random
        design = "NAME_Euthanizer"
        graphical_culture = "ai_01"
        }
        }
        assign_leader = last_created_leader
        while = {
        count = 80
        create_ship = {
        name = random
        design = "NAME_Sterilizer"
        graphical_culture = "ai_01"
        }
        }
        40大船,80小船
        ***********************************************
        最后,可以在00_country_types文件里面搜索CRISIS-RELATED这一栏,这一栏下面有修改天灾在它们自己星系建造堡垒的数量
        比如:
        ship_data = {
        military_station_large_swarm = {
        min = 2
        }
        military_station_small_swarm = {
        min = 1
        这是虫子的参数,也就是它们会在星系里建造两个大的一个小的,可以改成8个体会下满地堡垒的感觉。
        因为天灾的堡垒是没有放置限制的,所以它们可以把堡垒堆在一起。


        IP属地:福建4楼2017-12-20 20:26
        回复
          P谢谢!
          之前虽然发现了可以靠复制增加虫子的舰队但是一直没有发现虫子每个舰队数量怎么调整2333


          IP属地:天津来自iPhone客户端5楼2017-12-20 20:34
          收起回复
            不错不错!辛苦了


            IP属地:浙江来自Android客户端6楼2017-12-20 20:40
            收起回复
              三大天灾都是舰容超过2000,默认就不会再增援舰队了么?


              IP属地:广西来自Android客户端7楼2017-12-22 03:26
              收起回复