×

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!
« ‹ 35 / 133 › »
[Lua] Peça scripts aqui!
Bolodefchoco
« Sénateur »
1518530340000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#681
  0
Mi_uk a dit :
Kk deixa bolo só peço uma coisa o script que você fez de survivor com os meus mapas não está rodando corretamente, se você conseguir arrumar: O time, atalhos, e os pontos que são esses os problemas, agradecerei muito

Eu arrumei pro outro cara, só os atalhos que só funcionam se forem mapas de survivor mesmo.

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
local newMap, winners = true, false
eventNewGame = function()
newMap = false
winners = false
end

players = function()
local shaman, alive, total = 0, 0, 0
for k, v in next, tfm.get.room.playerList do
if not v.isDead then
if v.isShaman then
shaman = shaman + 1
else
alive = alive + 1
end
end
total = total + 1
end
return shaman, alive, total
end

local maps = {7383635,7383640,7383659,7383668,7383673,7383678,7383685}
eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame(maps[math.random(#maps)])
else
local shaman, alive, total = players()
if total > 2 and (shaman < 1 or alive < 2) then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
if not winners then
winners = true
for k, v in next, tfm.get.room.playerList do
if v.isShaman then
tfm.exec.setPlayerScore(k, 0)
elseif not v.isDead then
tfm.exec.setPlayerScore(k, 10, true)
end
end
end
end
end
end

eventPlayerDied = function(n)
if not tfm.get.room.playerList[n].isShaman then
tfm.exec.setPlayerScore(n, 1, true)
end
end

tfm.exec.disableAutoNewGame()
tfm.exec.disableAutoScore()
tfm.exec.disableAllShamanSkills()
tfm.exec.disableAutoTimeLeft()
Roose
« Citoyen »
1518536640000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#682
  0
Script - Quando o mapa se inciar comece no 20 segundos
Bolodefchoco
« Sénateur »
1518536760000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#683
  0
Uhzinhooo a dit :
Script - Quando o mapa se inciar comece no 20 segundos

Code Lua

1
2
3
eventNewGame = function()
tfm.exec.setGameTime(20)
end
Water_puddle
« Citoyen »
1518536940000
    • Water_puddle#8159
    • Profil
    • Derniers messages
    • Tribu
#684
  0
script que solta " kamehameha " quando aperta E
Bolodefchoco
« Sénateur »
1518537900000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#685
  0
Arianacatfof a dit :
script que solta " kamehameha " quando aperta E

Code Lua

1
2
3
4
5
6
7
8
9
10
11
eventNewPlayer = function(n)
system.bindKeyboard(n, string.byte("E"), true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local right = tfm.get.room.playerList[n].isFacingRight
for i = 1,20 do
tfm.exec.displayParticle(9, (x + (right and 20 or -20)) + (right and math.sqrt(i*2)*8 or -math.sqrt(i*2)*8), y-10, (right and 6 or -6))
end
end

https://image.prntscr.com/image/mR0Y6Fv3Sv6VHgrNiWUMVQ.gif


Dernière modification le 1518538080000
Roose
« Citoyen »
1518538860000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#686
  0
Olá boa tarde, de novo eu gostaria de um script que alguns blocos do mapa se ''transformasse em lava quando alguém tentar pisar morrer automaticamente e o bloco que se transforma em lava mudar de cor ficar uma cor mais escura se for possivél'' ( apenas 1 não pode acontecer isso) ( se precisar de coordenadas pode me add no jogo e me chamar no cochicho obrigado!

Nick: Uhzinhooo
Bolodefchoco
« Sénateur »
1518539100000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#687
  0
Uhzinhooo a dit :
Olá boa tarde, de novo eu gostaria de um script que alguns blocos do mapa se ''transformasse em lava quando alguém tentar pisar morrer automaticamente e o bloco que se transforma em lava mudar de cor ficar uma cor mais escura se for possivél'' ( apenas 1 não pode acontecer isso) ( se precisar de coordenadas pode me add no jogo e me chamar no cochicho obrigado!

Nick: Uhzinhooo

Não entendi nada e não dá pra mudar a cor da lava
Roose
« Citoyen »
1518539340000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#688
  0
Uma textarea quando alguém pisa nela morrer :D
Water_puddle
« Citoyen »
1518540960000
    • Water_puddle#8159
    • Profil
    • Derniers messages
    • Tribu
#689
  0
Bolodefchoco a dit :
Arianacatfof a dit :
script que solta " kamehameha " quando aperta E

Code Lua

1
2
3
4
5
6
7
8
9
10
11
eventNewPlayer = function(n)
system.bindKeyboard(n, string.byte("E"), true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local right = tfm.get.room.playerList[n].isFacingRight
for i = 1,20 do
tfm.exec.displayParticle(9, (x + (right and 20 or -20)) + (right and math.sqrt(i*2)*8 or -math.sqrt(i*2)*8), y-10, (right and 6 or -6))
end
end

https://image.prntscr.com/image/mR0Y6Fv3Sv6VHgrNiWUMVQ.gif


Obrigada!
Mi_uk
« Citoyen »
1518561360000
    • Mi_uk#0000
    • Profil
    • Derniers messages
#690
  0
Ola bolo obrigado pelo script do survivor com os meus mapas :)
Mi_uk
« Citoyen »
1518561540000
    • Mi_uk#0000
    • Profil
    • Derniers messages
#691
  0
Bolo queria uma tabela de torneio tipo essa onde pode colocar os nomes

Exemplo:
https://modeloopen.files.wordpress.com/2009/12/torneio-interno-2009-1c2aa-classe.gif

Só que eu possa escolher os nomes

Dernière modification le 1518561600000
Roose
« Citoyen »
1518624720000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#692
  0
Uma textarea que fique seguindo os ratos, quando algum rato encosta na textarea o rato morre
Bolodefchoco
« Sénateur »
1518884640000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#693
  0
Mi_uk a dit :
Bolo queria uma tabela de torneio tipo essa onde pode colocar os nomes

Exemplo:
https://modeloopen.files.wordpress.com/2009/12/torneio-interno-2009-1c2aa-classe.gif

Só que eu possa escolher os nomes

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
admin = "Mi_uk"

local select = "<p align='center'><a href='event:%s_%s'><font size='20'>JOGADOR_%s"
local pos = {[6] = false}

for i = 0, 3 do
ui.addTextArea(i, select:format('semi',i+1,i+1), nil, 50, 60 + i * 85, 200, 50, -1, 1, 1, true)
pos[i] = false
end

for i = 0, 1 do
ui.addTextArea(4 + i, select:format('final',i+1,i+1), nil, 258, 102 + i * 170, 200, 50, -1, 1, 1, true)
pos[4+i] = false
end

ui.addTextArea(6, "\n\n\n\n\n"..select:format('vencedor',1,1), nil, 466, 127, 200, 175, -1, 1, 1, true)


eventTextAreaCallback = function(i, n, c)
if n == admin then
local etapa, jogador = c:match("(.-)_(.+)")

if etapa == 'semi' then
for i = 4, #pos do
if pos[i] then
return
end
end
elseif etapa == 'final' then
for i = 0, 3 do
if not pos[i] then
return
end
end
if pos[6] then return end
else
for i = 0, #pos-1 do
if not pos[i] then
return
end
end
end

ui.addPopup(i, 2, 'Nome : ' .. etapa .. ' : Jogador_' .. jogador, n, 10, 30, 200, true)
end
end

eventPopupAnswer = function(i, n, a)
if n == admin and #a > 2 then
ui.updateTextArea(i, (i==6 and '\n\n\n' or '') .. "<VI>"..a, nil)
pos[i] = true
end
end


Uhzinhooo a dit :
Uma textarea que fique seguindo os ratos, quando algum rato encosta na textarea o rato morre

Não testei
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
64
65
66
67
local size = 25 -- Tamanho

math.pythag = function(x1,y1,x2,y2,range)
return (x1-x2)^2 + (y1-y2)^2 <= (range^2)
end

local getPlayer = function()
local p = {}
for k, v in next, tfm.get.room.playerList do
if not v.isDead then
p[#p + 1] = k
end
end
return p[math.random(#p)]
end

local tableMul = function(a, b)
return a[1] * b, a[2] * b
end
local len = function(a)
return (a[1]^2 + a[2]^2)^.5
end
local scaleTo = function(a, b)
return tableMul(a, (b / len(a)))
end

local alvo = ''
local timer = 0
local textarea = {x = 400, y = 200}

eventLoop = function()
if alvo == '' then
alvo = getPlayer()
return
end

timer = timer + .5
if timer % 10 == 0 then
alvo = getPlayer()
end

local dirx, diry = scaleTo({
(tfm.get.room.playerList[alvo] or {x = 400}).x - textarea.x,
(tfm.get.room.playerList[alvo] or {y = 200}).y - textarea.y,
}, size)

textarea.x = textarea.x + dirx
textarea.y = textarea.y + diry

ui.addTextArea(0, '', nil, textarea.x - size/2, textarea.y - size/2, size, size, 1, 1, 1, true)

for k, v in next, tfm.get.room.playerList do
if not v.isDead and math.pythag(v.x, v.y, textarea.x, textarea.y, size + 5) then
tfm.exec.killPlayer(k)
if k == alvo then
alvo = getPlayer()
end
end
end
end

eventPlayerDied = function(n)
if n == alvo then
alvo = getPlayer()
end
end
eventPlayerLeft = eventPlayerDied

Dernière modification le 1518884940000
Roose
« Citoyen »
1518885000000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#694
  0
Um script de rotação de mapa/ oque estou usando 1 mapa roda depois vai para um mapa aleatório :c
Bolodefchoco
« Sénateur »
1518885960000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#695
  0
Uhzinhooo a dit :
Um script de rotação de mapa/ oque estou usando 1 mapa roda depois vai para um mapa aleatório :c

Eu acho que você poderia pesquisar um pouco nos fóruns antes de pedir aqui. Há vários.
https://pastebin.com/raw/dzRG5PD5 esse deixa vc mudar bastante coisa. Lá nas últimas linhas pls

https://pastebin.com/raw/vWvaeR71 tem esse tbm

Dernière modification le 1518886020000
Roose
« Citoyen »
1518921060000
    • Roose#7190
    • Profil
    • Derniers messages
    • Tribu
#696
  0
Script - Quando alguem entrar na sala aparecer uma textarea, (nela eu posso escrever dentro) e para fechar a textarea é so aperta no x
Leitininho
« Citoyen »
1519001940000
    • Leitininho#1006
    • Profil
    • Derniers messages
#697
  0
Obrigado.
Leitininho
« Citoyen »
1519013520000
    • Leitininho#1006
    • Profil
    • Derniers messages
#698
  0
Script de fazer a Água desse Mapa Subir.
~Code~@5243146

Agradeço muito!
Weck
« Citoyen »
1519238400000
    • Weck#3300
    • Profil
    • Derniers messages
    • Tribu
#699
  0
Jellymichey a dit :
Thiago3434 a dit :
Como cria Um Script?

Não era suposto estar na Module FAQ?

TO ZUANDO '-' EU SEI
Homemmulherrr
« Citoyen »
1519259040000
    • Homemmulherrr#9217
    • Profil
    • Derniers messages
#700
  0
um script que vc aperta "espaço" é solta bolinhas de neve é tem um tempo uns 7 minutos cada jogador que atacar a bolinha de neve em outro jogador ganha 10 pontos. é cada vez que acaba o tempo se ainda tiver jogador o tempo automaticamente vai para 2 minutos. é que o mapa seja bem grande é cheio de obstaculo parecido com o module batata tipo os mapas de lá tem que ser grande é bom.
Por favor faz pra mim Obrigado.

Dernière modification le 1519259700000
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 35 / 133 › »
© Atelier801 2018

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

Version 1.27