群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Fleet modding
”
Pokewiz
(
讨论
|
贡献
)
2022年3月6日 (日) 23:28的版本
(merge from offical wiki)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{Version|2.8}} This is a quick reference for the different aspects of scripting some fleet events, triggers etc. == Fleet Orders == The list of known fleet orders, used to define the current fleet action (i.e. ''has_fleet_order'', used in [[Conditions|Conditions]]).<ref>Some samples of orders usage: https://gitlab.com/stellaris/irm/snippets/29660</ref> {| class="wikitable sortable" |- ! Order !! Description |- | aggressive_stance_fleet_order || Fleet stance is aggressive |- | ''analyze_ftl_trail_order'' || |- | assist_research_order || Ship/fleet is going to assist research on planet |- | auto_explore_order || Ship/fleet is going to automatically explore space |- | build_orbital_station_order || Ship/fleet is going to construct any orbital, mining or research station |- | build_space_station_order || Ship/fleet is going to construct a military station |- | collect_data_fleet_order || Fleet is going to collect data from debris or ambient object |- | colonize_planet_order || Ship is going to colonize a planet |- | ''combat_order'' || |- | ''evade_hostiles_order'' || |- | follow_order || Ship/fleet is following the ship/fleet |- | merge_fleet_order || Fleet is going to be merged |- | move_to_system_point_order || Ship/fleet is moving to a point |- | land_armies_order || Ship/fleet is going to land troops on planet |- | orbit_planet_order || Ship/fleet is going to enter orbit of planet |- | rally_point_fleet_order || Fleet is rallying to a point |- | research_anomaly_order || Ship is going to research anomaly |- | return_fleet_order || Fleet is returning |- | survey_planet_order || Ship is going to survey planet |- | upgrade_design_fleet_order || Ship/fleet is going to be upgraded |- | research_discovery_order || |- | upgrade_design_at_starbase_fleet_order || |- | upgrade_design_at_orbitable_fleet_order || |- | repair_fleet_order || Ship/fleet is going to be repaired |- | <s>''repair_ship_fleet_order''</s> || <i>Ship/fleet is going to be repaired</i> |- | build_megastructure_fleet_order || Fleet is going to construct a megastructure |- | destroy_planet_order || Ship/fleet is going to destroy a planet |- | planet_killer_weapon_windup_order || |- | planet_killer_weapon_fire_order || |- | explore_bypass_order || |- | use_bypass_order || |- | jumpdrive_order || |- | jumpdrive_windup || |- | experimental_subspace_navigation_fleet_order || |- | excavate_archaeological_site_fleet_order || |} * ''italics orders'' - orders which are not studied or probably not working == Fleet Locking == Fleet could be locked by <code>set_event_locked = yes</code> effect.<br/> This will prevent any orders to this fleet. Don't forget to unlock it later. == Code examples == ; Merge fleets <pre> solar_system = { random_fleet_in_system = { limit = { is_ship_class = shipclass_military NOT = { is_same_value = root } owner = { is_same_empire = root.owner } fleet_power > 0 } save_event_target_as = EXAMPLE_merge_fleet } } queue_actions = { find_random_fleet = { found_fleet = { merge_fleet = { target = event_target:EXAMPLE_merge_fleet allow_ftl = no } } } } </pre> * Note: Vanilla doesn't use this (plain) command at all. Mods using this are e.q. "Aggressive Crisis Engine" and "A Deadly Tempest". ; Change fleet leader on army/transport fleets. As simple leader assign to transport fleets is not working (as to military fleets) and furthermore the documented scope from ships to army unexpectedly is not working (possible bug), there is a workaround to solve this supposed scope problem.<ref>''An example from FirePrince.''</ref> <pre> # Just find the right army to the fleet to assign a leader to the appropriate army. random_fleet_in_system = { limit = { exists = owner owner = { is_same_empire = event_target:EXAMPLE_empire } is_ship_class = shipclass_transport # NOT = { exists = leader } } owner = { random_owned_army = { limit = { exists = fleet fleet = { is_same_value = PREVPREVPREV } # NOT = { exists = leader } } assign_leader = event_target:EXAMPLE_leader } } } </pre> * Note: Vanilla doesn't use this (plain) at all, e.q. mod using this is "Decentralized Empires (Regentmaker)". ; "Jump" fleet to the scope Transfers fleet to the selected scope.<ref>''An example from OldEnt.''</ref> <pre> # Jumps to the capital scope. fleet_event = { id = acemod_fleet.600 hide_window = yes is_triggered_only = yes immediate = { set_location = { target = owner.capital_scope distance = 5 angle = random direction = in_system } clear_orders = yes clear_fleet_actions = this } } </pre> ; Order colossus to fire on a planet in the same system<ref>''An example from OldEnt.''</ref> <pre> solar_system = { random_system_planet = { limit = { has_planet_flag = shroud_target } save_event_target_as = killtarget } } queue_actions = { if = { limit = { exists = event_target:killtarget } clear_orders = yes clear_fleet_actions = THIS # Colossus fleet scope find_closest_planet = { trigger = { id = schroud_target_1 is_same_value = event_target:killtarget } found_planet = { move_to = this orbit_planet = this destroy_planet = this } } } } </pre> == References == <references /> {{Template:ModdingNavbox}} [[Category:Modding]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Clear
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录