
Originally Posted by
Wyw
All in the title, i wanted to know if its possible to modify the unlock conditions for LL in the Grand Campaign (EX: awakening 2 tribes for Sigvald instead of 4),
and if so, where can it be done ?
Thank you for your answers.
script -> wh_legendary_lords.lua
note the tooltip text will still say 4 you can update the text file as well.
Code:
-- Prince Sigvald the Magnificent
ll_unlock:new(
"wh_main_chs_chaos",
"2140783662",
"names_name_2147345922",
"FactionLiberated",
function(context)
if context:liberating_character():faction():name() == "wh_main_chs_chaos" then
local tribe_count = cm:get_saved_value("ll_chaos_sigvald_tribe_count");
if tribe_count == nil then tribe_count = 0 end;
tribe_count = tribe_count + 1;
cm:set_saved_value("ll_chaos_sigvald_tribe_count", tribe_count);
return tribe_count > 3; -- change to > 1
end;
end
),