completed get_fs_edit_option_action_npc_wants
This commit is contained in:
parent
c67e36abc7
commit
6775a3b567
@ -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;]"..
|
||||
|
Loading…
Reference in New Issue
Block a user