Lua Snippets |
Toyratz « Citoyen » 1401964920000
| 0 | ||
._. i dont know how to make an map with no skills... |
Grinjr « Citoyen » 1402068840000
| 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) |
Safwanrockz « Censeur » 1402074720000
| 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. |
Toyratz « Citoyen » 1402131960000
| 0 | ||
Grinjr a dit : Thanks i will make an minigame by using http://pastebin.com |
Toyratz 1402201680000
| | ||
[Modéré par Yogiibear, raison : Double post, merged.] |
Toyratz « Citoyen » 1402312920000
| 0 | ||
OMG what variable i wanna kknow |
Enesxfbxpro « Censeur » 1402323960000
| 0 | ||
I skip the cheese to enter the slot |
Williamkang « Citoyen » 1402344420000
| 0 | ||
Kiss for cheese a dit : I put a lua so people can use it |
Enesxfbxpro « Censeur » 1402395900000
| 0 | ||
Williamkang a dit : dont work |
Fireyone « Citoyen » 1402613880000
| 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 |
Potocopo 1402621260000
| | ||
[Modéré par Muffun] |
Xanmeow « Citoyen » 1402628460000
| 0 | ||
Fireyone a dit : I dont really get this |
Safwanrockz « Censeur » 1402629360000
| 0 | ||
Fireyone a dit : Question: Why do you need to pick a random value out of a table that only contains one element? |
+Eliaseeg « Citoyen » 1402722180000
| 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 1402755480000 |
Fireyone « Citoyen » 1403701020000
| 0 | ||
Even though it's unuseful here Fireyone a dit : |
Daryan « Citoyen » 1405452840000
| 0 | ||
adding conjuration with ducking Duck to add conjuration a dit : Dernière modification le 1405452900000 |
Emberkitx « Citoyen » 1407153300000
| 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 1407154560000 |
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. |
Jjaakkee « Citoyen » 1409253780000
| 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 |