Commit Graph

721 Commits

Author SHA1 Message Date
Sokomine
ab0e9faf14 in custom functions that use variables: set the right prefix 2022-10-23 21:00:58 +02:00
Sokomine
b7c2354cd9 put yl_speak_up.get_list_of_effects_and_target_dialog_and_effect into extra function so that it can be used in fs_edit_trade_limit.lua as well 2022-10-17 19:05:58 +02:00
Sokomine
9e8cc183fa automaticly add back-button to new dialogs: Let's go back to the start of our talk. 2022-10-17 08:05:11 +02:00
Sokomine
c5587f55c7 let yl_speak_up.show_fs_simple_deco look better for smaller height 2022-10-17 07:41:19 +02:00
Sokomine
c3e048504f allow to close formspec when offering things to the npc via player_offers_item 2022-10-17 07:32:20 +02:00
Sokomine
d5ad680999 effect deal_with_offered_item now properly returns true if true 2022-10-17 07:21:43 +02:00
Sokomine
05948116a0 let new options point back to their dialog again 2022-10-17 07:01:08 +02:00
Sokomine
e91dc93b11 better setup of d_got_item when adding a new option; changed text displayed in edit mode for d_got_item in order to provide more help 2022-10-17 06:55:45 +02:00
Sokomine
f2f8195285 fixed undeclared globals 2022-10-16 13:37:11 +02:00
Sokomine
d7f0abb841 stored input from text_input action in yl_speak_up.last_text_input[pname] and added function to examine that input as precondition of type evaluate 2022-10-15 18:50:39 +02:00
Sokomine
e7e097ea20 inform other mods when npc_talk_reload is issued 2022-10-15 18:08:47 +02:00
Sokomine
2460714a6b added yl_speak_up.strip_generic_dialogs 2022-10-15 17:35:23 +02:00
Sokomine
df621c7435 added Delete button to fs_talkdialog in edit mode 2022-10-09 15:36:44 +02:00
Sokomine
ca0a699a3e log execution of effects 2022-10-09 00:44:42 +02:00
Sokomine
dbc7f4a12c improved logging of actions 2022-10-08 23:48:20 +02:00
Sokomine
6befa8f10a added logging for failed and successful actions 2022-10-08 23:34:43 +02:00
Sokomine
8f1773fbd7 added two more example dialogs to new npc in order to help new users 2022-10-08 22:48:33 +02:00
Sokomine
e85c08b0d5 add_new_option can add a fitting dialog result now upon creation 2022-10-08 22:37:58 +02:00
Sokomine
b2cddab50a allow to enter a dialog_text when adding a new dialog via function add_new_dialog 2022-10-08 22:16:32 +02:00
Sokomine
4cb12c2d2d yl_speak_up.add_new_option added 2022-10-08 21:57:05 +02:00
Sokomine
403911ef81 show text_input action in a readable way in formspec version 2 and 3 2022-10-01 23:17:04 +02:00
Sokomine
2b58aac1dc trade_inv now calls extra functions so that the code can be changed at runtime with npc_talk_reload, too 2022-10-01 22:43:35 +02:00
Sokomine
3104889208 taking the purchase in a trade_simple inside an action finished the action successfully 2022-10-01 22:25:57 +02:00
Sokomine
045f9b51f0 npc_gives no longer requires an explicit click on 'Done' 2022-10-01 21:04:43 +02:00
Sokomine
712f19656e fixed trade as an action (which shall work diffrently than trade from trade list) 2022-10-01 07:01:52 +02:00
Sokomine
35761ac779 properly store changed shield texture 2022-10-01 06:11:37 +02:00
Sokomine
48202642dd minor bugfix 2022-09-30 02:20:12 +02:00
Sokomine
dffd17a44b show more formspecs in the correct version 2022-09-27 23:51:43 +02:00
Sokomine
11e555e639 inventory preconditions work again 2022-09-27 23:48:11 +02:00
Sokomine
9ffabc17ce removed missing textures 2022-09-26 04:59:30 +02:00
Sokomine
b5fa3dd4c2 always show let's trade or show me your inventory 2022-09-26 04:58:30 +02:00
Sokomine
5bd0bf23f3 fixed bug in trade_simple 2022-09-26 02:40:53 +02:00
Sokomine
87a2ea1f2d added tutor savefile 2022-09-26 01:48:21 +02:00
Sokomine
474a7ad717 when a new option is added: let it point to the current dialog instead of a new one in order to prevent spamming 2022-09-25 20:46:44 +02:00
Sokomine
937fb8d38f fixed bug in more general property handling 2022-09-24 03:03:18 +02:00
Sokomine
2ade21640e did preparations for making blocks talk 2022-09-24 02:37:36 +02:00
Sokomine
3dfae53782 added hint how to do local adjustments 2022-09-23 23:27:06 +02:00
Sokomine
5dbf91800f explain how to use this mod in other NPC mods 2022-09-23 23:24:06 +02:00
Sokomine
90dc2d34d5 added random option for dialogs 2022-09-23 23:10:53 +02:00
Sokomine
7f60031ab1 do not add dialogs to d_end 2022-09-15 23:56:10 +02:00
Sokomine
608935277f hide autoanswer options if their preconditions are not fulfilled 2022-09-15 23:21:10 +02:00
Sokomine
5a4f137b65 display earlier in edit mode if an option is an automaticly selected one 2022-09-15 23:02:39 +02:00
Sokomine
ccf93a8fd3 added npc_talk_reload to README.md 2022-09-15 04:31:57 +02:00
Sokomine
61dfe5c267 moved register_once.lua further up 2022-09-14 23:05:19 +02:00
Sokomine
ffd98fc924 moved yl_speak_up.init_mob_table to a more appropriate place 2022-09-14 22:54:53 +02:00
Sokomine
46ebb1d894 moved directory creation to a point after reading the config file so that that value can be changed on the fly as well 2022-09-14 22:47:30 +02:00
Sokomine
b70bdc60b9 fixed missing global n_id in exec_actions.lua 2022-09-14 22:31:17 +02:00
Sokomine
ab9745ee01 added npc_talk_reload command 2022-09-14 22:18:09 +02:00
Sokomine
d23335e6db moved all minetest.register_on_* calls into register_once.lua and removed obsolete *.lua files 2022-09-14 21:54:25 +02:00
Sokomine
6e846b316d added hint regarding logging to README.md 2022-09-13 19:47:25 +02:00