Commit Graph

126 Commits

Author SHA1 Message Date
Sokomine
5cf3e412c5 quest api variables are now properly saved and restored 2021-07-03 21:25:38 +02:00
Sokomine
522179cf28 check for missing item in player_inv/npc_inv 2021-07-02 21:25:41 +02:00
Sokomine
c44ee99fbc looks like much, but only extracted yl_speak_up.save_element_p_or_a_or_e from yl_speak_up.input_fs_edit_option_related and adjusted identation 2021-07-02 20:58:35 +02:00
Sokomine
b03ab2e6b5 added helper function yl_speak_up.handle_edit_actions_alternate_text 2021-07-02 19:36:50 +02:00
Sokomine
6e40dbc388 created yl_speak_up.delete_element_p_or_a_or_e 2021-07-02 18:58:37 +02:00
Sokomine
4d0e9ba116 completed get_fs_edit_option_related (works again after refactoring) 2021-07-02 17:48:54 +02:00
Sokomine
f4d348b1f1 completed get_fs_edit_option_action_text_input and get_fs_edit_option_all_custom 2021-07-02 17:45:21 +02:00
Sokomine
6775a3b567 completed get_fs_edit_option_action_npc_wants 2021-07-02 17:42:08 +02:00
Sokomine
c67e36abc7 completed get_fs_edit_option_action_npc_gives 2021-07-02 17:41:13 +02:00
Sokomine
d74ab72ca7 completed get_fs_edit_option_action_trade 2021-07-02 17:38:52 +02:00
Sokomine
26d05f3262 completed get_fs_edit_option_effect_chat_all 2021-07-02 17:36:36 +02:00
Sokomine
166499c753 completed get_fs_edit_option_effect_on_failure 2021-07-02 17:35:14 +02:00
Sokomine
bf0138cbc1 completed get_fs_edit_option_effect_craft 2021-07-02 17:33:04 +02:00
Sokomine
cc1c1854d6 completed get_fs_edit_option_p_and_e_function 2021-07-02 17:30:57 +02:00
Sokomine
a7ba7f8e85 completed get_fs_edit_option_effect_move 2021-07-02 17:29:25 +02:00
Sokomine
7f6453ce8c completed get_fs_edit_option_effect_give_item_or_take_item 2021-07-02 17:26:18 +02:00
Sokomine
b70f9bdafe completed get_fs_edit_option_precondition_inv 2021-07-02 17:17:33 +02:00
Sokomine
a4a292f7b2 completed get_fs_edit_option_precondition_trade 2021-07-02 17:14:34 +02:00
Sokomine
2fbb0384cb completed get_fs_edit_option_p_and_e_block 2021-07-02 17:08:51 +02:00
Sokomine
1d00232341 completed get_fs_edit_option_p_and_e_state 2021-07-02 17:00:36 +02:00
Sokomine
e693af302c looks more, but almost only identation in the new functions was corrected 2021-07-02 03:34:18 +02:00
Sokomine
506db0ea67 moved variable presets into individual functions 2021-07-02 03:24:45 +02:00
Sokomine
73ac297b98 proceeded with refactoring; functions are now functions again 2021-07-02 02:50:56 +02:00
Sokomine
f2bba9b270 removed surplus checks for empty data 2021-07-02 02:35:22 +02:00
Sokomine
0b9b7d6287 begin of refactoring of fs_edit_option_related into formspecs for types of preconditions, actions and effects 2021-07-02 02:33:33 +02:00
Sokomine
9d3a08e854 fixed bug with npc_gives and npc_wants not showing correct formspec after saving 2021-07-02 01:23:32 +02:00
Sokomine
b8615fd2ce fixed bugs with undeclared variables 2021-07-02 01:13:50 +02:00
Sokomine
1717ad442b added explanations to the alternate_text edit window 2021-07-01 23:42:43 +02:00
Sokomine
3d4141e786 allow to edit and store alternate texts for dialogs when comming from a particular option/failed effect 2021-07-01 22:33:19 +02:00
Sokomine
ff2ba081a9 added edit button to colored dialog text 2021-07-01 17:24:24 +02:00
Sokomine
97384d7772 fixed display bug in effect on_failure 2021-06-30 23:30:22 +02:00
Sokomine
ea5bbb0e7a added yl_speak_up.show_colored_dialog_text for edit menus 2021-06-30 23:12:39 +02:00
Sokomine
edee560b56 better describe which precondition, action or effect is beeing edited 2021-06-30 04:23:55 +02:00
Sokomine
d7e06b662e colorize background for on_failure dialogs in edit general 2021-06-30 01:46:37 +02:00
Sokomine
cef75205f5 added custom precondition and effect 2021-06-29 00:15:36 +02:00
Sokomine
3a66d6b4ce allowed to edit and create preconditions and effects of type function for players with npc_master priv 2021-06-28 23:35:45 +02:00
Sokomine
e199257fb6 added support for editing effect of type move 2021-06-28 23:05:23 +02:00
Sokomine
e47680fd7d added give_item and take_item (editable with npc_master) 2021-06-28 18:24:07 +02:00
Sokomine
71873b7a52 remove name in front of variables for the player's own variables 2021-06-28 02:14:56 +02:00
Sokomine
66477c494f fixed bug with variable name showing 2021-06-28 01:46:38 +02:00
Sokomine
885c19831e allow to use $ in quest items 2021-06-27 18:54:54 +02:00
Sokomine
5edb0da5a7 translate item precondition to player_inv precondition when editing 2021-06-27 17:52:06 +02:00
Sokomine
46f5232d49 dialog effects cannot be deleted or edited anymore 2021-06-27 17:43:14 +02:00
Sokomine
c24cce74b1 allow to use item slot to describe stack for preconditions 2021-06-21 20:43:13 +02:00
Sokomine
711cbe69d5 handle enter key in fs_edit_general.lua 2021-06-21 19:38:25 +02:00
Sokomine
d71e5e1d10 made the back to edit dialog option button more comprehensible 2021-06-21 18:43:58 +02:00
Sokomine
f7470a7bb1 made function get_number_from_id accessible 2021-06-21 18:22:37 +02:00
Sokomine
a1af19ca46 fixed bugs regarding variable selection in preconditions and effects 2021-06-21 01:21:50 +02:00
Sokomine
eb7861393b fixed bug in on_rightclick 2021-06-20 23:54:35 +02:00
Sokomine
701f687415 variables can now be added, set and queried; time is rounded to seconds 2021-06-20 23:24:33 +02:00
Sokomine
827020d167 variable handling related to current time 2021-06-20 17:28:21 +02:00
Sokomine
4085e87f29 show dialog for on_failure of actions; improved formspecs 2021-06-20 02:18:32 +02:00
Sokomine
73aaa15c44 show target dialog for on_failure effect 2021-06-20 00:58:08 +02:00
Sokomine
c93012338d show background images when editing inventory-related actions 2021-06-20 00:36:07 +02:00
Sokomine
a44cb0fbdd allow actual editing of most preconditions, actions and effects 2021-06-19 23:42:05 +02:00
Sokomine
7045842359 actions of type custom can now be created 2021-06-16 02:59:10 +02:00
Sokomine
5f652f62ae added save function for actions of type trade 2021-06-16 01:36:50 +02:00
Sokomine
5d0083212a added input formspec for action of type trade 2021-06-16 00:25:18 +02:00
Sokomine
51e8e197b4 implemented saving password input action 2021-06-15 19:40:56 +02:00
Sokomine
634631a8e9 added blacklist for quest items 2021-06-15 01:23:49 +02:00
Sokomine
4d81955421 implementing storing action npc_wants 2021-06-15 00:14:21 +02:00
Sokomine
ed333192cb implemented storing action npc_gives 2021-06-14 23:44:28 +02:00
Sokomine
a1ce1db375 preparations/formspecs for npc_wants/npc_gives 2021-06-14 01:12:12 +02:00
Sokomine
5d82cbc32d added fs_edit_actions.lua and necessary sourroundings 2021-06-12 21:17:58 +02:00
Sokomine
62cfd61e8a took care of undeclared globals 2021-06-12 17:36:15 +02:00
Sokomine
69d29d7aec added blacklist for effect block interaction 2021-06-12 16:52:39 +02:00
Sokomine
003b322af3 implemented effects that are block- and crafting-related 2021-06-12 00:17:51 +02:00
Sokomine
d21141ec1f on_failure effect now acts upon failed *effects* instead of a failed action 2021-06-11 16:47:56 +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
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
2d233a16e7 preparations for on_failure effect 2021-06-09 00:56:50 +02:00
Sokomine
967e7c6eb4 created fs_edit_general.lua with common functions for preconditions and effects 2021-06-08 23:56:55 +02:00