| |
| « Citoyen » 1523341320000
| 0 | ||
| how do you add a physical object type = water but you can swim on it sorry for bad grammar |
| 0 | ||
| I need a script that when a player died on chat #lua it will say (player) just died! |
| 1 | ||
Overjoy06 a dit : Unfortunately, you can't create a water ground that's swimmable in lua (I think?). Here's an example of a water ground being created w lua though: Code Lua 1 2 3 4 5 6 7 8 9 tfm.exec.addPhysicObject(0, 200, 200, {Simon665 a dit : Code Lua 1 2 3 function eventPlayerDied(name) |
| « Citoyen » 1523347140000
| 0 | ||
| yeah i tried too. |
| « Citoyen » 1523366340000
| 0 | ||
Onkei a dit : leaving 5 seconds of the map and gaining space and play for the live mouse Dernière modification le 1523402880000 |
| « Citoyen » 1523415540000
| 0 | ||
| there's a textarea saying cannon turret now if you click it. It will spawn a cannon Coords = X : 1500 Y : 200 It will spawn a cannon on a loop. Dernière modification le 1523417940000 |
| « Citoyen » 1523479140000
| 0 | ||
Bolodefchoco a dit : Thanks again for this because I actually understand the match function. I used it for this too in a part of my module : Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 function eventPopupAnswer(popupID, n, answer) |
| « Consul » 1523537460000
| 0 | ||
Fuzzyfirsdog a dit : It's better to use string.find in that case Dernière modification le 1523537520000 |
| « Citoyen » 1525117680000
| 0 | ||
| How would i make an event only execute to the player that has the most points |
| « Sénateur » 1525117920000
| 0 | ||
Borntolol a dit : That depends. Would that be a "fast" loop or just once? Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 function event(player, score) |
| « Citoyen » 1525118460000
| 0 | ||
| itll loop every time a new game round starts ( not map ) |
| « Citoyen » 1525118820000
| 0 | ||
| Like um, lets say i wanted to make the highest scoring player a vampire or sham, how would i execute that because im pretty sure tfm.exec.setShaman() wont work |
| « Sénateur » 1525122600000
| 0 | ||
Borntolol a dit : Code Lua 1 2 3 4 5 6 7 8 9 10 function highscore() Dernière modification le 1525122660000 |
| « Citoyen » 1525157820000
| 0 | ||
| launcher = {Borntolol = true} i need a command that will make the launcher the sham, vamp or whatever i want it to be without writing tfm.exec.setShaman("Borntolol) do i just put launcher in there without the "" |
| « Consul » 1525174380000
| 0 | ||
Borntolol a dit : If you have an idea how to do, just try it and see the result. If it does not work try another idea. This is how can you learn the language. If you can not find any solution, ask; but try it yourself first. |
| 0 | ||
Borntolol a dit : The commands are : !sham - makes the launcher the shaman !vamp - makes the launcher the vampire Code Lua 1 2 3 4 5 6 7 8 9 10 11 Launcher={["Borntolol#0000"]=true}Dernière modification le 1525175040000 |
| « Citoyen » 1525189080000
| 0 | ||
| im dumb because i already knew how to do that, i just confused myself lol |
| « Citoyen » 1525190400000
| 0 | ||
| This won't work and i dont see why, ill put a small snippet of the part that doesnt work. Code Lua 1 2 3 4 5 Launcher={["Borntolol#0000"]=true} |
| « Sénateur » 1525192140000
| 1 | ||
Borntolol a dit : That happens. This is how we start ^_^ Borntolol a dit : There are some things you can do. Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 -- If the launcher has more than 1 user, then it's better to set then values, not indexes: Now, if it's only you, you may use: Code Lua 1 2 3 4 5 6 7 8 9 10 -- For the user that launches the script Anyways, your code is not wrong. The problem is that you didn't put the chunk in an event, so, as I said, it's only executed once. Code Lua 1 2 3 4 5 6 7 8 9 10 11 Launcher={["Borntolol#0000"]=true} |
| 1 | ||
| The lord has answered above :3 ↑ |