×

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!
« ‹ 33 / 133 › »
[Lua] Peça scripts aqui!
Bolodefchoco
« Sénateur »
1518105120000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#641
  0
Ghostxand a dit :
Bolodefchoco a dit :

Você só pode usar imagens se for um membro da equipe oficial Lua.
O sistema é tão falho que nem mesmo eles podem testar imagens no cafofo, por isso sempre as testam em #salas. Mas, de qualquer forma, não há nenhum meio que você possa utilizar para isso.
Em adição ao que já foi dito, você ainda precisa hospedar as imagens em atelier801.images, um micepix da staff, então é, realmente, impossível :/

No entanto, você pode pedir para algum membro hospedar a imagem e/ou carregar o código numa sala, assim você poderá ver as imagens.

Para fazer um background, use
Code Lua

1
codigo

E para fazer uma animação, use
Code Lua

1
codigo

Mais ou menos isso :P

Entendi, então no caso se eu quiser fazer um module que necessite trocar as imagens como dito (Background, Sprites e etc) um caminho viável seria montar um topico para o minigame aqui no forum mostrando as imagens que seriam substituídas e explicando certo? talvez algum mod veja e ajude..

mas e se eu não tiver os scripts prontos, e só tiver o projeto em imagens, é permitido postar? não achei nada sobre nas regras..

@Edit: Esqueci de agradecer a atenção, Bolodefchoco. o/

Mods não saberão lhe ajudar. Você pode me enviar uma mensagem privada se precisar de ajuda ^_^

Você não tem permissão para carregar as imagens, mas poderá usá-las em seus módulos a vontade e também poderá postá-lo no fórum. No entanto, caso seu módulo não esteja numa sala, como em #batata, você deverá compartilhar o código fonte :/


Nulavee a dit :
Preciso de um script para fazer com que as bigornas parem de ser lançadas por detrás do rato.

Primeiramente que eu não tenho uma bola de cristal pra saber como tu fez a função de lançar bigornas. shrug
Laylalinhhhhhh
« Citoyen »
1518132720000
    • Laylalinhhhhhh#0632
    • Profil
    • Derniers messages
#642
  0
eu queria um script tipo um rato encosta em mim é ele morre isso é possivel?
Bolodefchoco
« Sénateur »
1518133560000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#643
  1
Quemevc6 a dit :
eu queria um script tipo um rato encosta em mim é ele morre isso é possivel?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pitagoras = function(x1,y1,x2,y2,raio)
return (x1-x2)^2 + (y1-y2)^2 <= (raio^2)
end

eventLoop = function(time)
if time > 3000 then
for k, v in next, tfm.get.room.playerList do
if k ~= "Quemevc6" then
if pitagoras(tfm.get.room.playerList["Quemevc6"].x, tfm.get.room.playerList["Quemevc6"].y, v.x, v.y, 30) then
tfm.exec.killPlayer(k)
end
end
end
end
end
Mestybkzo
« Citoyen »
1518196680000
    • Mestybkzo#0000
    • Profil
    • Derniers messages
#644
  0
Bolodefchoco a dit :
Mestybkzo a dit :
Ola, se permitido eu gostaria de um script assim:

Um mapa ira carregar, e os ratinhos deverao ir para a toca com os objetos spwanados por eles mesmos, exemplo:

Ao apertar E sai um balao
Ao apertar F sai bola
Ao apertar Z sai tabua grande
Ao apertar X sai tabua pequena
Ao apertar G sai Caixa grande
Ao apertar H sai caixa pequena
Ao apertar Y sai bigorna

Obrigada!

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
local keys = {
E = 30,
F = 6,
Z = 4,
X = 3,
G = 2,
H = 1,
Y = 10,
}

eventNewPlayer = function(n)
for k, v in next, {string.byte("EFZXGHY", 1, 7)} do
system.bindKeyboard(n, v, true, true)
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
local o = keys[string.char(k)]
if o then
local dir = tfm.get.room.playerList[n].isFacingRight and 1 or -1
tfm.exec.addShamanObject(o, x + 15 * dir, y - 10)
end
end


Spiderwii a dit :
Como aplica um item a um menu ? imagem Ilustrativa.

Poderia explicar melhor?

o.o Ficou foda, vlw
Neo
« Citoyen »
1518209940000
    • Neo#7537
    • Profil
    • Derniers messages
#645
  2
Gostaria de um script básico de survivor para o cafofo, ja que /module não está ativo ao survivor sim aos modos de jogo diferentes que o transformice tem...
Mi_uk
« Citoyen »
1518210180000
    • Mi_uk#0000
    • Profil
    • Derniers messages
#646
  0
Bem gostaria igualmente um script de survivor mais com alguns mapas que eu fiz
@7383635
@7383640
@7383659
@7383668
@7383673
@7383678
@7383685
Se conseguirem porfavor
Bolodefchoco
« Sénateur »
1518211920000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#647
  0
Que fique claro que não testei nenhum. Digam se houver algo de errado

Lxlevel a dit :
Gostaria de um script básico de survivor para o cafofo, ja que /module não está ativo ao survivor sim aos modos de jogo diferentes que o transformice tem...

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

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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Mi_uk a dit :
Bem gostaria igualmente um script de survivor mais com alguns mapas que eu fiz
@7383635
@7383640
@7383659
@7383668
@7383673
@7383678
@7383685
Se conseguirem porfavor

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

players = function()
local shaman, alive = 0, 0
for k, v in next, tfm.get.room.playerList do
if v.isShaman then
shaman = shaman+ 1
end
if not v.isDead then
alive = alive + 1
end
end
return shaman, alive
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 = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()
Mi_uk
« Citoyen »
1518213120000
    • Mi_uk#0000
    • Profil
    • Derniers messages
#648
  0
Bolodefchoco a dit :
Que fique claro que não testei nenhum. Digam se houver algo de errado

Lxlevel a dit :
Gostaria de um script básico de survivor para o cafofo, ja que /module não está ativo ao survivor sim aos modos de jogo diferentes que o transformice tem...

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

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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Mi_uk a dit :
Bem gostaria igualmente um script de survivor mais com alguns mapas que eu fiz
@7383635
@7383640
@7383659
@7383668
@7383673
@7383678
@7383685
Se conseguirem porfavor

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

players = function()
local shaman, alive = 0, 0
for k, v in next, tfm.get.room.playerList do
if v.isShaman then
shaman = shaman+ 1
end
if not v.isDead then
alive = alive + 1
end
end
return shaman, alive
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 = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Olha testei o meu, tudo ocorreu bem
Neo
« Citoyen »
1518213480000
    • Neo#7537
    • Profil
    • Derniers messages
#649
  1
Bolodefchoco a dit :
Que fique claro que não testei nenhum. Digam se houver algo de errado

Lxlevel a dit :
Gostaria de um script básico de survivor para o cafofo, ja que /module não está ativo ao survivor sim aos modos de jogo diferentes que o transformice tem...

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

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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Mi_uk a dit :
Bem gostaria igualmente um script de survivor mais com alguns mapas que eu fiz
@7383635
@7383640
@7383659
@7383668
@7383673
@7383678
@7383685
Se conseguirem porfavor

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

players = function()
local shaman, alive = 0, 0
for k, v in next, tfm.get.room.playerList do
if v.isShaman then
shaman = shaman+ 1
end
if not v.isDead then
alive = alive + 1
end
end
return shaman, alive
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 = players()
if shaman < 1 or alive < 2 then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Serio obrigado por tudo, isso parece ser muito dificil para mim, e isso que torna isso tão gratificante e especial. muito obrigado :)
Neo
« Citoyen »
1518213600000
    • Neo#7537
    • Profil
    • Derniers messages
#650
  0
A um problema o tempo estimado para cada partida ta de 10s
Neo
« Citoyen »
1518213660000
    • Neo#7537
    • Profil
    • Derniers messages
#651
  0
Lxlevel a dit :
A um problema o tempo estimado para cada partida ta de 10s

Ele da o tempo de 1minuto e muda direto para 10s
Neo
1518213780000
    • Neo#7537
    • Profil
    • Derniers messages
#652
[Modéré par Esh, raison : Triple post.]
Bolodefchoco
« Sénateur »
1518214380000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#653
  0
Lxlevel a dit :
Lxlevel a dit :
A um problema o tempo estimado para cada partida ta de 10s

Ele da o tempo de 1minuto e muda direto para 10s

É porque o tempo é reduzido quando não há mais shaman ou quando há menos de 2 ratos.

Consertando:
Lxlevel

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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive, total = players()
if total > 1 and (shaman < 1 or alive < 2) then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()

Mi_uk

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
local newMap = true
eventNewGame = function()
newMap = 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 > 1 and (shaman < 1 or alive < 2) then
tfm.exec.setGameTime(10, false)
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()
Mestybkzo
« Citoyen »
1518215400000
    • Mestybkzo#0000
    • Profil
    • Derniers messages
#654
  0
Eu gostaria de um script de fazer o rato voar apertando espaço (Não sei se já foi pedido)
Bolodefchoco
« Sénateur »
1518215760000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#655
  0
Mestybkzo a dit :
Eu gostaria de um script de fazer o rato voar apertando espaço (Não sei se já foi pedido)

Code Lua

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

eventKeyboard = function(n, k)
tfm.exec.movePlayer(n, 0, 0, false, 0, -50)
end
Neo
« Citoyen »
1518217680000
    • Neo#7537
    • Profil
    • Derniers messages
#656
  0
modo de survivor que você fez para mim tem como mudar para modo survivor, nos botes 1 - cn pra baixo 2 - cn para direita 3 - cn para esquerda 4 - sp 5- caixa, o resto vc define como está
Bolodefchoco
« Sénateur »
1518218340000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#657
  0
Lxlevel a dit :
modo de survivor que você fez para mim tem como mudar para modo survivor, nos botes 1 - cn pra baixo 2 - cn para direita 3 - cn para esquerda 4 - sp 5- caixa, o resto vc define como está

Não é possível alterar isso, also

Você pode jogar #cannonup, é um survivor automático que não tem shaman
Neo
« Citoyen »
1518221400000
    • Neo#7537
    • Profil
    • Derniers messages
#658
  0
Bolodefchoco a dit :
Lxlevel a dit :
modo de survivor que você fez para mim tem como mudar para modo survivor, nos botes 1 - cn pra baixo 2 - cn para direita 3 - cn para esquerda 4 - sp 5- caixa, o resto vc define como está

Não é possível alterar isso, also

Você pode jogar #cannonup, é um survivor automático que não tem shaman

Moço tava jogando com amigos e quando eles ganham eles não estão ganhando os pontos, de sobrevivencia ou seja eles não conseguem ser sha só eu
Bolodefchoco
« Sénateur »
1518223020000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#659
  0
Lxlevel a dit :
Bolodefchoco a dit :
Lxlevel a dit :
modo de survivor que você fez para mim tem como mudar para modo survivor, nos botes 1 - cn pra baixo 2 - cn para direita 3 - cn para esquerda 4 - sp 5- caixa, o resto vc define como está

Não é possível alterar isso, also

Você pode jogar #cannonup, é um survivor automático que não tem shaman

Moço tava jogando com amigos e quando eles ganham eles não estão ganhando os pontos, de sobrevivencia ou seja eles não conseguem ser sha só eu

Adicione isso no fim do código:

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
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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive, total = players()
if total > 1 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 not v.isDead then
tfm.exec.setPlayerScore(k, 5, true)
end
end
end
end
end
end

tfm.exec.disableAutoNewGame()
tfm.exec.disableAutoScore()

Deve funcionar.. Eu não lembro como surv funciona :c

Dernière modification le 1518223140000
Neo
« Citoyen »
1518223380000
    • Neo#7537
    • Profil
    • Derniers messages
#660
  0
Bolodefchoco a dit :
Lxlevel a dit :
Bolodefchoco a dit :
Lxlevel a dit :
modo de survivor que você fez para mim tem como mudar para modo survivor, nos botes 1 - cn pra baixo 2 - cn para direita 3 - cn para esquerda 4 - sp 5- caixa, o resto vc define como está

Não é possível alterar isso, also

Você pode jogar #cannonup, é um survivor automático que não tem shaman

Moço tava jogando com amigos e quando eles ganham eles não estão ganhando os pontos, de sobrevivencia ou seja eles não conseguem ser sha só eu

Adicione isso no fim do código:

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
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

eventLoop = function(current, elapsed)
if newMap then
tfm.exec.newGame("#10")
else
local shaman, alive, total = players()
if total > 1 then
local time = false
if shaman < 1 then
time = true
if not winners then
winners = true
for k, v in next, tfm.get.room.playerList do
if not v.isDead then
tfm.exec.setPlayerScore(k, 5, true)
end
end
end
end
time = time or alive < 2

if time then
tfm.exec.setGameTime(10, false)
end
end

if elapsed < 2000 then
newMap = true
end
end
end
tfm.exec.disableAutoNewGame()
tfm.exec.disableAutoScore()

Deve funcionar.. Eu não lembro como surv funciona :c

Infelizmente não foi, Explicando: Survivor é um jogo onde você sobrevive com o sha tentando-lhe matar, após ganhar você ganha o score de 10 pontos a cada rodada sobrevivida, quem tiver mais scores é o proximo sha, e assim que acaba a vez de sha dele, o score dele é zerado e a pessoa com mais pontos é o proximo shaman, assim por diante
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 33 / 133 › »
© Atelier801 2018

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

Version 1.27