×

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
  • /
  • [Script] O chão é lava
[Script] O chão é lava
Belizard
« Censeur »
1627483920000
    • Belizard#6173
    • Profil
    • Derniers messages
#1
  6
Olá, pessoal! Hoje trago o script da brincadeira "O chão é lava" para o cafofo da sua tribo!


https://i.imgur.com/SfSQhVW.png



Código 1:
tfm.exec.setGameTime(6000,true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.setUIMapName("O chão é lava!")
tfm.exec.newGame(7214563)
ilosc = 10
tfm.exec.addPhysicObject(1,800,387,2800,10, {
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=true
})
to=0
czas=10
score = 0


function eventLoop(timeRemaining,timeRemaining)
if(to==2) then
czas=czas-1
score = score + 1
if(score==10) then
for name, player in pairs(tfm.get.room.playerList) do
tfm.exec.giveMeep(name)
end
end
if(czas==3) then

x = math.random(100,1500)
xx = math.random(100,1500)
idd = math.random(1,7)
id = math.random(1,7)


usun = tfm.exec.addShamanObject(id,x,350,0,0,0,false)
usunn = tfm.exec.addShamanObject(idd,xx,350,0,0,0,false)

end
if(czas==-3) then
tfm.exec.removeObject(usun)
tfm.exec.removeObject(usunn)

ilosc = ilosc - 1
czas=ilosc
tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=true
})
tfm.exec.removePhysicObject(2)
end

if(czas<=0) then

tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=false
})
tfm.exec.addPhysicObject(2,800,387,{
type=3,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=false
})

ui.addTextArea(7, "<p align='center'><font size='30' color='#FF1B00'>O CHÃO É LAVA! Por: Belizard#6173</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true,true)
else
ui.addTextArea(7, "<p align='center'><font size='90'>"..czas.."</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true,true)
ui.addTextArea(5,"", nil, 50, 250, 700, 119, 0x324650, 0x000000, 0, true,true)
end
to=0
else
to=to+1
end
if(ilosc==4) then
ilosc=10
end
end
function eventPlayerDied(playerName)
tfm.exec.setUIShamanName(playerName.." morreu.")
tfm.exec.setPlayerScore(playerName,-2,true)
end
function eventChatCommand(playerName,message)
if(message=="reset") then
tfm.exec.setPlayerScore(playerName,0)
end
end
liczba=0
tablica={}
zycie={}
e=0
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0
e=e+1

print(name)
end
print(e)
function eventPlayerDied(n)
tablica[n]=1
zycie[n]=0
e=e-1
print(e)
for name, player in pairs(tfm.get.room.playerList) do
if(tablica[name]==0) then
liczba=liczba+1
wyg=name
end
end
function eventPlayerLeft(n)
tablica[n]=1
zycie[n]=0
e=e-1
print(e)
for name, player in pairs(tfm.get.room.playerList) do
if(tablica[name]==0) then
liczba=liczba+1
wyg=name
end
end
end
if(liczba==1) then
print(wyg.." wygral")
tfm.exec.giveCheese(wyg)
ui.addTextArea(5, "<p align='center'><font size='50' color='#86FF00'>"..wyg.." venceu a partida.</font></p>", nil, 50, 250, 700, 500, 0x324650, 0x000000, 0, true,true)
tfm.exec.playerVictory(wyg)
tfm.exec.newGame(7214563)
tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=true
})
to=0
czas=10
score = 0
e=0
tablica={}
ilosc=10
tfm.exec.setPlayerScore(wyg,score,true)
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0
zycie[name]=1
e=e+1
end
wyg=""
liczba=0
print(e)
else
liczba=0
end
end
function eventChatCommand(playerName,message)
if(message=="res") then
liczba=0
e=0
tablica={}
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0

e=e+1
end
wyg=""
print(e)
end
end
function eventPlayerRespawn(nn)
if(zycie[nn]==0) then
tfm.exec.setVampirePlayer(nn)
end
end


Características:


  • 10 segundos
  • Efeito "Meep"


Código 2:
tfm.exec.setGameTime(6000,true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.setUIMapName("O chão é lava!")
tfm.exec.newGame(6152679)
ilosc = 10
tfm.exec.addPhysicObject(1,800,387,2800,10, {
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=false,
miceCollision=false
})
to=0
czas=10
score = 0


function eventLoop(timeRemaining,timeRemaining)
if(to==2) then
czas=czas-1
score = score + 1
if(score==10) then
for name, player in pairs(tfm.get.room.playerList) do
tfm.exec.giveMeep(name)
end
end
if(czas==3) then

x = math.random(100,1500)
xx = math.random(100,1500)
idd = math.random(1,7)
id = math.random(1,7)


usun = tfm.exec.addShamanObject(id,x,350,0,0,0,false)
usunn = tfm.exec.addShamanObject(idd,xx,350,0,0,0,false)

end
if(czas==-3) then
tfm.exec.removeObject(usun)
tfm.exec.removeObject(usunn)

ilosc = ilosc - 1
czas=ilosc
tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=true
})
tfm.exec.removePhysicObject(2)
end

if(czas<=0) then

tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=false
})
tfm.exec.addPhysicObject(2,800,387,{
type=3,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=false
})

ui.addTextArea(7, "<p align='center'><font size='30' color='#FF1B00'>O CHÃO É LAVA! Por: Belizard#6173</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true,true)
else
ui.addTextArea(7, "<p align='center'><font size='90'>"..czas.."</font></p>", nil, 50, 125, 700, 119, 0x324650, 0x000000, 0, true,true)
ui.addTextArea(5,"", nil, 50, 250, 700, 119, 0x324650, 0x000000, 0, true,true)
end
to=0
else
to=to+1
end
if(ilosc==4) then
ilosc=10
end
end
function eventPlayerDied(playerName)
tfm.exec.setUIShamanName(playerName.." morreu.")
tfm.exec.setPlayerScore(playerName,-2,true)
end
function eventChatCommand(playerName,message)
if(message=="reset") then
tfm.exec.setPlayerScore(playerName,0)
end
end
liczba=0
tablica={}
zycie={}
e=0
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0
e=e+1

print(name)
end
print(e)
function eventPlayerDied(n)
tablica[n]=1
zycie[n]=0
e=e-1
print(e)
for name, player in pairs(tfm.get.room.playerList) do
if(tablica[name]==0) then
liczba=liczba+1
wyg=name
end
end
function eventPlayerLeft(n)
tablica[n]=1
zycie[n]=0
e=e-1
print(e)
for name, player in pairs(tfm.get.room.playerList) do
if(tablica[name]==0) then
liczba=liczba+1
wyg=name
end
end
end
if(liczba==1) then
print(wyg.." wygral")
tfm.exec.giveCheese(wyg)
ui.addTextArea(5, "<p align='center'><font size='50' color='#86FF00'>"..wyg.." venceu a partida.</font></p>", nil, 50, 250, 700, 500, 0x324650, 0x000000, 0, true,true)
tfm.exec.playerVictory(wyg)
tfm.exec.newGame(7214563)
tfm.exec.addPhysicObject(1,800,387,{
type=6,
restitution=0.2,
friction=0.3,
width=1600,
height=37,
groundCollision=true,
miceCollision=true
})
to=0
czas=10
score = 0
e=0
tablica={}
ilosc=10
tfm.exec.setPlayerScore(wyg,score,true)
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0
zycie[name]=1
e=e+1
end
wyg=""
liczba=0
print(e)
else
liczba=0
end
end
function eventChatCommand(playerName,message)
if(message=="res") then
liczba=0
e=0
tablica={}
for name, player in pairs(tfm.get.room.playerList) do
tablica[name]=0

e=e+1
end
wyg=""
print(e)
end
end
function eventPlayerRespawn(nn)
if(zycie[nn]==0) then
tfm.exec.setVampirePlayer(nn)
end
end


Características:

  • Código mais curto
  • Rotação de mapas


https://i.imgur.com/GrIiQCO.png

Espero que gostem!*

Belizard
« Censeur »
1627483980000
    • Belizard#6173
    • Profil
    • Derniers messages
#2
  2
Fonte: Osicat
Belizard
« Censeur »
1627833660000
    • Belizard#6173
    • Profil
    • Derniers messages
#4
  4
Ork a dit :
eu amoo
Pipocalio
« Citoyen »
1628128320000
    • Pipocalio#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  5
beli, usa a tag "code=lua" que fica bem bom de ler os scripts aqui no fórum

fora isso o tópico tá bom, coraçãozinho

Dernière modification le 1628128380000
Belizard
« Censeur »
1628182080000
    • Belizard#6173
    • Profil
    • Derniers messages
#6
  5
Pipocalio a dit :
beli, usa a tag "code=lua" que fica bem bom de ler os scripts aqui no fórum

fora isso o tópico tá bom, coraçãozinho

Hehehe, ok :P
Anabaiana
« Citoyen »
1628693640000
    • Anabaiana#0796
    • Profil
    • Derniers messages
#7
  4
esse eu conheço meu amg vc e otimo nisso
Belizard
« Censeur »
1628716500000
    • Belizard#6173
    • Profil
    • Derniers messages
#8
  5
Anabaiana a dit :
esse eu conheço meu amg vc e otimo nisso

Hehehehe, obrigadoooo :D
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] O chão é lava
© Atelier801 2018

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

Version 1.27