Lua Snippets |
Mikuhl « Citoyen » 1380226680000
| 3 | ||
Module API: Topic-365251 You can just copy and paste these into the tribe /lua box. Add conjuration with mouse click a dit : Add shaman object with mouse click a dit : Bind keyboard a dit : Send a chat message to everyone a dit : Send a chat message to the Shaman a dit : Send a chat message to everyone but the Shaman a dit : Kiss for cheese a dit : Give everyone Meep a dit : Mort a dit : Move player with mouse click a dit : Respawn Player a dit : [quote=Keep game time at 0:00] tfm.exec.disableAutoNewGame(true) tfm.exec.setGameTime(0) [/quote] [quote=Set name color (replace my name with yours, and ffffff with the hex code)] tfm.exec.setNameColor("Jaackster", 0xffffff) [/quote] Give everyone a random name color a dit : [quote=Make everyone a Shaman (Object spawning is bugged.)] for name,player in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(name) end [/quote] Make everyone a Vampire a dit : Make a random player a Vampire a dit : Make everyone a Shampire a dit : Make the shaman a Vampire by Shamousey a dit : Set UI text a dit : Make it snow a dit : Eternal Snow by Makinit a dit : ADVANCED SNIPPETS: [quote=Fly (Space) by Shamousey] function eventNewPlayer(name) tfm.exec.bindKeyboard(name,32,true,true) end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,false) end end [/quote] Simple Command a dit : Advanced Command a dit : makeTeams by Fxie a dit : Dernière modification le 1412280240000 |
Epicshawty « Citoyen » 1380226800000
| 0 | ||
thxz yo |
Irishcow « Citoyen » 1380226920000
| 0 | ||
Credits to Shamousey :) Mouse fly: function eventNewPlayer(name) tfm.exec.bindKeyboard(name,32,true,true) end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,false) end end |
Enginfener « Citoyen » 1380227160000
| 1 | ||
Oh ty Jaackster |
Shamousey « Consul » 1380227160000
| 2 | ||
Irishcow a dit : I'd passed that in /chat Lua so that a few people could learn from it ;) If anyone else wants some specific code snippets then feel free to ask! |
Irishcow « Citoyen » 1380227580000
| 0 | ||
Shamousey a dit : Ah ok, thanks! Jaackster a dit : Anyway someone could integrate shaman skills in this script? Would be pretty cool |
Mikuhl « Citoyen » 1380227700000
| 0 | ||
Irishcow a dit : Impossible, this may or may not be a bug with the setShaman. |
Enginfener « Citoyen » 1380227700000
| 1 | ||
a dit : ........ command |
0 | ||
^ That script will not work in your tribe house. Because you can't use "tfm.exec.chatMessage". Neither do you comment your text. If you want to comment something in your script add "--" before it. |
Eclair « Citoyen » 1380228060000
| 0 | ||
Thanks, Jack. :) |
Gilcatmey « Citoyen » 1380229620000
| 0 | ||
Thanks :D |
Hatoncat « Citoyen » 1380234240000
| 0 | ||
Well, I've 'mastered' map making, before they fucked up all of the glitches. Guess it's time for me to tackle Lua. |
Fourchin « Citoyen » 1380236400000
| 0 | ||
Fly lua gave me activity suspecte three times in a row. No actual ban, just a kick. |
Lightningwx « Citoyen » 1380241380000
| 0 | ||
still have no idea ... |
Hatoncat « Citoyen » 1380241920000
| 0 | ||
Fourchin a dit : Don't jump while using it. Just use the spacebar only. |
Xanmeow « Citoyen » 1380242040000
| 0 | ||
can you make a script that makes it say this: when you type !Xanmeow this happens: Xanmeow has a message! He says! MEOW AND HI!!! :D |
Hatoncat « Citoyen » 1380242400000
| 0 | ||
a dit : Copy and paste this: a dit : You can alter that in any way you want, as long as you only alter what is inside of the quatations. |
Shamousey « Consul » 1380242760000
| 0 | ||
Xanmeow a dit : function eventChatCommand(name,command) print(command.." has a message! He says MEOW AND HI!!! :D") end |
Hatoncat « Citoyen » 1380243420000
| 0 | ||
Shamousey, will you ever make a Tfm/Lua guide? I've been reading up on it, but trying to mix the two can be kind of tough. |
Shamousey « Consul » 1380243420000
| 0 | ||
Hatoncat a dit : I'm writing one right now! |