安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








----Cathay_radious
--Common
{"wh3_cat_jade_spear", "core"},
{"wh3_cat_peasa_sword", "core"},
{"wh3_cat_fear_archer", "core"},
{"wh3_cat_fear_axe", "core"},
{"wh3_cat_feat_halb", "core"},
--Special
{"wh3_cat_impe_sword", "special", 1},
{"wh3_cat_impe_spear", "special", 1},
{"wh3_cat_impe_rifle", "special", 1},
{"wh3_cat_tera", "special", 3},
--Rare
{"wh3_cat_sworn_heavy", "rare", 1},
{"wh3_cat_sworn_halb", "rare", 1},
{"wh3_cat_cele_sword", "rare", 1},
{"wh3_cat_saphire", "rare", 1},
{"wh3_cat_onyx", "rare", 1},
{"wh3_cat_onyx_cav", "rare", 1},
{"wh3_cat_front_sword", "rare", 1},
{"wh3_cat_front_spear", "rare", 1},
{"wh3_cat_front_cros", "rare", 1},
{"wh3_cat_front_bow", "rare", 1},
{"wh3_cat_sea_fire", "rare", 1},
{"wh3_cat_sea_repeat", "rare", 1},
{"wh3_cat_sea_mace", "rare", 1},
{"wh3_cat_sea_spear", "rare", 1},
local ttc = core:get_static_object("tabletopcaps")
if ttc then
ttc.add_setup_callback(function()
ttc.add_unit_list(wh3_units, true)
end)
end
all right, here is the code that i try to put into a new lua. it do not work, but when i copy this to your lua, put it under cathay park, works. those units from radious parks, I want do a Submod that can compatible to Radious unit park.
You're missing a } to close the list and the last item in the list should not have a comma after it.
Here's the code:
local modded_units = {
----Gnoblar Horde by Stratovarius
--Common
{"str_gnoblar_shield", "core"},
{"str_gnoblar_dw", "core"},
{"str_gnoblar_groin", "core"},
{"str_gnoblar_flinger", "core"},
{"str_gnoblar_man", "core"},
{"str_gnoblar_squig", "core"},
{"str_gnoblar_squig_ror", "core"},
{"str_gnoblar_flinger_ror", "core"},
{"str_gnoblar_groin_ror", "core"},
{"str_gnoblar_man_ror", "core"},
--Special
{"str_gnoblar_lucky", "special", 1},
{"str_gnoblar_lucky_ror", "special", 1}
--Rare
{"str_gnoblar_boglar", "rare", 1},
{"str_gnoblar_blood", "rare", 1},
{"str_gnoblar_boglar_ror", "rare", 1},
{"str_gnoblar_blood_ror", "rare", 1}
}
local ttc = core:get_static_object("tabletopcaps")
if ttc then
ttc.add_setup_callback(function()
ttc.add_unit_list(modded_units)
end)
end
Is there something wrong with it? Or am I doing something else incorrectly?
All entries except the last need a comma following them.
My question is; do you see any issues with leaving the script in the mod when not used alongside this mod? It seems fine on my end but thought I'd check with you just to be safe. Thanks :)
If the person isn't using the mod, then "ttc" won't exist and the code inside the 'if ttc then' block will never be executed, so nothing will happen. If they are using TTC, then the integration will work.
Thanks for the quick answer, the script is well made too, I'm just overly cautious! I'll update it now and mention compatibility in the description.