Commit Graph

877 Commits

Author SHA1 Message Date
Sokomine
28ffd87362 show in edit options menu when a craft receipe effect fails due to changed receipe 2021-06-11 00:35:11 +02:00
Sokomine
d3d90134ee yl_speak_up.execute_all_relevant_effects 2021-06-11 00:20:40 +02:00
Sokomine
7cfad9586a copied player move code over to fs_edit_effects.lua 2021-06-10 23:34:34 +02:00
Sokomine
b684ec3307 implemented some of the effects 2021-06-10 23:15:28 +02:00
Sokomine
773be49a4e added yl_speak_up.debug_msg plus chat command /npc_talk_debug 2021-06-10 22:49:24 +02:00
Sokomine
8a69b4caeb explained actions in README.md 2021-06-10 18:11:23 +02:00
Sokomine
312b9a49df renamed eval_precondition_function to eval_and_execute_function, moved to fs_edit_general.lua and used for results as well 2021-06-10 18:06:21 +02:00
Sokomine
4e4948923a added effect send chat message to all 2021-06-10 17:46:09 +02:00
Sokomine
d2e5840886 only blocks where the player (npc owner) can build are suitable for preconditions and effects 2021-06-09 22:04:07 +02:00
Sokomine
5c8586cc50 removed done TODO point 2021-06-09 21:49:29 +02:00
Sokomine
6ec65d6a17 added effects craft and on_failure (but not implemented yet) 2021-06-09 21:43:49 +02:00
Sokomine
86701d5325 sort keys numericly, i.e. p_2 before p_10 2021-06-09 18:51:55 +02:00
Sokomine
2d233a16e7 preparations for on_failure effect 2021-06-09 00:56:50 +02:00
Sokomine
fab84ca4a0 added get list of writable variables, some documentation and yl_speak_up.show_effect to fs_edit_effects.lua 2021-06-09 00:43:37 +02:00
Sokomine
967e7c6eb4 created fs_edit_general.lua with common functions for preconditions and effects 2021-06-08 23:56:55 +02:00
Sokomine
8a3daab3c0 added quest_api.lua; added variable handling in fs_edit_preconditions.lua 2021-06-08 02:09:16 +02:00
Sokomine
ce7877bc2b make delete precondition work 2021-06-07 21:34:36 +02:00
Sokomine
b0f141b09d moved code from calculate_displayable_options to yl_speak_up.eval_precondition_function; added yl_speak_up.eval_all_preconditions; added yl_speak_up.eval_precondition 2021-06-07 19:54:46 +02:00
Sokomine
80c25fb9fa improved documentation of fs_edit_preconditions.lua 2021-06-07 04:43:04 +02:00
Sokomine
ba31a932ad added tooltips for precondition and effect list 2021-06-07 04:28:15 +02:00
Sokomine
0bea918686 limited number of preconditions and options per dialog 2021-06-07 04:19:10 +02:00
Sokomine
8157512e6b human readable texts for the preconditions 2021-06-07 04:00:06 +02:00
Sokomine
2bd1863e79 actually save the preconditions 2021-06-07 00:32:11 +02:00
Sokomine
a482f8664c find_next_id is no longer local 2021-06-06 23:30:03 +02:00
Sokomine
850343a30d process input into field elements of fs_edit_preconditions.lua 2021-06-06 20:49:47 +02:00
Sokomine
91788f8713 fixed crash 2021-06-06 00:20:51 +02:00
Sokomine
830b18c2aa create trades table soon enough 2021-06-06 00:19:25 +02:00
Sokomine
6588ef4cdb fix crash when deleting non-existant trade 2021-06-06 00:18:01 +02:00
Sokomine
24106d984b give back button priority in edit_preconditions.lua 2021-06-06 00:06:35 +02:00
Sokomine
9ad63d1591 added formspecs for precondition setup 2021-06-06 00:02:29 +02:00
Sokomine
841581d4fd added register_node_punch.lua 2021-06-05 22:54:48 +02:00
Sokomine
79a7184a7e made staff work again (was broken) 2021-06-04 20:48:13 +02:00
Sokomine
d916178ca0 added fs_edit_preconditions.lua and fs_edit_effects.lua 2021-06-03 21:12:58 +02:00
Sokomine
a0f338c965 prepared adding of precondition and effect edit 2021-06-03 18:08:05 +02:00
Sokomine
cfe6f83ad4 added function yl_speak_up.sort_keys 2021-06-03 18:07:03 +02:00
Sokomine
bd89ba9d56 introduced action to fs_edit_options_dialog.lua 2021-06-03 03:41:17 +02:00
Sokomine
5877cd11c6 some additional comments; in general chat_send_message has mostly been replaced by formspecs now 2021-06-03 01:16:23 +02:00
Sokomine
f199a9d04c don't show add button in edit options menu if already max number of options 2021-06-03 01:08:21 +02:00
Sokomine
7e3911b949 show trades as (A)ction in edit mode 2021-06-02 23:41:11 +02:00
Sokomine
e52d219204 added yl_speak_up.inventory_allow_item for formspec error messages instead of chat messages 2021-06-02 23:18:20 +02:00
Sokomine
ba96bf6975 show formspec instead of chat message in case of wrong inventory placement of dammaged tools etc 2021-06-02 23:01:10 +02:00
Sokomine
a2e11f5fb6 added missing error message 2021-06-02 22:43:28 +02:00
Sokomine
062699b1da allow to change owner in fs_initial_config.lua 2021-06-02 22:35:43 +02:00
Sokomine
5409e1fa04 error messages as formspecs in fs_initial_config.lua 2021-06-02 22:08:49 +02:00
Sokomine
30db4209e2 moved relevant functions into fs_initial_config.lua 2021-06-02 21:43:11 +02:00
Sokomine
3769f05880 added comments where each formspec is handled (in which file) 2021-06-02 19:23:41 +02:00
Sokomine
5c9b633546 moved fs_edit_options_dialog.lua functions into extra file 2021-06-02 19:19:57 +02:00
Sokomine
b491ec46de moved general formspec functions to show_fs.lua 2021-06-02 19:10:58 +02:00
Sokomine
7b12a37efe fixed deleting tades associated with dialog options 2021-06-02 18:05:40 +02:00
Sokomine
e6f9dbac67 made trade dialog more consistant for dialog option trades in edit mode or normal mode 2021-06-02 16:57:33 +02:00