×

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
  • /
  • [Lua] Partagez vos jeux/codes ici !
« ‹ 2 / 41 › »
[Lua] Partagez vos jeux/codes ici !
Alkiro
« Citoyen »
1380209400000
    • Alkiro#0000
    • Profil
    • Derniers messages
    • Tribu
#21
  0
Manacer a dit :
Aller tener :

tfm.exec.giveCheese("TONPSEUDO")

tfm.exec.giveMeep("YourName")

tfm.exec.setUIMapName("Hello")

tfm.exec.setUIShamanName("Hello")

tfm.exec.snow()

Jcomprend rien x_x
Varuscristal
1380209400000
    • Varuscristal#0000
    • Profil
    • Derniers messages
#22
[Modéré par Nihoshi, raison : Hors-sujet]
Rayanoche
1380209520000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#23
[Modéré par Nihoshi, raison : Hors-sujet]
Manacer
« Citoyen »
1380209520000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
tfm.exec.giveCheese("YourName")

tfm.exec.giveMeep("YourName")

tfm.exec.setUIMapName("Hello")

tfm.exec.setUIShamanName("Hello")

tfm.exec.snow()


Tu copie colle en /lua remplace yourname par ton pseudo par exemple pour le premier et t'aura le from --'
Ski
« Censeur »
1380209520000
    • Ski#5535
    • Profil
    • Derniers messages
#25
  0
Salut, est-ce que ce code est juste ou pas ? o/
if positionX>10 thenpositionX=positionX-1 (juste pour placer quelque chose))
Rayanoche
1380209520000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#26
[Modéré par Nihoshi, raison : Hors-sujet]
Varuscristal
1380209640000
    • Varuscristal#0000
    • Profil
    • Derniers messages
#27
[Modéré par Nihoshi, raison : Hors-sujet/Provocation]
Rayanoche
1380209640000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#28
[Modéré par Nihoshi, raison : Hors-sujet]
Juliiien
« Citoyen »
1380210000000
    • Juliiien#0000
    • Profil
    • Derniers messages
    • Tribu
#29
  0
J'ai une petite idée de minijeu, je m'y mettrais dans quelques jours *-*

En attendant j'ai hâte de tester vos codes :DDD
Manacer
« Citoyen »
1380210000000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#30
  0
function eventChatCommand(playerName,command)
if command=="help" then
tfm.exec.chatMessage("Here's some help for you,"..playerName.."! In this game, you must dodge all cheese.")
end
end
function eventPlayerGetCheese(playerName)
tfm.exec.chatMessage("Cheese Obtained! Goodbye :3",playerName)
tfm.exec.killPlayer(playerName)
end
function eventNewPlayer(playerName)
tfm.exec.chatMessage("Welcome to <ROSE>#dodgecheese<BL>, where you have to dodge the cheese. Type <N>!help<ROSE> for help.")
end
function eventNewGame()
tfm.exec.disableAutoNewGame(true)
tfm.exec.setGameTime(50)
end
tfm.exec.newGame("@4272250")

-----
Faut éviter les froms sinon on meurt ! :D
Rayanoche
« Citoyen »
1380210120000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#31
  0
Manacer a dit :
function eventChatCommand(playerName,command)
if command=="help" then
tfm.exec.chatMessage("Here's some help for you,"..playerName.."! In this game, you must dodge all cheese.")
end
end
function eventPlayerGetCheese(playerName)
tfm.exec.chatMessage("Cheese Obtained! Goodbye :3",playerName)
tfm.exec.killPlayer(playerName)
end
function eventNewPlayer(playerName)
tfm.exec.chatMessage("Welcome to &amp;amp;lt;ROSE&amp;amp;gt;#dodgecheese&amp;amp;lt;BL&amp;amp;gt;, where you have to dodge the cheese. Type &amp;amp;lt;N&amp;amp;gt;!help&amp;amp;lt;ROSE&amp;amp;gt; for help.")
end
function eventNewGame()
tfm.exec.disableAutoNewGame(true)
tfm.exec.chatMessage("Get the cheese!")
tfm.exec.setGameTime(50)
end
tfm.exec.newGame("@4272250")

-------
Code qui marche à moitié tener '-'

Si tu l'organisais bien ? On comprends rien.
Manacer
« Citoyen »
1380210120000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Rayanoche a dit :
Si tu l'organisais bien ? On comprends rien.

Tu load sa en /lua --'
Rayanoche
« Citoyen »
1380210300000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#33
  0
Manacer a dit :
Tu load sa en /lua --'

Je suis pas bete.
Manacer
« Citoyen »
1380210300000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#34
  0
tfm.exec.newGame("@3699797")
tfm.exec.setGameTime(600, true)
debug.disableEventLog(true)

adminNames = {"Finalnova","Shamousey"}

GreenTeam = { }
YellowTeam = { }
RedTeam = { }
BlueTeam = { }
TeamDelay = os.time()
TeamRound = os.time()
RoundTime = 15000
TeamRs = false
TeamSc = 0

--[[Question list]]--

Q = { }
Q[0] = { "What colour is the sky?","Blue" }
Q[1] = {"Who draws the art for Transformice?","Melibellule"}
Q[2] = {"What is the chemical compound for regular water?","H20"}
Q[3] = {"What year did Transformice open?","2010"}
Q[4] = {"What was the predecessor game to Transformice called?","Poisson"}
Q[5] = {"What\'s the name of the company that owns Transformice?","Atelier 801"}
Q[6] = {"How many nipples do most people have?","2"}
Q[6] = {"What\'s the name of the main developer for Transformice?","Tigrounette"}
Q[7] = {"What\'s the name of Google\'s browser?","Chrome"}
Q[8] = {"What physics engine is Transformice based on?","Box2D"}
QMax = 8
QCurrent = math.random(0,QMax)

--[[Question list end]]--

function eventNewGame()
GreenTeam = { }
YellowTeam = { }
RedTeam = { }
BlueTeam = { }
TeamDelay = os.time()
TeamRound = os.time()
RoundTime = 15000
TeamRs = false
TeamSc = math.random(1,4)
tfm.exec.chatMessage("<ROSE><B>A new round has started!</B>")
end

function eventLoop(time)

--[[ Team placer ]]--

if (TeamDelay + 5000 < os.time()) then
for playerName,player in pairs(tfm.get.room.playerList) do
if (player.x > 0 and player.x < 165) then
tfm.exec.chatMessage("<T><b>You're on the green team.</b>",playerName)
table.insert(GreenTeam,1,playerName)
elseif (player.x > 165 and player.x < 365) then
tfm.exec.chatMessage("<J><b>You're on the yellow team.</b>",playerName)
table.insert(YellowTeam,1,playerName)
elseif (player.x > 365 and player.x < 565) then
tfm.exec.chatMessage("<R><b>You're on the red team.</b>",playerName)
table.insert(RedTeam,1,playerName)
elseif (player.x > 565 and player.x < 800) then
tfm.exec.chatMessage("<BV><b>You're on the blue team.</b>",playerName)
table.insert(BlueTeam,1,playerName)
end
end
TeamDelay = os.time() + 600000

TeamRs = true
end

--[[ What happens each round ]]--

if TeamRs == true then
if TeamSc == 1 then
for index,playerName in pairs(GreenTeam) do
tfm.exec.chatMessage("<T>It is your turn to answer a question.", playerName)
tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName)
end
elseif TeamSc == 2 then
for index,playerName in pairs(YellowTeam) do
tfm.exec.chatMessage("<J>It is your turn to answer a question.", playerName)
tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName)
end
elseif TeamSc == 3 then
for index,playerName in pairs(RedTeam) do
tfm.exec.chatMessage("<R>It is your turn to answer a question.", playerName)
tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName)
end
elseif TeamSc == 4 then
for index,playerName in pairs(BlueTeam) do
tfm.exec.chatMessage("<BV>It is your turn to answer a question.", playerName)
tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName)
end
end
TeamRs = false
TeamSc = TeamSc + 1
if (TeamSc == 5) then
TeamSc = 1
end

--[[ The time each round ]]--

elseif (TeamRound + RoundTime < os.time()) then
TeamRs = true
TeamRound = os.time()
end
end


function eventChat(name , command)
command=command:lower()
if command == 'help' then
tfm.exec.chatMessage([[<J>Welcome to Team Quiz, this is a game where you have to answer questions with your team.]], name)
end

for index,playerName in pairs(adminNames) do
if (command == 'newgame' and playerName == name) then
tfm.exec.newGame('@3699797')
tfm.exec.setGameTime(600, true)
end
if command == 'tgreen' then
tfm.exec.movePlayer(playerName,91,330,0,0,0,0)
end
if command == 'tyellow' then
tfm.exec.movePlayer(playerName,291,330,0,0,0,0)
end
if command == 'tred' then
tfm.exec.movePlayer(playerName,491,330,0,0,0,0)
end
if command == 'tblue' then
tfm.exec.movePlayer(playerName,691,330,0,0,0,0)
end

end

if command == 'test' then
for index,playerName in pairs(BlueTeam) do
tfm.exec.chatMessage("It is your turn to answer a question.", playerName)
end
end

end

function eventNewPlayer(name)
tfm.exec.chatMessage("<J><b>Welcome to Team Quiz, type</b> <ROSE><b>!help</b> <J><b>into the chat if you're stuck. This is not complete yet, so if it seems like features are missing, they probably are.</b>", name)
end
-----
Code qui bug :(
Deathmatic
« Citoyen »
1380210420000
    • Deathmatic#0000
    • Profil
    • Derniers messages
#35
  0
J'ai fait un petit code qui permet de charger une carte sans passer par /np. :p
function eventNewPlayer(playerName)
tfm.exec.bindKeyboard(playerName,80,true)
ui.addTextArea(0, "Appuyez sur P pour jouer une map", playerName, 0, 20, 120, 35, 0x6A7495, 0x6A7495, 0.5f)
end

function eventNewGame()
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(p,80,true)
ui.addTextArea(0, "Appuyez sur P pour jouer une map", p, 0, 20, 120, 35, 0x6A7495, 0x6A7495, 0.5f)
end
end

function eventKeyboard(playerName, keyCode, True, x, y)
ui.addPopup(0, 2, "Entrez le code de la map que vous voulez jouer :", playerName, 300, 150, 200)
end

function eventPopupAnswer(popupId, playerName, answer)
if popupId==0 then
tfm.exec.newGame(answer)
end
end
Atterisage
« Citoyen »
1380210420000
    • Atterisage#0000
    • Profil
    • Derniers messages
#36
  0
Même si tu réussirais on t'attaquerai en justice pour avoir repris le jeu ^.^' (sans autorisation)
Symnz
« Citoyen »
1380210420000
    • Symnz#0000
    • Profil
    • Derniers messages
    • Tribu
#37
  0
Il y a un code pour faire passer des cartes p3 en maison de tribu ? (sans cham et 6min)
Rayanoche
« Citoyen »
1380210420000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#38
  0
J'ai une super idée... Je vais essayer de faire le jeu poisson.

Atterisage a dit :
Même si tu réussirais on t'attaquerai en justice pour avoir repris le jeu ^.^' (sans autorisation)

Ah oui, pas faux...


Mais en Maison de tribu on a le droit ?

Dernière modification le 1491734640000
Rayanoche
1380210420000
    • Rayanoche#0000
    • Profil
    • Derniers messages
#39
[Modéré par Nitenrock, raison : Double-post.]

Dernière modification le 1491734640000
Juliiien
« Citoyen »
1380210540000
    • Juliiien#0000
    • Profil
    • Derniers messages
    • Tribu
#40
  0
Symnz a dit :
Il y a un code pour faire passer des cartes p3 en maison de tribu ? (sans cham et 6min)

Oui c'est possible. Il y a un module ou tu pouvais choisir le temps que tu voulais sur la map, il suffit juste de chercher un peu et de trouver la bonne ligne de code !
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Lua] Partagez vos jeux/codes ici !
« ‹ 2 / 41 › »
© Atelier801 2018

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

Version 1.27