×

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
  • /
  • [Lua] Peça scripts aqui!
« ‹ 30 / 133 › »
[Lua] Peça scripts aqui!
Colbya
« Citoyen »
1517410140000
    • Colbya#0000
    • Profil
    • Derniers messages
#581
  0
eu quer um script que um rato faz uma açao todos do cafofo tabem faz pfv >_>

Dernière modification le 1517410500000
Bolodefchoco
« Sénateur »
1517411460000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#582
  1
Puredragons a dit :
Que codigo complicado para alguem iniciante como eo
Mas eu saquei a ideia :v Realmente seria bom!

Eu recomendo o uso de pisos e aie mesmo. Usar o script pra fazer isso pode tornar seu minigame mais pesado de forma desnecessária. Faça igual #gravity que exige as lavas lá
Bolodefchoco
« Sénateur »
1517411640000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#583
  0
Anneifofinha a dit :
eu quer um script que um rato faz uma açao todos do cafofo tabem faz pfv >_>

Code Lua

1
2
3
4
5
eventEmotePlayed = function(n, t, p)
if n == "Anneifofinha" then
tfm.exec.playEmote(nil, t, p)
end
end
Spiderwii
« Citoyen »
1517418540000
    • Spiderwii#0000
    • Profil
    • Derniers messages
    • Tribu
#584
  0
Alguem sabe desenvolver o script que faça rato atirar bigorna com tecla espaço perto do rato com cordenadas x,y do usuario(rato)
Juan
« Citoyen »
1517423220000
    • Juan#0104
    • Profil
    • Derniers messages
    • Tribu
#585
  0
Apenas EU Shaman. Quando uma seta for spawnada, lançar uma cannon 1 segundo depois na direçao da seta.
Bolodefchoco
« Sénateur »
1517425380000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#586
  0
Spiderwii a dit :
Alguem sabe desenvolver o script que faça rato atirar bigorna com tecla espaço perto do rato com cordenadas x,y do usuario(rato)

Code Lua

1
2
3
4
5
6
7
8
9
eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(10, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end

Matheushasbr a dit :
Apenas EU Shaman. Quando uma seta for spawnada, lançar uma cannon 1 segundo depois na direçao da seta.

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
tfm.exec.disableAutoShaman()
cannons = {}
eventNewGame = function()
cannons = {}
tfm.exec.setShaman('Matheushasbr')
end
tfm.exec.newGame(0)

eventSummoningEnd = function(n, t, x, y, a)
if t == 0 then
cannons[#cannons + 1] = { x = x, y = y, a = a, time = os.time() + 1000}
end
end

eventLoop = function()
for k, v in next, cannons do
if v.time > 0 and os.time() > v.time then
v.time = 0
tfm.exec.addShamanObject(17, v.x, v.y, v.a + 180)
end
end
end

Dernière modification le 1517425500000
Gabrielaaoi
« Sénateur »
1517436900000
    • Gabrielaaoi#0000
    • Profil
    • Derniers messages
    • Tribu
#587
  0
Um script que faz com q uma pessoa (admin) insira uma pergunta que aparecerá na tela de todos na sala e que as respostas da pergunta seja enviando para quem a fez
Spiderwii
« Citoyen »
1517440800000
    • Spiderwii#0000
    • Profil
    • Derniers messages
    • Tribu
#588
  0
Como criar uma variavel pra casa usuario de angulo, força ? Fiz com local força e ficou compartilhado a variavel coisa que eu não queria.
Bolodefchoco
« Sénateur »
1517442780000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#589
  0
Spiderwii a dit :
Como criar uma variavel pra casa usuario de angulo, força ? Fiz com local força e ficou compartilhado a variavel coisa que eu não queria.

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local info = {}
eventNewPlayer = function(n)
if not info[n] then
info[n] = {
angulo = 0,
velocidade = 0,
}
end

system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n)
info[n].angulo = info[n].angulo + 1
print(info[n].angulo)
end
Mashmellliiiiiw
« Censeur »
1517508540000
    • Mashmellliiiiiw#7990
    • Profil
    • Derniers messages
    • Tribu
#590
  0
Bolodefchoco a dit :
Lalalele356 a dit :
Mmeelloooo a dit :
Bolodefchoco a dit :
Mmeelloooo a dit :
Nettoork a dit :
Roxyrockster a dit :
um script que o rato cuspa um bloco de lava

Tentei fazer um ai pra você ... kkkkk

-- (Utilize a tecla [E] para tacar seu bloco de lava)

function eventNewPlayer(name)
system.bindKeyboard(name, 69, false)
end
for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
n=1
function eventKeyboard(name,key,down,x,y)
if key == 69 then
n = n + 1
if tfm.get.room.playerList[name].isFacingRight then
tfm.exec.addPhysicObject(n,x+57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x+68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=70})
else
tfm.exec.addPhysicObject(n,x-57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x-68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=-70})
end
tfm.exec.removePhysicObject(n-4)
end
end

Nossa, muito obrigada, mas alguem tem script de chao e lava?

The floor is lava, por Osicat

Obrigada!

OI VACAAAAAAAAAAAAAAAAAAAAA

quero um script que quando vc aperta alguma tecla sai nyan cat vuando

Code Lua

1
2
3
4
5
6
7
8
9
eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(109, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end

mas tem como so eu atirar nyan cat?
Bolodefchoco
« Sénateur »
1517511960000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#591
  0
Lalalele356 a dit :
Bolodefchoco a dit :
Lalalele356 a dit :
Mmeelloooo a dit :
Bolodefchoco a dit :
Mmeelloooo a dit :
Nettoork a dit :
Roxyrockster a dit :
um script que o rato cuspa um bloco de lava

Tentei fazer um ai pra você ... kkkkk

-- (Utilize a tecla [E] para tacar seu bloco de lava)

function eventNewPlayer(name)
system.bindKeyboard(name, 69, false)
end
for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
n=1
function eventKeyboard(name,key,down,x,y)
if key == 69 then
n = n + 1
if tfm.get.room.playerList[name].isFacingRight then
tfm.exec.addPhysicObject(n,x+57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x+68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=70})
else
tfm.exec.addPhysicObject(n,x-57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x-68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=-70})
end
tfm.exec.removePhysicObject(n-4)
end
end

Nossa, muito obrigada, mas alguem tem script de chao e lava?

The floor is lava, por Osicat

Obrigada!

OI VACAAAAAAAAAAAAAAAAAAAAA

quero um script que quando vc aperta alguma tecla sai nyan cat vuando

Code Lua

1
2
3
4
5
6
7
8
9
eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(109, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end

mas tem como so eu atirar nyan cat?

Code Lua

1
2
3
4
5
system.bindKeyboard('Lalalele356', 32, true, true)
eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(109, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end
Mashmellliiiiiw
« Censeur »
1517513040000
    • Mashmellliiiiiw#7990
    • Profil
    • Derniers messages
    • Tribu
#592
  0
Bolodefchoco a dit :
Lalalele356 a dit :
Bolodefchoco a dit :
Lalalele356 a dit :
Mmeelloooo a dit :
Bolodefchoco a dit :
Mmeelloooo a dit :
Nettoork a dit :
Roxyrockster a dit :
um script que o rato cuspa um bloco de lava

Tentei fazer um ai pra você ... kkkkk

-- (Utilize a tecla [E] para tacar seu bloco de lava)

function eventNewPlayer(name)
system.bindKeyboard(name, 69, false)
end
for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
n=1
function eventKeyboard(name,key,down,x,y)
if key == 69 then
n = n + 1
if tfm.get.room.playerList[name].isFacingRight then
tfm.exec.addPhysicObject(n,x+57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x+68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=70})
else
tfm.exec.addPhysicObject(n,x-57,y,{type=14,width=5,height=5,restitution=30.0,miceCollision=false})
tfm.exec.addPhysicObject(n+1,x-68,y-30,{type=3,width=20,height=20,dynamic=true,restitution=30.0,angle=-70})
end
tfm.exec.removePhysicObject(n-4)
end
end

Nossa, muito obrigada, mas alguem tem script de chao e lava?

The floor is lava, por Osicat

Obrigada!

OI VACAAAAAAAAAAAAAAAAAAAAA

quero um script que quando vc aperta alguma tecla sai nyan cat vuando

Code Lua

1
2
3
4
5
6
7
8
9
eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(109, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end

mas tem como so eu atirar nyan cat?

Code Lua

1
2
3
4
5
system.bindKeyboard('Lalalele356', 32, true, true)
eventKeyboard = function(n, k, d, x, y)
local facingValue = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(109, x + (15 * facingValue), y - 5, 0, 30 * facingValue)
end

vlw
Orizonlord
« Citoyen »
1517517840000
    • Orizonlord#0000
    • Profil
    • Derniers messages
    • Tribu
#593
  0
Script Do Module #Ratapult
Bolodefchoco
« Sénateur »
1517520180000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#594
  0
Orizonlord a dit :
Script Do Module #Ratapult

Você raramente encontrará o script de um módulo semi-oficial ou oficial. Infelizmente, você deve abstrair o jogo e recriá-lo
Orizonlord
« Citoyen »
1517521380000
    • Orizonlord#0000
    • Profil
    • Derniers messages
    • Tribu
#595
  0
Script Para Angulo O Rato Atirar Uma Bigorna E Apareçer Uma Seta No Angulo 0
Orizonlord
« Citoyen »
1517521560000
    • Orizonlord#0000
    • Profil
    • Derniers messages
    • Tribu
#596
  0
Bolodefchoco a dit :
Orizonlord a dit :
Script Do Module #Ratapult

Você raramente encontrará o script de um módulo semi-oficial ou oficial. Infelizmente, você deve abstrair o jogo e recriá-lo

OK
Bolodefchoco
« Sénateur »
1517521620000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#597
  0
Orizonlord a dit :
Script Para Angulo O Rato Atirar Uma Bigorna E Apareçer Uma Seta No Angulo 0

Eu Não Entendi Nada Do Que Você Disse Poderia Por Favor Explicar De Forma Mais Clara ? Obrigado
Bolodefchoco
« Sénateur »
1517523780000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#598
  0
Orizonlord a dit :
Script Para Angulo O Rato Atirar Uma Bigorna E Apareçer Uma Seta No Angulo 0

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
info = {}
changeAngle = function(n, a)
a = a % 360
if a < 0 then
a = a + 360
end

info[n].angle = a
tfm.exec.addShamanObject(0, tfm.get.room.playerList[n].x, tfm.get.room.playerList[n].y, -a)
end

eventNewPlayer = function(n)
if not info[n] then
info[n] = {
power = {0, false},
angle = 0,
}
end
changeAngle(n, 180)

-- Espaço atira, C muda o ângulo em sentido anti-horário e V em sentido horário
for _, key in next, {string.byte(" CV", 1, 3)} do
system.bindKeyboard(n, key, true, true)
end
system.bindKeyboard(n, 32, false, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
if k == string.byte("C") then
changeAngle(n, info[n].angle - 5)
elseif k == string.byte("V") then
changeAngle(n, info[n].angle + 5)
elseif k == 32 then -- Espaço
if d then
info[n].power[2] = true
else
if info[n].power[1] > 5 then
local angle = math.rad(info[n].angle)
local vx = math.sin(angle)
local vy = math.cos(angle)
tfm.exec.addShamanObject(10, x + (vx * 30), y + (vy * 30), info[n].angle, vx * info[n].power[1], vy * info[n].power[1])
end
info[n].power = {0, false}
end
end
end

eventLoop = function()
for k, v in next, info do
if v.power[2] then
v.power[1] = v.power[1] + 2
end
end
end

eventChatCommand = function(n, c)
-- !10 = 10°
c = tonumber(c)
if c then
changeAngle(n, c + 90)
end
end

Dernière modification le 1517523900000
Spiderwii
« Citoyen »
1517526900000
    • Spiderwii#0000
    • Profil
    • Derniers messages
    • Tribu
#599
  0
Otimo Script mais Como se aplicaria (* facingValue) para inverter o Angulo[esquerda e direita] no Script Acima
Bolodefchoco
« Sénateur »
1517527800000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#600
  0
Spiderwii a dit :
Otimo Script mais Como se aplicaria (* facingValue) para inverter o Angulo[esquerda e direita] no Script Acima

Acho que 180 * facingValue deve funcionar
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 30 / 133 › »
© Atelier801 2018

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

Version 1.27