安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题









Thank you for the solution. But if do it your way, Noctilus won't be able to move in campaign map at the first turn. I've tried fixing it my own way, can you check how it is?
@RuDo
Okay. Go ahead.
return
end
local forename = common:get_localised_string("names_name_888888839") or ""
cm:change_character_custom_name(agent, forename, "","","")
cm:embed_agent_in_force(agent, force)
cm:set_saved_value("bad_legend_only_one12", true)
end)
if not ok then
out("bad_legend_agent12_il_potente_granchio ERROR: " .. tostring(err))
cm:set_saved_value("bad_legend_only_one12", true)
end
end
cm:add_first_tick_callback(function()
cm:callback(function()
bad_legend_agent12_il_potente_granchio()
end, 0.5)
end)
if not settlement or settlement:is_null_interface() then
return
end
local cap_x = settlement:logical_position_x()
local cap_y = settlement:logical_position_y()
local agent_x, agent_y = cm:find_valid_spawn_location_for_character_from_position(
faction_key, cap_x, cap_y, true, 6
)
if not agent_x or not agent_y then
return
end
local agent = cm:create_agent(
faction_key, "champion", bad_agent_key, agent_x, agent_y
)
if not bad_legend_settings or not bad_legend_settings[bad_agent_key] then
return
end
local leader = faction:faction_leader()
if not leader or leader:is_null_interface() then
return
end
local force = leader:military_force()
if not force or force:is_null_interface() then
return
end
local home_region = faction:home_region()
if not home_region or home_region:is_null_interface() then
return
end
local function bad_legend_agent12_il_potente_granchio()
-- If we've already processed this agent, never run again
if cm:get_saved_value("bad_legend_only_one12") then
return
end
local ok, err = pcall(function()
local bad_agent_key = "il_potente_granchio"
local faction_key = "wh2_dlc11_cst_noctilus"
local faction = cm:get_faction(faction_key)
-- Faction missing, null, or dead? Mark as done and exit.
if not faction or faction:is_null_interface() or faction:is_dead() then
cm:set_saved_value("bad_legend_only_one12", true)
return
end
SCRIPT ERROR
[out] <74.8s> [string "script\campaign\mod\bad_legend_agent12_il_potente_granchio.lua"]:14: attempt to call method 'settlement' (a nil value)BIG FAT