Open ksandronline opened 3 years ago
in 'HELP' button you can see use: speaker,msg = self.listen_msg(). That means that self.listen_msg returns 2 strings as output. if there was no new chat message it returns nil. So you can use it like:
if not init then init = true self.listen(1) end -- this will run only 1x and make robot start to listen speaker,msg = self.listen_msg() if msg then say(string.format("message from %s : %s", speaker,msg)) end
self.set_properties just uses minetest built-in function object:set_properties(object property table). So all problems are coming from there.
Good time.
I really like your basic_robot mod, I hope you will develop it further and support it.
I noticed a few peculiarities.
self. listen_msg () - works only in single-user mode. On the server, I can't use this function.
self.set_properties({ visual = "mesh", mesh = "character.b3d", textures = {"character.png"} })
You have turned out a very interesting mod. I really hope that it will not be difficult for you to solve these features.