Commit Graph

575 Commits

Author SHA1 Message Date
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
Sokomine
75cc01904e added operator 'is true/false when called with parameter:' 2022-01-17 03:42:15 +01:00
Sokomine
039d17c8d7 moved custom precondition functions to custrom_functions_you_can_override.lua 2022-01-17 03:27:09 +01:00
Sokomine
eeb4d3da5d removed debug line 2022-01-17 03:08:29 +01:00
Sokomine
04b89c2e5e added yl_speak_up.custom_server_functions.precondition_descriptions and *.precondition_eval 2022-01-17 03:07:45 +01:00
Sokomine
7143f81995 added further scroll up/scroll down buttons for formspec version 1 2022-01-16 21:50:14 +01:00
Sokomine
5204c5c8ee deal with formspec_version lower than 3 and display formspec where possible 2022-01-16 21:49:52 +01:00
Sokomine
68f5ac0d7c reset scroll counter when entering edit mode 2022-01-09 02:19:30 +01:00
Sokomine
1967eeef15 removed deprecated handling of older formspec versions (now handled in another part of the code) 2022-01-09 02:10:32 +01:00
Sokomine
5b49bfbccd made edit dialog work in formspec versions < 3 as far as possible 2022-01-09 02:04:10 +01:00
Sokomine
e950cdc1f0 diffrent handling for formspec versions 2 and 1 (2 is pretty ok; 1 is ugly and barely usable) 2022-01-09 00:05:50 +01:00
Sokomine
b455321528 preparations for using the same code for generating fs for diffrent versions 2022-01-08 22:53:47 +01:00
Sokomine
585492b2f7 removed duplicate declaration of formspec where the lines are the same for diffrent formspec versions 2022-01-08 20:32:10 +01:00
Sokomine
6e461b95a6 improved formatting of dropdown formspec entries in fs_talkdialog.lua 2022-01-08 19:14:13 +01:00
Sokomine
bcdd59e004 made action button in edit dialog work again 2022-01-08 19:03:32 +01:00
Sokomine
e3eda65c00 added yl_speak_up.add_formspec_element_with_tooltip_if to clean up formspec building in fs_talkdialog.lua 2022-01-08 18:38:51 +01:00
Sokomine
3bde8d18c4 made more use of yl_speak_up.add_edit_button_fs_talkdialog 2022-01-08 02:30:09 +01:00
Sokomine
07be18bcf6 added helper function +yl_speak_up.add_edit_button_fs_talkdialog 2022-01-07 23:24:49 +01:00
Sokomine
fc10be7d0e extracted interface_mobs_api.lua from functions.lua into a seperate file 2022-01-07 21:22:41 +01:00
Sokomine
bd2c8bc4cd extracted edit_mode_apply_changes.lua from functions.lua into a seperate file 2022-01-07 21:04:55 +01:00
Sokomine
2b402aaefb removed deprecated function say(..) 2022-01-07 20:53:53 +01:00
Sokomine
e8265679b4 extracted fs_talkdialog.lua from functions.lua into a seperate file 2022-01-07 20:52:34 +01:00
Sokomine
0e62741926 extracted exec_apply_effects.lua from fs_edit_effects.lua 2022-01-06 18:15:54 +01:00
Sokomine
ef66268424 if an action fails: switch to the first dialog if no other on_failure dialog is defined 2022-01-06 18:05:39 +01:00
Sokomine
45336ed4d4 eliminated undeclared global variable o_id 2022-01-06 17:38:02 +01:00
Sokomine
b536ce99f3 improved documentation of values in fs_edit_effects.lua 2022-01-06 02:52:54 +01:00
Sokomine
3c52cfeae6 implemented deal_with_offered_item effect (only editing, not effect yet) 2022-01-06 02:41:04 +01:00
Sokomine
031fda8411 set useful preset for sort_by for d_got_item dialog 2022-01-05 23:54:25 +01:00
Sokomine
f00d7bb505 deal with missing sort_by parameter 2022-01-05 23:44:30 +01:00
Sokomine
17a8551f25 explained autoanswer/autoselect mode 2022-01-05 23:33:40 +01:00
Sokomine
0c2f9f0b49 put exec_actions.lua into extra file 2022-01-05 21:57:02 +01:00
Sokomine
9a89c678f0 moved yl_speak_up.precondition_check_variable to exec_eval_* 2022-01-05 21:55:31 +01:00
Sokomine
7b8e7f7322 made check_variable accessible for excec_eval_preconditions.lua 2022-01-05 19:17:59 +01:00
Sokomine
9039fe08b9 split up fs_edit_preconditions into fs_edit and exec_eval_ 2022-01-05 19:07:23 +01:00
Sokomine
ce1e191eaf updated documentation of parameters of actions 2022-01-05 18:58:57 +01:00
Sokomine
8614545828 updated documentation of parameters of preconditions 2022-01-05 18:42:20 +01:00
Sokomine
6ccf9cfdb5 implemented precondition player_offered_item 2022-01-05 18:16:21 +01:00
Sokomine
2c8437f6a4 show precondition player_offered_item 2022-01-05 01:23:42 +01:00
Sokomine
5644ad0cb2 store amount and more/less/equal etc. for precondition player_offered_item 2022-01-05 01:01:23 +01:00
Sokomine
127263813e don't store no group selected for player_offered_item 2022-01-04 23:01:16 +01:00
Sokomine
42233f59a1 implemented saving of player_offered_item precondition 2022-01-04 04:52:24 +01:00
Sokomine
d4e7870c05 added formspec for precondition player_offered_item 2022-01-04 04:00:08 +01:00
Sokomine
e33f713f54 added yl_speak_up.fs_your_inventory_select_item to avoid repetition 2022-01-04 01:30:33 +01:00
Sokomine
6f127bd3b4 bugfix: clear tmp_data_cache properly 2022-01-04 01:24:42 +01:00