![]() ![]() |
![]() ![]() « Citoyen » 1378568400000
| 0 | ||
How to tigger a team using tfm.exec.giveCheese and tfm.exec.playerVictory ? Also eventPlayerdied(playerName) for a hole team |
0 | ||
for i,name in ipairs(teams[1]) do tfm.exec.giveCheese(name) tfm.exec.giveVictory(name) end for i,name in ipairs(teams[2]) do tfm.exec.killPlayer(name,x,y) end That's pretty obvious if you learned anything from my last post. If not, I suggest you do, because others will not be able to write your code for you in the long run. Learn from what I'm giving you, don't just keep asking for more. |
![]() ![]() « Citoyen » 1378569300000
| 0 | ||
Fxie a dit : I did , but i want to be sure that what i typed is right . |
![]() ![]() « Citoyen » 1378594560000
| 0 | ||
Fxie a dit : so is that one player or 2 players remaining confuzzled |
0 | ||
Fxie a dit : In other words, if there's more than one (it won't bother checking for more if there's two because what's the point?) then it does nothing. If there is only one alive, they win. The "last person standing!" should be a dead giveaway to that. |
![]() ![]() « Citoyen » 1378613580000
| 0 | ||
Fxie a dit : Thanks. |
![]() ![]() « Citoyen » 1378738380000
| 0 | ||
Thanks Shamousey "-" |
![]() ![]() « Citoyen » 1378762320000
| 0 | ||
Nice*-* |
![]() ![]() « Consul » 1379266680000
| 0 | ||
Feel free to ask any questions in /chat Lua if you need any help, a lot of members of the Lua Team and good coders that aren't in it will be hanging around there. |
![]() ![]() « Citoyen » 1379280360000
| 0 | ||
thanks you *-* |
![]() ![]() « Citoyen » 1379514480000
| 0 | ||
can anyone explain how to use it in tribehouse /lua then what etc...? |
![]() ![]() « Citoyen » 1379535960000
| 0 | ||
Augustinas a dit : /lua doesnt currently work in tribe houses, and submitting anything into the /lua box wont do anything unless your a lua team member. |
![]() ![]() « Citoyen » 1379586900000
| 0 | ||
Jaackster a dit : Augustinas a dit : However you can run official and non-official predefined modules in tribehouses. use /module modulenamehere |
![]() ![]() « Citoyen » 1379723520000
| 0 | ||
can i join plz plz plz |
![]() ![]() « Consul » 1379723880000
| 0 | ||
Jaackster a dit : "currently" Bouncytree a dit : Do you know Lua, or another programming language? |
![]() ![]() « Censeur » 1379784660000
| 0 | ||
for setGameTime in (tfm.get.room.time) do tfm.exec.setGameTime (240) end am i doing right? derp |
![]() ![]() « Citoyen » 1379784780000
| 0 | ||
tfm.get.room.time isn't a table |
![]() ![]() « Citoyen » 1379795820000
| 0 | ||
Methusalah a dit : If you just wanted to set the time you would do. tfm.exec.setGameTime(240) |
![]() ![]() « Citoyen » 1380194040000
| 0 | ||
|
![]() ![]() « Citoyen » 1380194280000
| 0 | ||
Baasbase a dit : A highly expected update! Good to know it's here. I hope they don't make us pay to use it. |