Module API FAQ |
Safwanrockz « Censeur » 1381945800000
| 0 | ||
Shamousey a dit : oh my god is that cookie clicker. |
Shamousey « Consul » 1382012640000
| 0 | ||
I updated the FAQ with more information, updated information, and a quick pointer to get people started off. |
Sandermr « Citoyen » 1382019420000
| 0 | ||
When a scripted module code is activated in the tribehouse and everyone leaves the tribehouse is the code deactivated? |
0 | ||
Yes when the last person leaves the tribe room the script gets unloaded. |
Epinine « Citoyen » 1382035440000
| 0 | ||
Lua team, i've got an idea for a minigame! Basically, it's when everybody in the whole room is a shaman and they've got all command powers. Commands: .!cheese .!double ffa (double cannons) and those are all. All are limited the same. Nobody can build! In the spawn list they can only spawn runes and cannons, no body can use thier totems. To spawn a !double ffa you've got to duck or press space.You can also fly. but you can only fly to the amount where all the info is ex.:Shamousey - @4384778 | Time left : 02:51 | Mice : 12 | Shaman : Lujil | Mice Left : 11 Bye! HOPE YOU LIKE IT!!! The names ,if you use it the name is Spawnrace |
0 | ||
Jsilv a dit : Perhaps I should post this here because it is more Module API - ish. Any of you LUA Devs or anyone else know? :p |
Shamousey « Consul » 1382232540000
| 0 | ||
Jsilv a dit : There's not any set criteria to go by, but there are several things to note. Any way to abuse the game (getting free cheese or using mod messages, etc.), a game without EN/BR translations or clear gameplay, no gameplay at all, etc. will all result in a "no". There have been other reasons too, and exceptions. #utility was accepted despite no gameplay, #spiritual was originally declined due to Atelier's plans to make their own shaman minigame, #bafflua was initially accepted and then later made unofficial due to limitations (2 modules per dev) being lifted. |
0 | ||
I never knew that #utility was official but thanks for the clear answer Shamo! Also, there used to be a rule where you could only have two official modules per LUA dev? |
Shamousey « Consul » 1382276580000
| 0 | ||
Well the definitions are a little bit flaky right now, but there's a small explanation in the opening post of what official/unofficial/approved/unapproved modules are. #utility is unofficial -by this definition. a dit : And yes, each Lua dev only used to be able to have two official modules each, but once unoffical modules were brought out that restriction was lifted. |
Sandermr « Citoyen » 1382291160000
| 0 | ||
Hi, could someone help me with my Team deathmatch code? http://pastebin.com/6t4FRQVi There's no error. It's just not working properly, for example, if every red team player dies it doesn't print "Blue team wins!", which is what I want it to do (for now atleast). |
Shamousey « Consul » 1382292960000
| 0 | ||
Sandermr a dit : The problem here is the tables. You're using table.insert() to put items into the table, which automatically makes a numbered index. You're later looping through with pairs(), which uses key,value, and you're checking if the is a table and has an "isDead" value. This is basically the same as saying "if not Shamousey.isDead then", which is pretty useless. The player's name would have to be parsed through playerList again, try "if not tfm.get.room.playerList[player].isDead then". |
Sandermr « Citoyen » 1382293620000
| 0 | ||
Shamousey a dit : Ahhhh thank you soooo much I really appreciate it since I'm still learning |
Yapale « Citoyen » 1382293740000
| 0 | ||
Shamousey a dit : ily just how did you |
Storzl « Citoyen » 1382379600000
| 0 | ||
Wait nvm |
Shamousey « Consul » 1382380020000
| 0 | ||
Storzl a dit : This isn't possible and Tig said it's very unlikely to happen in the near future. |
Epinine « Citoyen » 1382383860000
| 0 | ||
Btw , on forums it sais • There is no "Your last message is the same.". i was in utility and i tried to write the same thing, it turned out like [Epinine] lol Quiet, thank you. Your last message is the same. Your last message is the same. Your last message is the same. |
Shamousey « Consul » 1382545380000
| 0 | ||
Epinine a dit : Sorry, I didn't clarify when exactly this happens - it only works in unapproved modules. Animjarcanin a dit : That's a string, so you'd have to do tfm.exec.newGame("#4"), but this doesn't work in the tribe house. |
Eliaseeg « Citoyen » 1382769780000
| 0 | ||
Edit; Fail D: |