Skip to content
Snippets Groups Projects
Commit 8f6b5a3f authored by DarkGod's avatar DarkGod
Browse files

plop

parent 672e0cf8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -196,6 +196,12 @@ function _M:chatFormatActions(nodes, answer, node, stop_at)
end
return self:chatFormatActions(nodes, answer, getnext(), stop_at)
---------------------------------------------------------------------------
elseif node.name == "change-zone" then
local zone = nil
if node.data.zone ~= "--" then zone = node.data.zone end
add_action(function() game:changeLevel(tonumber(node.data.level), zone) end)
return self:chatFormatActions(nodes, answer, getnext(), stop_at)
---------------------------------------------------------------------------
elseif node.name == "not" then
if answer.cond then local old = answer.cond answer.cond = function(npc, player) return not old(npc, player) end
else answer.cond = function() return false end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment