master #4

Merged
AliasAlreadyTaken merged 56 commits from master into yl_stable 2025-03-08 04:12:44 +01:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit 133a8ccf8d - Show all commits

View File

@ -378,7 +378,8 @@ yl_speak_up.export_to_ink.translate_effect_list = function(dialog, effects, vars
end
yl_speak_up.export_to_ink_language = function(dialog, n_id)
-- Note: use_prefix ought to be tostring(n_id).."_" or ""
yl_speak_up.export_to_ink_language = function(dialog, use_prefix)
local start_dialog = yl_speak_up.get_start_dialog_id(dialog)
if(not(start_dialog)) then
start_dialog = "d_1"
@ -396,7 +397,10 @@ yl_speak_up.export_to_ink_language = function(dialog, n_id)
-- advantage: several NPC dialog exports can be combined into one inc game
-- where the player can talk to diffrent NPC (which can have the
-- same dialog names without conflict thanks to the prefix)
use_prefix = tostring(n_id).."_"
-- use_prefix = tostring(n_id).."_"
if(not(use_prefix)) then
use_prefix = ""
end
-- go to the main loop whenever the player ends the conversation with the NPC;
-- this allows to create an additional dialog in INK where the player can then

View File

@ -210,7 +210,7 @@ yl_speak_up.get_fs_export = function(player, param)
-- TODO
explanation = "This is the format used by the \"Ink\" scripting language. "..
"TODO: The export is not complete yet."
content = yl_speak_up.export_to_ink_language(dialog, n_id)
content = yl_speak_up.export_to_ink_language(dialog, tostring(n_id).."_")
elseif(param and param == "show_simple_dialogs") then
b3 = "label[9.8,17.6;Simple dialogs format]"
explanation = "This is the format used by the \"simple_dialogs\" mod. "..