×

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
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 22 / 39 › »
Tópico de Dúvidas
Carludd
« Citoyen »
1410045300000
    • Carludd#0000
    • Profil
    • Derniers messages
#421
  0
mortadelw a dit :
Como que cria script

Comentário 4:20 _\|/_

sendo monstrao
Amandaxn
« Citoyen »
1410106200000
    • Amandaxn#0000
    • Profil
    • Derniers messages
#422
  0
Me esprica uma coisa oq é scripts ?
Gutigusta
« Citoyen »
1410185760000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#423
  0
Queria um script com mapas vanillas sem shaman tempo inicial 2:00 quando ficasse dois ratos tempo iria automaticamente para 00:20 segundos e os pontos nunca zerassem
Carludd
« Citoyen »
1410186120000
    • Carludd#0000
    • Profil
    • Derniers messages
#424
  0
Gutigusta a dit :
Queria um script com mapas vanillas sem shaman tempo inicial 2:00 quando ficasse dois ratos tempo iria automaticamente para 00:20 segundos e os pontos nunca zerassem

aí menor eu fiz mas num sei se funciona n

--Vanilla
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)

mapas={1,0,3}
mapa=math.random(#mapas)

function newgame()
tfm.exec.newGame(mapas[mapa])
end

function eventLoop(time,remaining)
if remaining<=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==2 then
tfm.exec.setTimeLeft(20)
elseif i==0 then
newgame()
end
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end
Gutigusta
« Citoyen »
1410265440000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#425
  0
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Tempo: Começa com 02:00 minutos, após ficar apenas 2 ratos o tempo ir automaticamente para 00:20 segundos
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."
Gutigusta
1410265440000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#426
[Modéré par Alriy]
Carludd
« Citoyen »
1410265620000
    • Carludd#0000
    • Profil
    • Derniers messages
#427
  0
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Tempo: Começa com 02:00 minutos, após ficar apenas 2 ratos o tempo ir automaticamente para 00:20 segundos
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Muito grande.
Gutigusta
« Citoyen »
1410267600000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#428
  0
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?
Carludd
« Citoyen »
1410268560000
    • Carludd#0000
    • Profil
    • Derniers messages
#429
  0
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining<=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end
Gutigusta
« Citoyen »
1410273120000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#430
  0
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Vlw cara salvo o evento da minha tribo
Carludd
« Citoyen »
1410275100000
    • Carludd#0000
    • Profil
    • Derniers messages
#431
  0
Gutigusta a dit :
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Vlw cara salvo o evento da minha tribo

dnd
Chuvanoturna
« Citoyen »
1410312120000
    • Chuvanoturna#0000
    • Profil
    • Derniers messages
#432
  0
Como q coloca ft de perfil??
Carludd
« Citoyen »
1410441120000
    • Carludd#0000
    • Profil
    • Derniers messages
#433
  0
Qual a diferença entre math.ceil e math.floor?No manual aparece a mesma descrição.
Yhbvgvc
« Citoyen »
1410448140000
    • Yhbvgvc#0000
    • Profil
    • Derniers messages
#434
  0
Carludd a dit :
Qual a diferença entre math.ceil e math.floor?No manual aparece a mesma descrição.

Acredito que math.ceil arredonda o número para o menor inteiro igual ou maior ao número. Exemplo: math.ceil(3.5) = 4

O math.floor arredonda o número para o menor inteiro mais próximo menor ou igual ao número. Exeplo: math.floor(3.5) = 3

~Robonado


Dernière modification le 1410448560000
Carludd
« Citoyen »
1410448800000
    • Carludd#0000
    • Profil
    • Derniers messages
#435
  0
yhbvgvc a dit :
Carludd a dit :
Qual a diferença entre math.ceil e math.floor?No manual aparece a mesma descrição.

Acredito que math.ceil arredonda o número para o menor inteiro igual ou maior ao número. Exemplo: math.ceil(3.5) = 4

O math.floor arredonda o número para o menor inteiro mais próximo menor ou igual ao número. Exeplo: math.floor(3.5) = 3

~Robonado


mt pro vlw
Yhbvgvc
« Citoyen »
1410449040000
    • Yhbvgvc#0000
    • Profil
    • Derniers messages
#436
  0
Carludd a dit :
yhbvgvc a dit :
Carludd a dit :
Qual a diferença entre math.ceil e math.floor?No manual aparece a mesma descrição.

Acredito que math.ceil arredonda o número para o menor inteiro igual ou maior ao número. Exemplo: math.ceil(3.5) = 4

O math.floor arredonda o número para o menor inteiro mais próximo menor ou igual ao número. Exeplo: math.floor(3.5) = 3

~Robonado


mt pro vlw

valeu
Gutigusta
« Citoyen »
1410562020000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#437
  0
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Não sei se é bug mais se começa no mapa 2 fica sempre no.mapa 2 se começa no mapa 4 fica só no mapa 4 bug?
Carludd
« Citoyen »
1410564000000
    • Carludd#0000
    • Profil
    • Derniers messages
#438
  0
Gutigusta a dit :
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Não sei se é bug mais se começa no mapa 2 fica sempre no.mapa 2 se começa no mapa 4 fica só no mapa 4 bug?

Como assim?
Ninguem
« Consul »
1410564960000
    • Ninguem#0095
    • Profil
    • Derniers messages
    • Tribu
#439
  0
Carludd a dit :
Gutigusta a dit :
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Não sei se é bug mais se começa no mapa 2 fica sempre no.mapa 2 se começa no mapa 4 fica só no mapa 4 bug?

Como assim?

na função newgame() precisa ter um novo sorteio de mapa
Carludd
« Citoyen »
1410565140000
    • Carludd#0000
    • Profil
    • Derniers messages
#440
  0
Ninguem a dit :
Carludd a dit :
Gutigusta a dit :
Carludd a dit :
Gutigusta a dit :
Queria um script assim

Mapas: Vanillas
Shaman: Sem shaman em nenhum mapa teria shaman
Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay
E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."

Tirei o negócio de tempo da pra fazer?

não tem como colocar msg de chat,só aparece pra quem executa o script

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining&lt;=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end

Não sei se é bug mais se começa no mapa 2 fica sempre no.mapa 2 se começa no mapa 4 fica só no mapa 4 bug?

Como assim?

na função newgame() precisa ter um novo sorteio de mapa

atá

texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento.";

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
ui.addPopup(0, 0, texto, nil, 300, 200, 320, false)

mapas={1,0,3}
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])

function newgame()
mapa=math.random(#mapas)
tfm.exec.newGame(mapas[mapa])
end


function eventLoop(time,remaining)
if remaining<=0 then
newgame()
end
end

function eventPlayerDied(player)
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
newgame()
end
end

function eventNewPlayer(player)
system.bindMouse(player,true)
end

function eventPlayerLeft(player)
eventPlayerDied(player)
end

function eventPlayerWon(player)
eventPlayerDied(player)
end

for player in pairs(tfm.get.room.playerList) do
eventNewPlayer(player)
end

function eventMouse(player,x,y)
tfm.exec.addShamanObject(24,x,y)
end
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 22 / 39 › »
© Atelier801 2018

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

Version 1.27