From 6775a3b56766fc5576ef586d6651d38d4abb2f10 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 2 Jul 2021 17:42:08 +0200 Subject: [PATCH] completed get_fs_edit_option_action_npc_wants --- fs_edit_general.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs_edit_general.lua b/fs_edit_general.lua index acdb82a..5dabd6b 100644 --- a/fs_edit_general.lua +++ b/fs_edit_general.lua @@ -1731,12 +1731,16 @@ yl_speak_up.get_fs_edit_option_action_npc_gives = function( end -yl_speak_up.get_fs_edit_option_action_npc_wants = function(pname, dialog, formspec, data, id_prefix, save_button, e) +-- "The player is expected to give something to the NPC (i.e. a quest item).", -- 5 +-- (only for actions) +yl_speak_up.get_fs_edit_option_action_npc_wants = function( + pname, dialog, formspec, data, id_prefix, save_button, e) local bg_img = "" if(data and data.item_string) then bg_img = "item_image[2.15,3.65;0.7,0.7;"..tostring(data.item_string).."]" end - return "label[8,2.6;Your inventory:]".. + return formspec.. + "label[8,2.6;Your inventory:]".. "list[current_player;main;8,3;8,4;]".. "label[1,3.1;"..minetest.formspec_escape(dialog.n_npc or "?").." wants:]".. "list[detached:yl_speak_up_player_"..pname..";npc_wants;2,3.5;1,1;]"..