×

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
  • /
  • Guia Module + Tópico de Dúvidas
« ‹ 55 / 55
Guia Module + Tópico de Dúvidas
+Lucasmr
« Citoyen »
1392562140000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#1081
  0
Brenower a dit :
É os dois e.e
Mais tu pode fazer uma function para isso:


Tu usa ela assim:
[url][/url]

Eu gosti mais do 2 jeito... mas ainda preferia q do meu jeito funfase e-e
Brenower
« Censeur »
1392562260000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#1082
  0
+Lucasmr a dit :
Eu gosti mais do 2 jeito... mas ainda preferia q do meu jeito funfase e-e

e.e
Pelo 2° jeito dá para tu aprender mais um pouco sobre lua.
Petrenrenpet
« Citoyen »
1392597960000
    • Petrenrenpet#0000
    • Profil
    • Derniers messages
    • Tribu
#1083
  0
kd o erro breno
a dit :
maps={"@511136","@3999991","@3547571","@3161324","@3012311","@4317592","@3734991","@3734997","@3750360","@3734998","@3999979","@4390388","@4367270","@3137929","@3547571","@3471016","@2860211","@2967631","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@3668888","@3850000","@3264848","@2996951","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@2805938","@3815568","@720672","@3849999","@3551333","@3493490","@3136410","@842019","@3668888","@3850000","@3668877","@3200001","@3483300","@3920916","@3395605","@3386996","@3478040","@4656973","","",""};
tempo=350; -- Tempo em segundos
respawn=1; -- 1 = true 2 = false
admins = {Petrenrenpet = true, Apelido2 = true}

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame(maps[math.random(#maps)])

function eventNewGame()
tfm.exec.setGameTime(tempo)
end

function eventPlayerDied(p)
if respawn == 0 then

local i = 0;

for v in pairs(tfm.get.room.playerList) do
i=i+1;
end
if i == 0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
end

function eventPlayerWon(p)
if respawn == 1 then
tfm.exec.respawnPlayer(p)
else
local i = 0;
for v in pairs(tfm.get.room.playerList) do
i=i+1;
end
if i == 0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
end

function eventLoop(ct,rt)
if rt <= 0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end

function eventChatCommand(p,c)
if c==[[skip]] and p==[[Petrenrenpet]] then
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setGameTime(tempo)

elseif c==[[mort]] then
tfm.exec.killPlayer(p)
end
end

function eventNewPlayer(p)
tfm.exec.respawnPlayer(p)
end

eu mexi em algo daquela parte em destaque ;---;
Brenower
« Censeur »
1392598140000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#1084
  0
Petrenrenpet a dit :
kd o erro breno
eu mexi em algo daquela parte em destaque ;---;

Era só botar um else, assim:
a dit :

function eventPlayerDied(p)
if respawn == 0 then

local i = 0;
for v in pairs(tfm.get.room.playerList) do
i=i+1;
end
if i == 0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
else
tfm.exec.respawnPlayer(p)
end
end

[url][/url]
+Lucasmr
« Citoyen »
1392649320000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#1085
  0
tem como pelo xml, detectar se o rato encostou em algum piso? se sim sabe como? e-e
Stheblindd
« Citoyen »
1392651900000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#1086
  0
+Lucasmr a dit :
tem como pelo xml, detectar se o rato encostou em algum piso? se sim sabe como? e-e

Crie uma função que pegue as propriedades de todos os pisos, assim, no eventLoop rode um "for" para os ratos e pisos e, então, cheque a posição do rato quanto aos pisos.
+Lucasmr
« Citoyen »
1392672240000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#1087
  0
Se uma pessoa criar um tuto, e eu utilizar o tutorial para criar um mini game terei qe colocar creditos? Ex: O tuto de esconder o autor do script e o de data do breno..
Brenower
« Censeur »
1392674280000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#1088
  0
+Lucasmr a dit :
Se uma pessoa criar um tuto, e eu utilizar o tutorial para criar um mini game terei qe colocar creditos? Ex: O tuto de esconder o autor do script e o de data do breno..

Se utilizar parte do tutorial indique o outro tópico.
+Lucasmr
« Citoyen »
1392674940000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#1089
  0
E se alguem me der a ideia de criar?.. terei qe colocar creditos?

#EDIT: Entao se alguem criar uma rotação de mapas, tera q colocar os meus creditos u.u pq eu fiz o tuto
Brenower
« Censeur »
1392675180000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#1090
  0
+Lucasmr a dit :
E se alguem me der a ideia de criar?.. terei qe colocar creditos?

Não
Mais se quiser
Bote
Blowtex
« Citoyen »
1392771960000
    • Blowtex#0000
    • Profil
    • Derniers messages
    • Tribu
#1091
  0
Como eu faço um mapa usando Imagens? Igual aquele da pesca etc...

Como eu COLOCO as imagens no mapa pfv! me ensinem?
Laagaadoo
« Citoyen »
1392772560000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#1092
  0
Blowtex a dit :
Como eu faço um mapa usando Imagens? Igual aquele da pesca etc...

Como eu COLOCO as imagens no mapa pfv! me ensinem?

Não tem como (apenas sendo do Module Team).
Doneky
1392772680000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#1093
[Modéré par Modrogon]
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Guia Module + Tópico de Dúvidas
« ‹ 55 / 55
© Atelier801 2018

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

Version 1.27