Commit Graph

834 Commits

Author SHA1 Message Date
Sokomine
e4a7bdc233 added save button to edit options dialog (not yet functional) 2021-06-25 19:12:58 +02:00
Sokomine
6ad92fb198 ask for save when selecting edit options dialog 2021-06-25 18:33:41 +02:00
4ab2ee03f1 Merge pull request 'reduce number of gsub calls for text variable substitutions' (#4) from whosit/yl_speak_up:trade_list into trade_list
Reviewed-on: Sokomine/yl_speak_up#4
2021-06-23 04:58:57 +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
706f6d7436 give wrong items back or drop at the player's feet 2021-06-21 21:28:31 +02:00
Sokomine
c24cce74b1 allow to use item slot to describe stack for preconditions 2021-06-21 20:43:13 +02:00
Sokomine
228faed97d shorter sentence for show me your inventory 2021-06-21 19:54:23 +02:00
Sokomine
5efdd9fd79 if an action fails and has no existing on_failure dialog, go back to the current dialog 2021-06-21 19:45:47 +02:00
Sokomine
711cbe69d5 handle enter key in fs_edit_general.lua 2021-06-21 19:38:25 +02:00
Sokomine
7534482e20 make the arrows in the dialog edit menu work again 2021-06-21 18:58:53 +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
fe683adefb removed undeclared global 2021-06-21 17:51:00 +02:00
Sokomine
a1af19ca46 fixed bugs regarding variable selection in preconditions and effects 2021-06-21 01:21:50 +02:00
Sokomine
f794a10a30 strip whitespaces around variable names 2021-06-21 01:02:53 +02:00
Sokomine
58e701fde1 took care of unregistered globals 2021-06-21 00:43:09 +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
cea602230f ignore leading/tailing whitespaces when checking password 2021-06-20 17:53:39 +02:00
Sokomine
827020d167 variable handling related to current time 2021-06-20 17:28:21 +02:00
Sokomine
a7288bb2b9 save the inventory of the NPC after npc_gives/npc_wants 2021-06-20 16:32:10 +02:00
Sokomine
fd177472c5 fixed bug; effects are executed again 2021-06-20 03:55:15 +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
b594b3d237 quest items are destroyed if the NPC runs out of storage space 2021-06-19 18:20:12 +02:00
Sokomine
f8bc784776 implented action text_input 2021-06-19 18:16:52 +02:00
Sokomine
30420a6b42 trade is now an action; removed from edit options dialog 2021-06-19 03:22:47 +02:00
Sokomine
c6a837d663 added example for custom action 2021-06-19 03:21:02 +02:00
Sokomine
11edcc8b31 yl_speak_up.action_quest_item_take_back 2021-06-19 02:48:08 +02:00
Sokomine
5fecab3ed7 implemented part of npc_gives/npc_wants item handling 2021-06-19 02:23:43 +02:00
Sokomine
822fb48da9 added basic formspecs for npc_wants/npc_gives 2021-06-19 00:50:41 +02:00
Sokomine
9ed4cfc92d added yl_speak_up.execute_next_action and general action handling 2021-06-18 04:36:59 +02:00
Sokomine
2290f9d463 removed obsolete code 2021-06-16 03:08:55 +02:00
Sokomine
7045842359 actions of type custom can now be created 2021-06-16 02:59:10 +02:00
Sokomine
7fe9f18791 removed obsolete code 2021-06-16 01:43:47 +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
dc69b71a33 show actions correctly when editing dialogs 2021-06-15 19:14:40 +02:00
Sokomine
634631a8e9 added blacklist for quest items 2021-06-15 01:23:49 +02:00
Sokomine
9e4e0b9b26 added quest items and password input to README.md 2021-06-15 01:17:55 +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
2ace5da2c9 bugfix in sort_keys for actions 2021-06-14 23:18:31 +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
5abda37cf7 do not right-click on nodes which have an inventory 2021-06-12 17:22:40 +02:00