yl_speak_up/quest_api.lua

23 lines
766 B
Lua

-- just some handling of variables
yl_speak_up.player_vars = {}
-- get the value of a variable used by a player in an NPC
yl_speak_up.get_quest_variable_value = function(owner_name, current_player_name, variable_name)
-- TODO: actually implement
return tostring(owner_name).." "..tostring(current_player_name).." "..tostring(variable_name)
end
-- which variables can player pname read and use in preconditions?
yl_speak_up.get_quest_variables_with_read_access = function(pname)
-- TODO: actually implement
return {"var_1","var_2","var_3", "var_4"}
end
-- which variables can player pname write and use in effects/results?
yl_speak_up.get_quest_variables_with_write_access = function(pname)
-- TODO: actually implement
return {"var_1","var_2","var_3"}
end