forked from your-land-mirror/yl_speak_up
prefix options in ink export with automaticly_ or randomly_ if necessary
This commit is contained in:
parent
4cf06da1e4
commit
10e90e412a
@ -509,16 +509,19 @@ yl_speak_up.export_to_ink_language = function(dialog, n_id)
|
||||
|
||||
-- what remains is to print the option/choice itself
|
||||
local o_text = o_data.o_text_when_prerequisites_met
|
||||
local o_prefix = ""
|
||||
if( o_data.o_autoanswer) then
|
||||
o_text = "[Automaticly selected if preconditions are met]"
|
||||
o_prefix = "automaticly_"
|
||||
elseif(o_data.o_random) then
|
||||
o_text = "[One of these options is randomly selected]"
|
||||
o_prefix = "randomly_"
|
||||
end
|
||||
ink_export.print_choice(tmp,
|
||||
o_text, use_prefix, start_dialog,
|
||||
alternate_text_on_success, target_dialog,
|
||||
o_data.o_visit_only_once, -- print + (often) or * (only once)
|
||||
o_id, p_list, e_list, dialog_names)
|
||||
o_prefix..o_id, p_list, e_list, dialog_names)
|
||||
-- deal with o_grey_when_prerequisites_not_met (grey out this answer)
|
||||
if( o_data.o_text_when_prerequisites_not_met
|
||||
and o_data.o_text_when_prerequisites_not_met ~= ""
|
||||
|
Loading…
Reference in New Issue
Block a user