Commit Graph

148 Commits

Author SHA1 Message Date
Sokomine
5f98cecfaf bugfix - d_end exists as well and needs to be treated specially 2022-08-02 21:41:28 +02:00
Sokomine
6e35b01bd5 added yl_speak_up.enable_yl_mobs config option 2022-07-12 22:54:08 +02:00
Sokomine
9fadc666ae make sure generic dialogs never get injected in edit mode 2022-05-05 13:49:52 +02:00
Sokomine
3c7ece2f77 preparations for add_generic_dialogs 2022-04-22 03:45:52 +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
b4a8ae893f #10 fix crash in access check 2022-04-12 03:17:43 +02:00
Sokomine
5204c5c8ee deal with formspec_version lower than 3 and display formspec where possible 2022-01-16 21:49:52 +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
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
45616bb4ba auto-refuse unwanted items and let the player take them back 2022-01-02 06:12:50 +01:00
Sokomine
a1cae79266 added d_got_item dialog for accepting items given from player to npc 2022-01-01 21:47:11 +01:00
Sokomine
8a7d6e24b3 avoid infinite loop in automatic/autoselect mode; added yl_speak_up.max_allowed_recursion_depth config option 2021-12-31 17:41:12 +01:00
Sokomine
788960ca0a added autoanswer/autoselect function (without loop detection) 2021-12-29 04:10:41 +01:00
Sokomine
0629d6ba2c added new tabs 'Limit guessing:' and 'Limit repeating:' to edit options menu 2021-08-04 04:15:45 +02:00
Sokomine
ab87304ed2 npc_talk_owner priv is still required even for players added to the list of allowed editors 2021-07-26 19:41:35 +02:00
Sokomine
430cbd65bb players can now add others that may edit their npc with just npc_talk_owner priv 2021-07-26 19:39:31 +02:00
Sokomine
952ed84733 moved skin functions etc. into fs_fashion.lua 2021-07-25 23:47:45 +02:00
Sokomine
4eac20c045 moved staff based editing functions into extra file 2021-07-25 23:27:18 +02:00
Sokomine
972a1e1e61 yl_speak_up.show_what_points_to_this_dialog is now handled by show_fs, and the back button works 2021-07-25 03:42:22 +02:00
Sokomine
45335caeda show what points to a dialog 2021-07-18 01:24:55 +02:00
Sokomine
bcc171dff2 allowed to refer to other options' preconditions as a new precondition 2021-07-12 00:22:49 +02:00
Sokomine
be9dfbf1dd show correct dialog when the player uses an older formspec version; note: does not cover editing 2021-07-11 18:13:45 +02:00
Sokomine
c3c7b7e2da added yl_speak_up.get_npc_users_of_variable and modified saving of npc data so that the necessary data is stored 2021-07-05 19:31:29 +02:00
Sokomine
577ea356aa actually apply alternate_text texts 2021-07-01 23:14:33 +02:00
Sokomine
17544df2a1 added new function yl_speak_up.prepare_new_dialog_for_option so that the dialog result/effect is present when first editing a new dialog 2021-07-01 03:24:52 +02:00
Sokomine
61bd16f3f2 made edit option menu slightly nicer 2021-06-29 20:26:25 +02:00
Sokomine
01af5d1365 added custrom_functions_you_can_override.lua 2021-06-29 00:44:00 +02:00
Sokomine
703770794e added added save button to main dialog 2021-06-28 01:27:50 +02:00
Sokomine
2544fdc0c9 fixed broken tooltip 2021-06-27 17:19:32 +02:00
Sokomine
661caaff4e removed yl_speak_up.save_changes_and_switch_to_other_dialog; handled now by show_fs.lua and the new fs_save_or_discard_or_back.lua 2021-06-27 04:33:14 +02:00
Sokomine
1b28dd6a07 load_dialog is no longer a local function 2021-06-27 03:46:03 +02:00
Sokomine
6ad92fb198 ask for save when selecting edit options dialog 2021-06-25 18:33:41 +02:00
b3c8889b95 reduce number of gsub calls for text variable substitutions
Use lua feature that allows to specify table with substitutions to
string.gsub()
2021-06-23 02:44:01 +03:00
Sokomine
228faed97d shorter sentence for show me your inventory 2021-06-21 19:54:23 +02:00
Sokomine
7534482e20 make the arrows in the dialog edit menu work again 2021-06-21 18:58:53 +02:00
Sokomine
f7470a7bb1 made function get_number_from_id accessible 2021-06-21 18:22:37 +02:00
Sokomine
9ed4cfc92d added yl_speak_up.execute_next_action and general action handling 2021-06-18 04:36:59 +02:00
Sokomine
dc69b71a33 show actions correctly when editing dialogs 2021-06-15 19:14:40 +02:00
Sokomine
2ace5da2c9 bugfix in sort_keys for actions 2021-06-14 23:18:31 +02:00
Sokomine
d3d90134ee yl_speak_up.execute_all_relevant_effects 2021-06-11 00:20:40 +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
86701d5325 sort keys numericly, i.e. p_2 before p_10 2021-06-09 18:51:55 +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
a482f8664c find_next_id is no longer local 2021-06-06 23:30:03 +02:00
Sokomine
91788f8713 fixed crash 2021-06-06 00:20:51 +02:00