2016-12-18 12:32:39 -05:00
|
|
|
-- Advanced NPC mod by Zorman2000
|
2016-11-14 06:28:37 -05:00
|
|
|
local path = minetest.get_modpath("advanced_npc")
|
2016-11-12 07:06:09 -05:00
|
|
|
|
|
|
|
-- Intllib
|
|
|
|
local S
|
|
|
|
if minetest.get_modpath("intllib") then
|
|
|
|
S = intllib.Getter()
|
|
|
|
else
|
|
|
|
S = function(s, a, ...)
|
|
|
|
if a == nil then
|
|
|
|
return s
|
|
|
|
end
|
|
|
|
a = {a, ...}
|
|
|
|
return s:gsub("(@?)@(%(?)(%d+)(%)?)",
|
|
|
|
function(e, o, n, c)
|
|
|
|
if e == ""then
|
|
|
|
return a[tonumber(n)] .. (o == "" and c or "")
|
|
|
|
else
|
|
|
|
return "@" .. o .. n .. c
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
mobs.intllib = S
|
|
|
|
|
2016-11-29 04:27:07 -05:00
|
|
|
dofile(path .. "/npc.lua")
|
2017-03-27 11:08:18 -04:00
|
|
|
dofile(path .. "/spawner.lua")
|
2016-12-11 20:52:57 -05:00
|
|
|
dofile(path .. "/relationships.lua")
|
2016-12-01 14:37:00 -05:00
|
|
|
dofile(path .. "/dialogue.lua")
|
2016-12-11 20:52:57 -05:00
|
|
|
dofile(path .. "/trade/trade.lua")
|
|
|
|
dofile(path .. "/trade/prices.lua")
|
2016-12-18 12:32:39 -05:00
|
|
|
dofile(path .. "/actions/actions.lua")
|
|
|
|
dofile(path .. "/actions/places.lua")
|
2017-01-06 07:57:42 -05:00
|
|
|
dofile(path .. "/actions/pathfinder.lua")
|
2017-04-04 10:20:19 -04:00
|
|
|
dofile(path .. "/actions/jumper.lua")
|
2017-01-09 11:34:38 -05:00
|
|
|
dofile(path .. "/actions/node_registry.lua")
|
2017-03-18 10:32:37 -04:00
|
|
|
dofile(path .. "/random_data.lua")
|
2016-11-12 07:06:09 -05:00
|
|
|
|
2016-12-18 12:32:39 -05:00
|
|
|
print (S("[Mod] Advanced NPC loaded"))
|