Module API FAQ |
Podoko « Citoyen » 1399395420000
| 0 | ||
It's a bug that had been removed in april the 28th. Looks like the admins restored it a few days ago. a dit : |
0 | ||
How can we learn tfm's Lua if we can't use many functions and events ? |
Gabrijelr « Citoyen » 1399472880000
| 0 | ||
Aritxy a dit : You can program minigames for you tribe, and you can use 90% of all the events and functions. |
0 | ||
Gabrijelr a dit : Yes, but with the Module they wanted to have more official minigames, if we can't use those functions that aren't available, we don't know how do they work and we can't do more minigames and we can't be part of the module team |
Gabrijelr « Citoyen » 1399493760000
| 0 | ||
Aritxy a dit : You can apply for the module team here: CLICK ME! |
Yteizz « Citoyen » 1399762140000
| 0 | ||
As is transformed into another animal #control? |
Gabrijelr « Citoyen » 1399810680000
| 0 | ||
Yteizz a dit : You can only do that if you are in the module team. They have rights to load images. The Nyan Cat gif is just loaded over players corfinates like this: a dit : |
Shamousey « Consul » 1399815420000
| 0 | ||
Gabrijelr a dit : Minor nitpicking but someone may find it useful, only images uploaded to imgur can be used in tfm.exec.addImage(). If you wanted to use http://i.imgur.com/1Sg9gfU.png for example, you'd need to only put in the file name, 1Sg9gfU.png Also, the top-left of the image is aligned to the center of the mouse, meaning that you'd need to offset the image by half the height and width of the full image. tfm.exec.addImage("1Sg9gfU.png","%"..name,-21,-30) |
0 | ||
% and $ are both? |
Shamousey « Consul » 1399839180000
| 0 | ||
Zzmacth a dit : % Replaces the mouse graphic. $ adds an image next to the mouse graphic. |
Gabrijelr « Citoyen » 1399892340000
| 0 | ||
Shamousey a dit : I'm sorry for that, I'm not in the Module Team so I haven't tested it.(I didn't even think about that) |
0 | ||
Hey. I'm confused because shamo, you gave an example of an image, but another people says that is like this: a dit : Wich is the correct? |
Makinit « Citoyen » 1400848620000
| 0 | ||
Aritxy a dit : It's in the documentation: Topic-451587 a dit : |
Shamousey « Consul » 1400862720000
| 0 | ||
Aritxy a dit : That's exactly the same, except they're using a basic table and function for it too. The addImage() function is still the same. |
Figurar « Citoyen » 1400895480000
| 0 | ||
When I press TAB, open the messagem for everyone. Ho I make to appear just 4me? @edit: just for the mice then start the function. |
Skynanners « Citoyen » 1400952960000
| 0 | ||
How to fix 134: 'end' expected (to close 'if' at line 17) sorry im just a noob |
Gabrijelr « Citoyen » 1400957040000
| 0 | ||
Skynanners a dit : Just add another "end" on the last line of your code like this: a dit : You're probably wondering why. Every function needs to end, so you put "end" in your code so the computer knows you're closing that function and it will do whatever you told him to do in that function. But you also need to "end" your "if" statements. You should not use end for "else" or"elseif" statements. If you know something about Java or similar programming languages, you notice you need to use { and }brackets. Those are somewhat similar to "end" and you can compare it to Lua. |
Shamousey « Consul » 1400958180000
| 0 | ||
|
Gabrijelr « Citoyen » 1400958540000
| 0 | ||
Shamousey a dit : Oh my God! I'm still laughing. |
Crazysushi « Citoyen » 1401647340000
| 0 | ||
How do you undo a module in a tribe? Is there like an " /unmodule #utility " thing I could say? |