forked from Sokomine/yl_speak_up
moved some files into fs/ and api/ folders to clean up
This commit is contained in:
parent
2c2b3d173d
commit
f37f07c722
30
init.lua
30
init.lua
@ -144,8 +144,8 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
minetest.mkdir(yl_speak_up.worldpath..yl_speak_up.quest_path)
|
||||
|
||||
-- logging and showing the log
|
||||
dofile(modpath .. "api_logging.lua")
|
||||
dofile(modpath .. "fs_show_log.lua")
|
||||
dofile(modpath .. "api/api_logging.lua")
|
||||
dofile(modpath .. "fs/fs_show_log.lua")
|
||||
-- players *and* npc need privs for certain things; this here handles the NPC side of things
|
||||
dofile(modpath .. "npc_privs.lua")
|
||||
-- add generic dialogs
|
||||
@ -168,10 +168,10 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
-- the server's file system or can execute lua code.
|
||||
-- Note: Please do not edit this file. Instead, create and edit the
|
||||
-- file "local_server_do_on_reload.lua"!
|
||||
dofile(modpath .. "custom_functions_you_can_override.lua")
|
||||
dofile(modpath .. "api/custom_functions_you_can_override.lua")
|
||||
|
||||
-- assign a quest step to a dialog option/answer
|
||||
dofile(modpath .. "fs_assign_quest_step.lua")
|
||||
dofile(modpath .. "fs/fs_assign_quest_step.lua")
|
||||
|
||||
-- execute preconditions, actions and effects
|
||||
dofile(modpath .. "exec_eval_preconditions.lua")
|
||||
@ -184,7 +184,7 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
-- handle alternate text for dialogs
|
||||
dofile(modpath .. "fs_alternate_text.lua")
|
||||
-- helpful for debugging the content of the created dialog structure
|
||||
dofile(modpath .. "fs_show_what_points_to_this_dialog.lua")
|
||||
dofile(modpath .. "fs/fs_show_what_points_to_this_dialog.lua")
|
||||
-- debugging - extended information about what (your own) NPC does
|
||||
dofile(modpath .. "npc_talk_debug.lua")
|
||||
-- execute lua code directly (preconditions and effects) - requires priv
|
||||
@ -213,17 +213,17 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
-- just click on a button to buy items from the trade list
|
||||
dofile(modpath .. "fs_trade_via_buy_button.lua")
|
||||
-- easily accessible list of all trades the NPC offers
|
||||
dofile(modpath .. "fs_trade_list.lua")
|
||||
dofile(modpath .. "fs/fs_trade_list.lua")
|
||||
-- as the name says: list which npc acesses a variable how and in which context
|
||||
dofile(modpath .. "fs_get_list_of_usage_of_variable.lua")
|
||||
dofile(modpath .. "fs/fs_get_list_of_usage_of_variable.lua")
|
||||
-- show which values are stored for which player in a quest variable
|
||||
dofile(modpath .. "fs_show_all_var_values.lua")
|
||||
dofile(modpath .. "fs/fs_show_all_var_values.lua")
|
||||
-- manage quest variables: add, delete, manage access rights etc.
|
||||
dofile(modpath .. "fs_manage_variables.lua")
|
||||
dofile(modpath .. "fs/fs_manage_variables.lua")
|
||||
-- handle variables for quests for player-owned NPC
|
||||
dofile(modpath .. "quest_api.lua")
|
||||
-- GUI for adding/editing quests
|
||||
dofile(modpath .. "fs_manage_quests.lua")
|
||||
dofile(modpath .. "fs/fs_manage_quests.lua")
|
||||
-- GUI for adding/editing quest steps for the quests
|
||||
dofile(modpath .. "fs_manage_quest_steps.lua")
|
||||
-- used by the above
|
||||
@ -232,18 +232,18 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
dofile(modpath .. "fs_fashion.lua")
|
||||
-- properties for NPC without specific dialogs that want to make use of
|
||||
-- some generic dialogs
|
||||
dofile(modpath .. "api_properties.lua")
|
||||
dofile(modpath .. "fs_properties.lua")
|
||||
dofile(modpath .. "api/api_properties.lua")
|
||||
dofile(modpath .. "fs/fs_properties.lua")
|
||||
-- the main functionality of the mod
|
||||
dofile(modpath .. "functions.lua")
|
||||
-- implementation of the chat commands registered in register_once.lua:
|
||||
dofile(modpath .. "chat_commands.lua")
|
||||
-- creating and maintaining quests
|
||||
dofile(modpath .. "fs_quest_gui.lua")
|
||||
dofile(modpath .. "fs/fs_quest_gui.lua")
|
||||
-- export dialog for cut&paste in .json format
|
||||
dofile(modpath .. "fs_export.lua")
|
||||
dofile(modpath .. "fs/fs_export.lua")
|
||||
-- take notes regarding what the NPC is for
|
||||
dofile(modpath .. "fs_notes.lua")
|
||||
dofile(modpath .. "fs/fs_notes.lua")
|
||||
|
||||
-- show a list of all NPC the player can edit
|
||||
dofile(modpath .. "fs_npc_list.lua")
|
||||
|
Loading…
Reference in New Issue
Block a user