Commit Graph

318 Commits

Author SHA1 Message Date
Sokomine
c324f5a8d9 added yl_speak_up.print_as_table_* functions for two functions: show usage of a variable and show what points to this dialog 2021-07-25 02:07:52 +02:00
Sokomine
2eecc18bda fixed crash 2021-07-18 01:49:05 +02:00
Sokomine
45335caeda show what points to a dialog 2021-07-18 01:24:55 +02:00
Sokomine
d48195cd6a put most handling of alternate dialog texts into fs_alternate_text.lua 2021-07-17 21:28:33 +02:00
Sokomine
53fd0d1827 allow to turn alternate text into a new dialog 2021-07-17 16:23:06 +02:00
Sokomine
a4b6bc1d02 explained alternate texts 2021-07-17 15:04:50 +02:00
Sokomine
fb2217d8cc handled alternate texts centralized in yl_speak_up.input_edit_option_dialog 2021-07-16 22:15:53 +02:00
Sokomine
58b5aa2cbb allow to show usage of internal variables again 2021-07-15 04:40:25 +02:00
Sokomine
cbaf8d4640 deleting unused variables is now possible 2021-07-15 04:23:06 +02:00
Sokomine
681b9568a9 improve the show variable usage formspec 2021-07-15 02:52:45 +02:00
Sokomine
ceaff334e3 show statistics about how often a variable is used in the show usage formspec 2021-07-15 02:28:32 +02:00
Sokomine
85a9a50d38 yl_speak_up.get_list_of_usage_of_variable is now sorted by the value the variable is set to 2021-07-15 02:07:17 +02:00
Sokomine
c2402ccaed show variable usage (nicely colored) 2021-07-12 17:52:34 +02:00
Sokomine
82e4d37436 removed debug message 2021-07-12 00:35:33 +02:00
Sokomine
d16cc44e6c convert to numbers were necessary in the effects 2021-07-12 00:31:27 +02:00
Sokomine
5cab21449d fixed bug in effects when the variable is nil 2021-07-12 00:24:47 +02:00
Sokomine
bbc778f0ef fixed bug in quest_api.lua: setting variables to nil is possible again 2021-07-12 00:23:46 +02:00
Sokomine
bcc171dff2 allowed to refer to other options' preconditions as a new precondition 2021-07-12 00:22:49 +02:00
Sokomine
586a18073e added preconditions quest_step_done and quest_step_not_done 2021-07-11 18:31:58 +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
7a0c442508 added missing effects for variable states 2021-07-10 17:51:50 +02:00
Sokomine
bea29aed26 added show var usage (partially) 2021-07-08 23:33:27 +02:00
Sokomine
14e0902cf1 combined list of read and write acces in quest api 2021-07-08 23:30:27 +02:00
Sokomine
1a9f53fba2 added basic function to list usage of variables 2021-07-08 19:03:32 +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
8ea4123e01 fixed bug in variable comparison 2021-07-04 22:49:13 +02:00
Sokomine
52267f0b2b make npc_gives/npc_wants work again 2021-07-03 21:59:13 +02:00
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