diff --git a/exec_eval_preconditions.lua b/exec_eval_preconditions.lua index ce26740..3b7bd02 100644 --- a/exec_eval_preconditions.lua +++ b/exec_eval_preconditions.lua @@ -1,5 +1,13 @@ -- This file contains what is necessary to execute/evaluate a precondition. +-- some internal ones... +yl_speak_up.precondition_check_variable = { +-- "- please select -", -- this is automaticly added to the var list + "(internal) hour of ingame day", -- 2 + "(internal) player's health points", -- 3 +} + + -- this is called directly in yl_speak_up.get_fs_talkdialog -- it returns a list of options whose preconditions are fulfilled -- allow_recursion may be false - we need to avoid infinite loops diff --git a/fs_edit_preconditions.lua b/fs_edit_preconditions.lua index 0e2e990..5fdf11a 100644 --- a/fs_edit_preconditions.lua +++ b/fs_edit_preconditions.lua @@ -147,12 +147,6 @@ local values_operator = {"", "==", "~=", ">=", ">", "<=", "<", "not", "is_set", "more_than_x_seconds_ago","less_than_x_seconds_ago", "quest_step_done", "quest_step_not_done"} --- some internal ones... -yl_speak_up.precondition_check_variable = { --- "- please select -", -- this is automaticly added to the var list - "(internal) hour of ingame day", -- 2 - "(internal) player's health points", -- 3 -} -- get the list of variables the player has read access to