moved yl_speak_up.precondition_check_variable to exec_eval_*

This commit is contained in:
Sokomine 2022-01-05 21:55:31 +01:00
parent 7b8e7f7322
commit 9a89c678f0
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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