Commit Graph

27 Commits

Author SHA1 Message Date
Sokomine
0316afdfa9 take items back into npc inventory when npc_gives failed instead of forgetting them 2024-12-15 14:36:19 +01:00
Sokomine
bfeed37767 allow d_got_item and d_trade to be used as target dialogs and as target for failed actions 2024-12-15 13:50:58 +01:00
Sokomine
55b180544f allow d_trade as dialog target 2024-02-13 04:01:28 +01:00
Sokomine
cb0869f53c moved formspecs out of exec_actions.lua and into fs/fs_action_*.lua 2024-02-10 00:23:35 +01:00
Sokomine
7408d8d286 show_fs: action_(npc_gives/npc_wants/text_input/evaluate) 2024-02-09 20:02:22 +01:00
Sokomine
c2728f853b split action_inv_changed function into editor/ and interpreter functionality 2024-02-07 21:44:39 +01:00
Sokomine
e3762b9c4c do not crash when action leads to d_end in case of success 2023-11-25 20:59:16 +01:00
Sokomine
dd5ea7e38f added quest_step_reached 2023-08-06 03:30:33 +02:00
Sokomine
4df6a56bf8 added quest_gui as custom action 2022-11-02 16:45:13 +01:00
Sokomine
f2f8195285 fixed undeclared globals 2022-10-16 13:37:11 +02:00
Sokomine
d7f0abb841 stored input from text_input action in yl_speak_up.last_text_input[pname] and added function to examine that input as precondition of type evaluate 2022-10-15 18:50:39 +02:00
Sokomine
dbc7f4a12c improved logging of actions 2022-10-08 23:48:20 +02:00
Sokomine
6befa8f10a added logging for failed and successful actions 2022-10-08 23:34:43 +02:00
Sokomine
045f9b51f0 npc_gives no longer requires an explicit click on 'Done' 2022-10-01 21:04:43 +02:00
Sokomine
48202642dd minor bugfix 2022-09-30 02:20:12 +02:00
Sokomine
b70bdc60b9 fixed missing global n_id in exec_actions.lua 2022-09-14 22:31:17 +02:00
Sokomine
244377b2a9 fixed bug in action timers and added better debuging info 2022-09-11 21:55:02 +02:00
Sokomine
48e5af991c added code_input_handler for actions of type "evaluate" 2022-08-07 21:13:20 +02:00
Sokomine
3cd6077efd moved another function inside exec_actions.lua 2022-08-07 20:58:24 +02:00
Sokomine
49c2c49d6d just moved a function inside exec_actions.lua 2022-08-07 20:55:57 +02:00
Sokomine
77c05631eb removed obsolete action "custom" (use the new "evaluate" instead) 2022-08-07 20:49:09 +02:00
Sokomine
4dfa9f2ed3 added new action type "evaluate" similar to preconditions and effects 2022-08-07 20:06:04 +02:00
Sokomine
80ce8d4892 implemented d_end 2022-07-11 19:48:50 +02:00
Sokomine
d36ab58a8e improved scrolling (at least for formspec version 3) 2022-04-17 22:21:39 +02:00
Sokomine
8f3a788987 offer text input field in general reply field 2022-04-17 20:10:19 +02:00
Sokomine
ef66268424 if an action fails: switch to the first dialog if no other on_failure dialog is defined 2022-01-06 18:05:39 +01:00
Sokomine
0c2f9f0b49 put exec_actions.lua into extra file 2022-01-05 21:57:02 +01:00