Track a list of all unique experiences a player has had with various nodes. This can be used for a hints/achievements system.
24 lines
475 B
Lua
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
|