![]() |
![]() ![]() « Citoyen » 1500710160000
| 0 | ||
ya quiero probar Apocalipsis se ve divertido |
![]() ![]() « Citoyen » 1501544220000
| 0 | ||
Hola Cannonllx, pues mira tengo un problema yo copio el script y solo se queda en el mapa casa tribu y caen los cañones, ¿Qué hago? |
![]() ![]() « Citoyen » 1501548540000
| 0 | ||
EXACTO, ME PASA LO MISMO |
![]() ![]() « Consul » 1501556160000
| 0 | ||
Script minimamente modificado para los que quieran probar este minijuego. 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 local random = math.random |
![]() ![]() « Citoyen » 1603402980000
| 0 | ||
a dit : Despuès de varios años volvì para retomar el proyecto. Aquì le deje el script de està actualizaciòn: -Nuevo mapa(E unico en esta actualizaciòn) -Sistema de vida -Nueva rotaciòn de mapa(ya no deberia de fallar) En la pròxima actulizaciòn: -Mejorar el hilo -Mejorar el Script -Agregar nuevas cosas (sorpresas) Error de la actulizaciòn: en el mapa del juego los cañones no trapazan el suelo.. (Me disculpo pero creer el mapa tan ràpido que se me paso queria que supieran que habia retomado el proyecto que se me fue la mano). Dernière modification le 1603403100000 |
![]() ![]() « Citoyen » 1603565460000
| 0 | ||
Actualización: V.0.9 Se han arreglado todos los errores pasados, se han implementado nuevas cosas como cañones que salen de abajo hacia arriba, vientos que te dificultan las cosas. data={}; local objects = {17}; local ticks = 0 TIME_P = 2. lluvia={"26"} pAtOnce=30 radiusX=100 radiusY=100 for player in pairs(tfm.get.room.playerList) do newData={ ["vidas"]=3; }; data[player] = newData; end maps = {7795434} tfm.exec.disableAutoNewGame() tfm.exec.disableAutoShaman() system.players=function() local alive,players = {},{} for k,v in next,tfm.get.room.playerList do if not v.isDead then alive[#alive+1]=k end players[#players+1]=k end return alive,players end function eventPlayerDied(player) data[player].vidas=data[player].vidas-1; if data[player].vidas >= 1 then tfm.exec.respawnPlayer(player) end end eventLoop=function(time) local alive = system.players() if time <= 0 or #alive < 1 then local lastMap = currentMap or 0 repeat currentMap = maps[math.random(#maps)] until currentMap ~= lastMap tfm.exec.newGame(currentMap) end for player in pairs(tfm.get.room.playerList) do if data[player].vidas == 3 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,60,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,90,35,0,0, 0, 0, player) end if data[player].vidas == 2 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,60,35,0,0, 0, 0, player) end if data[player].vidas == 1 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) end ticks = ticks + 1 if ticks == 10 then local x = math.random(0,800) local y = 370 tfm.exec.addShamanObject(17, x, y, 0, 0, 0, false) ticks = 0 end end for i=1,math.random(1) do tfm.exec.addShamanObject (objects[math.random(#objects)], math.random(800), math.random(-50), math.random(360)); end for i=1,pAtOnce do tfm.exec.displayParticle(lluvia[math.random(#lluvia)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil) end end eventNewGame=function() tfm.exec.setGameTime(TIME_P*60) for player in pairs(tfm.get.room.playerList) do data[player].vidas = 3; end end function eventNewPlayer(player) newData={ ["vidas"]=0; }; data[player] = newData; end eventLoop(-1) En la pròxima actualizaciòn se implementara perfiles, ranking, nuevos obstaculo, bot, rondas y muchas cosas nuevas. Para los que quieran crear mapas para el module escribanme al priv. |
![]() ![]() « Citoyen » 1603734060000
| 0 | ||
Cuenta Alt para no pùblicar 3 veces. Mini Actualización: v.0.9.1
data={}; local objects = {17}; local ticks = 0 TIME_P = 2. lluvia={"26"} pAtOnce=30 radiusX=100 radiusY=100 for player in pairs(tfm.get.room.playerList) do newData={ ["vidas"]=3; }; data[player] = newData; end maps = {7795434, 7795891, 7795894} tfm.exec.disableAutoNewGame() tfm.exec.disableAutoShaman() system.players=function() local alive,players = {},{} for k,v in next,tfm.get.room.playerList do if not v.isDead then alive[#alive+1]=k end players[#players+1]=k end return alive,players end function eventPlayerDied(player) data[player].vidas=data[player].vidas-1; if data[player].vidas >= 1 then tfm.exec.respawnPlayer(player) tfm.exec.movePlayer(player,tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y) end end eventLoop=function(time) local alive = system.players() if time <= 0 or #alive < 1 then local lastMap = currentMap or 0 repeat currentMap = maps[math.random(#maps)] until currentMap ~= lastMap tfm.exec.newGame(currentMap) end for player in pairs(tfm.get.room.playerList) do if data[player].vidas == 3 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,60,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,90,35,0,0, 0, 0, player) end if data[player].vidas == 2 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) tfm.exec.displayParticle(5,60,35,0,0, 0, 0, player) tfm.exec.giveMeep (player) end if data[player].vidas == 1 then tfm.exec.displayParticle(5,30,35,0,0, 0, 0, player) end ticks = ticks + 1 if ticks == 10 then local x = math.random(0,800) local y = 370 tfm.exec.addShamanObject(17, x, y, 0, 0, 0, false) ticks = 0 end end for i=1,math.random(1) do tfm.exec.addShamanObject (objects[math.random(#objects)], math.random(800), math.random(-50), math.random(360)); end for i=1,pAtOnce do tfm.exec.displayParticle(lluvia[math.random(#lluvia)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil) end end eventNewGame=function() tfm.exec.setGameTime(TIME_P*60) for player in pairs(tfm.get.room.playerList) do data[player].vidas = 3; end end function eventNewPlayer(player) newData={ ["vidas"]=0; }; data[player] = newData; end eventLoop(-1) -Niseparaquepùblicosiestesubforoestabienmuertoxdd- |
![]() ![]() « Censeur » 1603766460000
| 0 | ||
Cierro a petición del autor del hilo. |