Commit Graph

618 Commits

Author SHA1 Message Date
Sokomine
8bfc59a9a2 moved chat command npc_talk_debug into extra file 2022-06-08 22:16:14 +02:00
Sokomine
428b11afd6 removed formspec_escape where not needed 2022-05-30 20:40:38 +02:00
Sokomine
299915708f added general handling of properties of npc 2022-05-29 22:02:02 +02:00
Sokomine
b9827d848c fixed back button 2022-05-29 19:30:04 +02:00
Sokomine
45142bc34a deal with nameless npc in fs_fashion.lua 2022-05-27 19:49:37 +02:00
Sokomine
1e6e7e96d8 merge d_got_item for generic dialogs with existing ones of current npc 2022-05-23 03:00:52 +02:00
Sokomine
7d92433d7c adjusted style for msg windows in d_got_item 2022-05-09 20:17:12 +02:00
Sokomine
978962412f allow to provide a specific formspec version manually 2022-05-09 20:16:19 +02:00
Sokomine
bb399d3381 made i want to give you something window nicer 2022-05-09 19:32:24 +02:00
Sokomine
0c099640ac fixed bug in adding/removing generic npc dialogs 2022-05-09 19:15:14 +02:00
Sokomine
06cadd9f3e added is_a_start_dialog for adding buttons to some dialogs 2022-05-09 18:02:41 +02:00
Sokomine
86c87b0c45 fixed bug in exec_apply_effects when taking items 2022-05-09 17:42:07 +02:00
Sokomine
4949afcd00 add text from generic dialogs to start dialogs as well 2022-05-07 14:17:10 +02:00
Sokomine
6cb44d54e0 added npc_talk_generic chatcommand 2022-05-06 19:14:49 +02:00
Sokomine
e803837259 added preconditions true and false 2022-05-06 17:29:28 +02:00
Sokomine
2435732db2 show msg formspecs in formspec version 1 2022-05-06 15:55:39 +02:00
Sokomine
47f9c83358 handled missing text in textual replacements 2022-05-06 15:06:01 +02:00
Sokomine
9fadc666ae make sure generic dialogs never get injected in edit mode 2022-05-05 13:49:52 +02:00
Sokomine
9260989bed minor bugfixes 2022-05-04 14:13:18 +02:00
Sokomine
5b0338fabc fixed sorting of options in dialogs according to o_sort 2022-04-25 19:08:12 +02:00
Sokomine
292c299b5c show the npc's start dialog instead of d_generic_start_dialog 2022-04-25 15:45:51 +02:00
Sokomine
5c95c6ae6d added general support for generic dialogs 2022-04-25 14:53:38 +02:00
Sokomine
f8138908bc check if the player is allowed to edit the npc before applying changes 2022-04-22 21:43:34 +02:00
Sokomine
f3573e746f added yl_speak_up.get_start_dialog_id and reload dialog when entering edit mode 2022-04-22 21:28:23 +02:00
Sokomine
795dce0c2b added hint for npc privs 2022-04-22 21:19:31 +02:00
Sokomine
d25420157c added some missing local declarations 2022-04-22 03:46:18 +02:00
Sokomine
3c7ece2f77 preparations for add_generic_dialogs 2022-04-22 03:45:52 +02:00
Sokomine
282ae84c81 npc privs have to match for the npc or for the generic npc who provides a functionality 2022-04-22 03:18:49 +02:00
Sokomine
6442335931 use new player var reset function when endig edit mode 2022-04-19 19:58:21 +02:00
Sokomine
cda3f74508 properly reset fs_version for players on join/leave 2022-04-19 19:34:36 +02:00
Sokomine
d36ab58a8e improved scrolling (at least for formspec version 3) 2022-04-17 22:21:39 +02:00
Sokomine
8f3a788987 offer text input field in general reply field 2022-04-17 20:10:19 +02:00
Sokomine
8d65f22bea tell that the npc needs privs as well for some actions 2022-04-17 19:42:42 +02:00
Sokomine
e04bc0c8d9 added frame to simple trade and made sold out indicator nicer 2022-04-17 02:03:43 +02:00
Sokomine
ed17ea34fd introduced privs for npc 2022-04-16 22:05:35 +02:00
Sokomine
05ea4b90cc adjusted color for trade list buttons 2022-04-14 19:34:47 +02:00
Sokomine
a1b92b7dca #11 fix crash regarding missing n_dialog 2022-04-13 23:09:34 +02:00
Sokomine
ccfffc9568 fixed undeclared use of global vars 2022-04-12 03:48:08 +02:00
Sokomine
b012d4e251 swapped offer and price item in trade list 2022-04-12 03:19:36 +02:00
Sokomine
b4a8ae893f #10 fix crash in access check 2022-04-12 03:17:43 +02:00
Sokomine
6cadbd9b65 trade_simple fs is shown in fs ver 1 again so that it fits 2022-04-12 01:57:53 +02:00
Sokomine
52d04e36e8 used fs_decorated in fs_talkdialog as well 2022-04-12 01:53:08 +02:00
Sokomine
d466436c34 created fs_decorated.lua and make trade_list.lua use it 2022-04-12 00:33:19 +02:00
Sokomine
c5c7d3391c made trade list nicer 2022-04-11 22:17:07 +02:00
Sokomine
9aa7d4f8a6 allow to force a specific formspec version for some formspecs 2022-04-11 19:05:03 +02:00
Sokomine
058baca37b added npc_talk_style command 2022-04-10 20:43:41 +02:00
Sokomine
430a1eae71 adjusted initial config of formspec dialog to newer versions 2022-04-10 20:23:24 +02:00
Sokomine
28106daa7b fixed crash attempt to index field 'd_options' #13 v2 2022-01-18 22:48:37 +01:00
Sokomine
212809d380 fixed crash attempt to index field 'd_options' #13 2022-01-18 22:40:58 +01:00
Sokomine
d0e7b23127 actually handle partial taking of items 2022-01-18 21:56:01 +01:00