Aaron Suen d042609b85 Player knowledge tracking system.
Track a list of all unique experiences a player has had with
various nodes.  This can be used for a hints/achievements system.
2018-11-03 20:58:49 -04:00

24 lines
475 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local nodecore
= nodecore
-- LUALOCALS > ---------------------------------------------------------
--[[
hint = {
name = "...",
req = { ...matchspec ... },
pass = { ...matchspec ... },
text = "..."
}
matchspec = {
["know:node:name"] = true,
["have:node:name"] = false,
...
}
--]]
nodecore.register_hint, nodecore.registered_hints = nodecore.mkreg()
function nodecore.get_hints(player)
end