Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
----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.