×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Module FAQ & Documentation
« ‹ 11 / 19 › »
Module FAQ & Documentation
Shamousey
« Consul »
1495131540000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#201
  0
^ This has been reported to the admins to deal with. For now if anyone is experiencing this issue, you can just force maps to not be flipped to avoid it from occurring for now.

Dernière modification le 1495131600000
Toilet_paper
« Citoyen »
1495651800000
    • Toilet_paper#6113
    • Profil
    • Derniers messages
#202
  0
How do I make a module?
Honorabilis
« Consul »
1495655880000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#203
  0
Spongyness a dit :
How do I make a module?

Imagine, program, share ;)
Sebafrancuz
« Consul »
1495657920000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#204
  1
Spongyness a dit :
How do I make a module?

Firstly you should learn Lua with tutorials on the Internet and by launching 'test codes' in tribe house.
Then learn how Lua in Transformice work.
And last step is imagine what you want to do and create code with Lua.
Alsalam_alaikum
« Citoyen »
1495896960000
    • Alsalam_alaikum#5209
    • Profil
    • Derniers messages
#205
  0
The player victory thing doesn't work (tfm.exec.playerVictory(playerName)).
Honorabilis
« Consul »
1495897740000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#206
  0
Fuzzyfirsdog a dit :
The player victory thing doesn't work (tfm.exec.playerVictory(playerName)).

Do u have all permissions to using Lua?
Onkei
« Citoyen »
1495908480000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#207
  0
Fuzzyfirsdog a dit :
The player victory thing doesn't work (tfm.exec.playerVictory(playerName)).

make sure you've given the person cheese (tfm.exec.giveCheese) before giving them victory first
Dramacorn
« Consul »
1496065020000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#208
  0
How can I attribute a field skill? For example when you put on a wood to dance
How can I make an area text just come after me? For example, I want a text that can do something like "dancing," and when you hit dancing, just come after me on the map and stay where I set it
Tunaxxl
« Censeur »
1497344700000
    • Tunaxxl#0000
    • Profil
    • Derniers messages
    • Tribu
#209
  0
Add more people to module team pls
Bralitisss
1497461820000
    • Bralitisss#0000
    • Profil
    • Derniers messages
    • Tribu
#210
[Modéré par Rutabega, raison : Please use the contact form if you wish to speak to the admins about this issue, or contact other mods from different communities if someone is breaking the rules.]
Honorabilis
1497462720000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#211
[Modéré par Rutabega, raison : Response ^]
Censere
« Consul »
1497561540000
    • Censere#0095
    • Profil
    • Derniers messages
    • Tribu
#212
  1
Shamousey a dit :
In order to execute your own script, you need to fit a couple of requirements; be in your tribe house, have the appropriate permissions to use the "/np" command, have over 1,000 cheese, and never be banned for hacking.

Apparently the requirements have changed somewhat; I am now able to run lua with these stats:

• # [*Seven Project] hello world
• # [*Seven Project] [Sevenlua] Lua script loaded in 1 ms (4000 max)

[•] You have played for 0 days, 15 hours, 19 minutes and 33 seconds. (/time)

• Cheese gathered first : 8
• Gathered cheese : 100
• Bootcamp : 84

I don't think these are the minimum requirements, but they're pretty close because I wasn't able to run lua on this account yesterday; I reckon the stat requirements are probably either 100 cheese or 12-15 hours of /time.

Dernière modification le 1497561600000
Barberserk
« Consul »
1498430340000
    • Barberserk#0000
    • Profil
    • Derniers messages
    • Tribu
#213
  0
Where can I suggest something about Unotfm? I can't find the thread.
Sebafrancuz
« Consul »
1498473060000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#214
  0
Barberserk a dit :
Where can I suggest something about Unotfm? I can't find the thread.

You can send PM to Ninguem, I think.
Ticktoxic
« Citoyen »
1498874940000
    • Ticktoxic#0930
    • Profil
    • Derniers messages
    • Tribu
#215
  0
Wonderful! I'm thinking about starting to code, could you teach me a bit more in pm?
Antonio
« Sénateur »
1498877580000
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#216
  0
Zamzie789 a dit :
Wonderful! I'm thinking about starting to code, could you teach me a bit more in pm?

Same here. I mastered python and finished my course of js. I want to learn lua to make modules on here.
Ticktoxic
« Citoyen »
1498878480000
    • Ticktoxic#0930
    • Profil
    • Derniers messages
    • Tribu
#217
  0
May I ask, how does a module know when there is one player left? If it's a script, what is it??
And, how do you give your module a name?
Onkei
« Citoyen »
1498903860000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#218
  0
Zamzie789 a dit :
May I ask, how does a module know when there is one player left? If it's a script, what is it??
And, how do you give your module a name?


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
30
31
32
33
34
35
function eventPlayerDied(died)
--[[
eventPlayerDied is an event that gets called whenever someone dies
(died = dead player's name)

We want to create a table of player names that are alive
(alive = table of player names).
]]
local alive = {}

for n, data in pairs(tfm.get.room.playerList) do
--[[
Loop through the entire room and insert the player's name
if they aren't dead.
]]
if not data.isDead then
table.insert(alive, n)
end
end

if #alive == 1 then
--[[
Checks if there's only one player alive.
#tablename gives the length of a table.
]]
end
end

function eventNewGame()
--[[
eventNewGame is an event that gets called whenever a new round starts.
]]

ui.setMapName("InsertModuleNameHere")
end
Arribugj
« Citoyen »
1499196480000
    • Arribugj#0000
    • Profil
    • Derniers messages
#220
  0
Nice post sorry for cite xD
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Module FAQ & Documentation
« ‹ 11 / 19 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27