Commit Graph

55 Commits

Author SHA1 Message Date
Sokomine
cce17c7c23 fixed undeclared globals 2025-06-09 03:41:34 +02:00
Sokomine
208cafc725 fixed local variables 2025-05-31 19:28:16 +02:00
Sokomine
de001c3539 save quest vars only if something actually changed 2025-04-20 21:38:15 +02:00
Sokomine
67fe90c984 variables can now have a default value other than nil 2025-02-09 00:26:24 +01:00
Sokomine
5cd9a9aab6 fixed crash in quest_api when saving 2024-12-26 16:01:39 +01:00
Sokomine
e3094962c3 search texts for variable (display) usage when storing npc data 2024-12-25 22:50:33 +01:00
Sokomine
44e8683e61 renamed function input_fs_manage_general to handle_* 2023-12-18 06:13:27 +01:00
Sokomine
aa3fd4580c fixed bug 2023-11-03 23:12:12 +01:00
Sokomine
1dd6c587c7 moved adding npc/locations to quest steps into quest_api 2023-10-28 17:32:07 +02:00
Sokomine
861c44024a further prepared connection of npc and quest steps 2023-10-01 12:21:31 +02:00
Sokomine
13abe1687a make sure quest.npcs and quest.locations exist 2023-09-30 19:38:19 +02:00
Sokomine
af43cc467c added get_location_id for quests 2023-09-22 02:10:28 +02:00
Sokomine
7d602fccf2 make sure all relevant tables exist inside quest step data inside quest_api.lua 2023-09-21 22:05:51 +02:00
Sokomine
5ba53ba637 added formspec for adding quest steps 2023-09-18 23:33:10 +02:00
Sokomine
e879e1e67a manage only really existing quests; preparations for deleting quests 2023-09-16 05:38:33 +02:00
Sokomine
4ce6101bca added first basic creation/delition of quest steps 2023-09-15 00:40:34 +02:00
Sokomine
dd5ea7e38f added quest_step_reached 2023-08-06 03:30:33 +02:00
Sokomine
7a98d0c44f added quest_step_possible check in preconditions 2023-08-06 02:56:05 +02:00
Sokomine
1ad3bc4498 fixed bug with missing yl_speak_up.load_quest prefix 2022-11-14 21:03:58 +01:00
Sokomine
8b24e9b52f added basic quest management formspec 2022-11-14 18:18:33 +01:00
Sokomine
ab0e9faf14 in custom functions that use variables: set the right prefix 2022-10-23 21:00:58 +02:00
Sokomine
aa38ea2dbb added yl_speak_up.get_time_in_seconds 2021-08-05 18:08:42 +02:00
Sokomine
0629d6ba2c added new tabs 'Limit guessing:' and 'Limit repeating:' to edit options menu 2021-08-04 04:15:45 +02:00
Sokomine
c5aca7d9a8 actually print the debug output for variable changes 2021-08-03 19:18:42 +02:00
Sokomine
7117131207 allow to activate and deactivate debug mode for variables 2021-08-03 18:11:35 +02:00
Sokomine
d767c4854e moved function from quest_api.lua into fs_get_list_of_usage_of_variable.lua 2021-07-31 21:55:51 +02:00
Sokomine
23da9c8a27 moved some functions from quest_api.lua into fs_manage_variables.lua 2021-07-31 21:46:12 +02:00
Sokomine
742ec53a6b added var_type for storing the type of the variable (not yet used) 2021-07-31 21:33:44 +02:00
Sokomine
9856842074 added yl_speak_up.set_variable_metadata for cleaner setting of metadata 2021-07-31 20:53:53 +02:00
Sokomine
372a37f8e6 added yl_speak_up.get_variable_metadata for cleaner access to metadata 2021-07-31 20:36:47 +02:00
Sokomine
4f524f7fc1 empty variables can now be deleted 2021-07-31 19:01:09 +02:00
Sokomine
144eb53719 delete npc from used_by_npc if they no longer use a particular variable 2021-07-29 22:00:21 +02:00
Sokomine
e1072f1c72 show which npc and node_pos(itions) use a variable; fixed bug in manage_variables formspec 2021-07-29 21:17:13 +02:00
Sokomine
c8345cee4d added vars with access rights to lists of available vars 2021-07-29 19:56:47 +02:00
Sokomine
30d14ed999 add or revoke read or write access to a variable - formspec interface part 2021-07-29 19:43:48 +02:00
Sokomine
8e3ba06a7e manage_variables formspec has all elements now but still lacks implementation of most functions 2021-07-26 22:53:44 +02:00
Sokomine
c19e478728 allow to select variables in manage_variables 2021-07-26 22:08:45 +02:00
Sokomine
3e019907da added yl_speak_up.create_dropdown_playerlist in new file formspec_helpers.lua 2021-07-26 19:37:21 +02:00
Sokomine
fc06ddc8ba moved some helper functions from quest_api.lua to print_as_table.lua 2021-07-25 02:12:35 +02:00
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
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
bbc778f0ef fixed bug in quest_api.lua: setting variables to nil is possible again 2021-07-12 00:23:46 +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