| |
| « Citoyen » 1514231580000
| 0 | ||
| What about creating a Google Forms, because you can still check it, and when the form is activated you can simply remove the Google Forms? Lots of people wanna join but they can not :/ |
| « Sénateur » 1514232000000
| 2 | ||
| Yeah. I agree with your idea, actually, I've suggested this to the team a month ago, but no one answered yet. Unfortunately we'll all need to wait :/ |
| « Consul » 1514387820000
| 1 | ||
| New color tags: <N2> <PT> <CE> <CEP> <CS> <S> <A:ACTIVE> <PS> |
| « Citoyen » 1515812640000
| 0 | ||
| Can you tell me that is there a difference between normal lua and TFM lua. I mean if I learn lua can I make a module or do I need to learn anything else. |
| « Sénateur » 1515812820000
| 1 | ||
Hemant2002 a dit : TFM Lua is basically the Lua 5.1 with some Lua 5.2 functions (I recommend you to learn Lua 5.2) Lua on TFM provides some other functions, like giving cheese for the mice or things like that. An API. It also has some limitations: no io lib, no debug.setmetatable(), no require, no load(), no C functions, etc... Knowing lua is enough. After that you need to test the API functions and the events as TFM Lua looks like an event programming ^^' Check the lua tree, so you can see the available functions |
| « Citoyen » 1515820860000
| 0 | ||
| Thank you but can you give me a link beside those given in forum I can't learn from them for lua. More easy and good understanding. |
| « Consul » 1515842580000
| 1 | ||
Hemant2002 a dit : I think every link with tutorial would be hard for you, generally learning your first programming language is really hard. At the beginning you should look every Lua code and analize how it works. Then you should write as much scripts / codes as you can by using tutorial, which you'd learnt ( it's the easiest way to learn new language ). |
| « Sénateur » 1515852960000
| 0 | ||
Hemant2002 a dit : In sum of Seba said, the 'easiest' manual I know is the official one. It is the best documentation I've ever seen. https://www.lua.org/manual/5.2/manual.html. You can start from basics. Code Lua 1 2 3 4 5 6 7 function eventChatCommand(playerName, command) -- API + Lua |
| « Citoyen » 1516617240000
| 0 | ||
| Forgot to tell you it's not my 1st language in school I have being taught c++ which is half complete and I am the topper besides thay I know html and learning CSS. I wanted to learn this also but got stuck after some time of learning. So can anyone clear my doubts or refer to any other better thing. |
| « Sénateur » 1516632000000
| 0 | ||
Hemant2002 a dit : np! feel free to ask anything about lua ^_^ |
| « Citoyen » 1516701360000
| 0 | ||
| For now I didn't got loops and function. |
| « Sénateur » 1516730160000
| 2 | ||
Hemant2002 a dit : Let's compare with C++ @Noob codes for syntax purposes Code C++ 1 2 3 4 5 6 7 8 9 10 11 12 int addNumbers(int number1, int number2) Code Lua 1 2 3 4 5 6 7 function addNumbers(number1, number2) and Code C++ 1 2 3 4 5 6 7 int main() Code Lua 1 2 3 for i = 0, 9 do and Code C++ 1 2 3 4 5 6 7 8 9 10 int main() = Code Lua 1 2 3 4 numbers = {0, 10, 20, 30, 40, 45, 50} |
| 0 | ||
| try www.lua-users.org. But the only problem is what are metastables |
| « Censeur » 1517036760000
| 0 | ||
| How to write something on the chat panel? print() isnt showing anything to others |
| « Sénateur » 1517079900000
| 0 | ||
Indika123 a dit : You must use tfm.exec.chatMessage(message, playerName), but it is allowed for lua team members only |
| 0 | ||
| How to get the position(X and Y position) of players or objects? |
| « Sénateur » 1517315640000
| 0 | ||
Mouseclick1 a dit : tfm.get.room.playerList[player_name].X tfm.get.room.playerList[player_name].Y tfm.get.room.objectList[id].X tfm.get.room.objectList[id].Y |
| 0 | ||
| what are metatables? Can we use them in tfm (I didn't see them in Lua tree) |
| « Sénateur » 1517409420000
| 0 | ||
Mouseclick1 a dit : I had a thread about them on BR. The translators team are translating the topic. I'll make sure to quote you again with the link later ^_^ here it is Dernière modification le 1517430960000 |
| « Censeur » 1517454000000
| 0 | ||
| How to get the list of the players in a room? |