Ce site utilise les cookies pour améliorer votre expérience utilisateur.Je comprendsPolitique de Confidentialité
Lua Snippets |
![]() ![]() « Citoyen » 05/06/2014 10:42
| 0 | ||
._. i dont know how to make an map with no skills... |
0 | ||
Leafileaf a dit : You'd need to be apart of the module team to use it. Toyratz a dit : If you mean making a map that has no skills available for shamans then you cannot make a map with skills disabled as far as I know, but if you mean lua for disabling skills, try this tfm.exec.newGame() tfm.exec.disableAllShamanSkills(true) |
![]() ![]() « Censeur » 06/06/2014 17:12
| 0 | ||
Grinjr a dit : Members of the Module team have the same powers as regular members in tribe houses, hence even Module members can't use addImage() there. |
![]() ![]() « Citoyen » 07/06/2014 09:06
| 0 | ||
Grinjr a dit : Thanks i will make an minigame by using http://pastebin.com |
![]() 08/06/2014 04:28
| | ||
[Modéré par Yogiibear, raison : Double post, merged.] |
![]() ![]() « Citoyen » 09/06/2014 11:22
| 0 | ||
OMG what variable i wanna kknow |
![]() ![]() « Censeur » 09/06/2014 14:26
| 0 | ||
I skip the cheese to enter the slot |
![]() ![]() « Citoyen » 09/06/2014 20:07
| 0 | ||
Kiss for cheese a dit : I put a lua so people can use it |
![]() ![]() « Censeur » 10/06/2014 10:25
| 0 | ||
Williamkang a dit : dont work |
![]() ![]() « Citoyen » 12/06/2014 22:58
| 0 | ||
Fxie's edit-- Light = {"33"} function eventLoop(t,tr) for i=1, 800, 10 do tfm.exec.displayParticle(Light[math.random(#Light)],i,20,0,0,0,0,nil) end end |
![]() 13/06/2014 01:01
| | ||
[Modéré par Muffun] |
![]() ![]() « Citoyen » 13/06/2014 03:01
| 0 | ||
Fireyone a dit : I dont really get this |
![]() ![]() « Censeur » 13/06/2014 03:16
| 0 | ||
Fireyone a dit : Question: Why do you need to pick a random value out of a table that only contains one element? |
![]() ![]() « Citoyen » 14/06/2014 05:03
| 0 | ||
Trying to test math.randomseed I created a small code of a map rotation without repeat the same map every time when you load the code (which happens with math.random). [size=5]bad english sry local maps = {"1", "0", "3", "4", "5", "6", "7"} math.randomseed(os.time()) function startGame() local newMap; repeat newMap = maps[math.random(#maps)]; until newMap ~= tfm.get.room.currentMap tfm.exec.newGame (newMap) end startGame() I think it works correctly. Edit: idea of test math.randomseed from hina, tkm Dernière modification le 14/06/2014 14:18 |
![]() ![]() « Citoyen » 25/06/2014 12:57
| 0 | ||
Even though it's unuseful here Fireyone a dit : |
0 | ||
adding conjuration with ducking Duck to add conjuration a dit : Dernière modification le 15/07/2014 19:35 |
![]() ![]() « Citoyen » 04/08/2014 11:55
| 0 | ||
is it possible to make one certain person be able to infinity jump? e: oh my gosh I think I put this in the wrong thread wow I'm so sorry omg Dernière modification le 04/08/2014 12:16 |
0 | ||
Hey, im no use in lua so would anyone mind showing me what's needed to create a teleportation script? A script which only teleports 1 specific player. |
![]() ![]() « Citoyen » 28/08/2014 19:23
| 0 | ||
a dit : Just change the "tfm.exec.movePlayer(name, x, y, false, 0, 1, false)" So that it looks like "tfm.exec.movePlayer("Person You want to move", x, y, false, 0, 1, false)" Ex.) for name,player in pairs(tfm.get.room.playerList) do system.bindMouse("Badmanb", true) end function eventMouse(name, x, y) tfm.exec.movePlayer("Ahmedbob", x, y, false, 0, 1, false) end |
0 | ||
Jjaakkee a dit : Thanks |