allow setting d_end as target dialog again
This commit is contained in:
parent
78f9a393fa
commit
5c93fdb0c6
@ -9,8 +9,10 @@ yl_speak_up.prepare_new_dialog_for_option = function(dialog, pname, n_id, d_id,
|
||||
-- this dialog directly (the player may follow the -> button)
|
||||
target_dialog = yl_speak_up.add_new_dialog(dialog, pname, nil)
|
||||
end
|
||||
-- translate name into dialog id
|
||||
target_dialog = yl_speak_up.d_name_to_d_id(dialog, target_dialog)
|
||||
-- translate name into dialog id (d_end is also legitimate)
|
||||
if(target_dialog ~= "d_end") then
|
||||
target_dialog = yl_speak_up.d_name_to_d_id(dialog, target_dialog)
|
||||
end
|
||||
-- is there a result/effect of the type "dialog" already? else use a fallback
|
||||
local result = {} --{r_value = "-default-"}
|
||||
if(o_results) then
|
||||
|
Loading…
Reference in New Issue
Block a user