Script Requests |
Aqwhalo « Citoyen » 1421804640000
| 0 | ||
When you Sham, you can use the "unreleased" items (like the LOOOOONG plank or the Triangular Box) |
Pmcfarhan « Citoyen » 1422274860000
| 0 | ||
How to do add speed of a mouse/all mice |
Drgenius « Citoyen » 1422583200000
| 0 | ||
pmcfarhan a dit : If I understand you correctly, there's no easy way. Here's a clunky script I wrote a while ago: Speedy a dit : Dernière modification le 1422583320000 |
Epicsouris « Citoyen » 1422833700000
| 0 | ||
How do I make a map rotation with '!' commands? If I say !sham, it plays certain dual shaman maps that I choose. If I say !racing, it plays certain racing maps that I choose. Ultimately, how do I make multiple map rotations with ChatCommand? Thanks. |
Woebegone « Citoyen » 1422888840000
| 0 | ||
Epicsouris a dit : shaman={1,2,3} racing={1,2,3} function eventChatCommand(name, cmd) if cmd == "sham" then tfm.exec.newGame(shaman[math.random(#shaman)]) elseif cmd == "racing" then tfm.exec.newGame(racing[math.random(#racing)]) end end For the red-colored parts, you can put in the maps for each rotation. For example, if you want maps 50, 51 and 52 in the dual shaman rotation and maps 64, 65 and 66 in the racing rotation it would look something like this: shaman={50,51,52} racing={64,65,66} If you want to put more maps, just add a comma next to the last map on the rotation and then put in the map number/code. |
0 | ||
Is it possible to: Do the dance emote, which then detects the players alive in the round, and prints all the names out to just that player who danced? EDIT: Thanks Drg :D Its working pretty good Dernière modification le 1423083840000 |
Epicsouris « Citoyen » 1422930420000
| 0 | ||
Juliantwofan a dit : How can I make it not random? Is there any way to make the maps go in order of how they are put in the table? Thanks EDIT Can I also have a map that drops random shaman items at specific points in the map. Possibly in the range of x:800 and y:30. Thanks again Dernière modification le 1422935940000 |
Frozakkii « Citoyen » 1422934560000
| 0 | ||
frozacky a dit : No body answered my request yet :( |
Drgenius « Citoyen » 1423050840000
| 0 | ||
frozacky a dit : What you're asking for is a bit vague, and if I understand what you want correctly, it would be akin to asking for a whole minigame to be made for you, which is something that I don't recommend doing, as most people aren't willing to do that. Onkei a dit : Unfortunately sending chat messages with Lua isn't possible in the tribe house. Here's a script that uses textAreas to do what you want, though: Dance For List Of Alive Players a dit : |
Illthezorua « Citoyen » 1423189800000
| 0 | ||
Can you make a script that allows down arrow to shoot cannons, space in air to double jump and M for meep in my Super Smash Bros map? Please and thanks. Map: @5780611 |
Frozakkii « Citoyen » 1423459140000
| 0 | ||
U can do those actions in utility. It would be very simple if the script is to set certain keystrokes to activate one special move. U should ask shamo or ppl good with utility to tell u the "LUA version" of each move you want to be activate per activation. |
Woebegone « Citoyen » 1423496640000
| 0 | ||
players = {} for name,player in pairs(tfm.get.room.playerList) do table.insert(players,name) end randomName = players[math.random(#players)] tfm.exec.giveCheese(randomName) for randomName in pairs(tfm.get.room.playerList) do x1 = tfm.get.room.playerList[randomName].x y1 = tfm.get.room.playerList[randomName].y end name = for name in pairs(tfm.get.room.playerList) do x2 = tfm.get.room.playerList[name].x y2 = tfm.get.room.playerList[name].y end How can I make "name" include everyone in the room that's not "randomName"? |
Bushmeister « Consul » 1423563600000
| 0 | ||
Juliantwofan a dit : Is it? players = {} for name,player in pairs(tfm.get.room.playerList) do table.insert(players,name) end randomName = players[math.random(#players)] tfm.exec.giveCheese(randomName) for randomName in pairs(tfm.get.room.playerList) do x1 = tfm.get.room.playerList[randomName].x y1 = tfm.get.room.playerList[randomName].y end name = table.concat(players, ", ") name = string.gsub(name, randomName..", ", "") print(name) for name in pairs(tfm.get.room.playerList) do x2 = tfm.get.room.playerList[name].x y2 = tfm.get.room.playerList[name].y end Or do you want to get coords of all players who aren't randomName? If yes, it will be another code. Dernière modification le 1423563960000 |
Asdasqwetra « Citoyen » 1423616340000
| 0 | ||
Juliantwofan a dit : players = {} for name in pairs(tfm.get.room.playerList) do table.insert(players,name) end randomName = math.random(#players) tfm.exec.giveCheese(players[randomName]) table.remove(players,randomName) ui.addTextArea(0,table.concat(players,"\n")) ^ Dernière modification le 1423616400000 |
0 | ||
Clicking the mouse to click on the destination irradiated to |
Fuzzyfoe « Citoyen » 1423924500000
| 0 | ||
Hi! I'm new to lua. I'm trying to make a script where you die if you jump, but it's not working. Here is the script: tfm.exec.[playerName] isJumping: true killPlayer Can somebody tell me what I did wrong? Thanks. |
Deimantexxxx « Citoyen » 1423939020000
| 0 | ||
Micearecute a dit : Full explanation: http://pastebin.com/VZUtfN7j function eventLoop() for name,player in pairs(tfm.get.room.playerList) do if tfm.get.room.playerList[name].isJumping == true then tfm.exec.killPlayer(name) end end end Dernière modification le 1423939200000 |
Fuzzyfoe « Citoyen » 1423946700000
| 0 | ||
Thanks! I have another question. So, I made this code to infinitely spawn sheep: function eventLoop() for name,player in pairs(tfm.get.room.playerList) do if tfm.get.room.playerList[name].isDead == false then tfm.exec.addShamanObject(40,100,100,10) end end end Sheep only spawn if the player is not dead, and if all players die, it goes to a new map anyway and sheep continue to spawn in the next map. But is there are two people in a room and one person dies, will it continue to run because one person is not dead, or will it stop running because somebody died? Dernière modification le 1423947540000 |
Velspar « Citoyen » 1424031060000
| 0 | ||
Script(Sorry if its sloppy or poorly commented, tried to comment as best i can) Been working on this when I can, its a simple voting system i wanted to make for fun and try out a lil bit of lua. When you run the script youll see 2 boxes appear, the top is the same for all players, the bottom is for your eyes only(same with the other players) Youll have the top line a question or something, then the votes will go down each line with their vote count. The bottom will give you help on the commands, .!YourVote and !rv to reset your voteand take away your count. Then itll show your current vote. The Problem... I cant seem to get the textarea to change without manually having to go in and set it up for each vote. Ive done 4 votes manually, but i want to be able to make more than 4 without manually changing the textarea functions. Everything else works perfect, this just doesnt seem possible to me. If anyone knows if it is, and how to do it, would really appreciate the knowledge xD Thanks in advance~ |
0 | ||
I need a script that removes the accentuation of player's input, in tfm when i type '!oí', it returns 'oᅢᆳ', is there a way to solve it? Dernière modification le 1424268540000 |