Advertisement
Guest User

te flor is laba

a guest
Aug 17th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. map = {
  2. 7214563,
  3. 7273409
  4. }
  5. tfm.exec.setGameTime (6000, verdadero)
  6. tfm.exec.disableAutoShaman (verdadero)
  7. tfm.exec.disableAutoNewGame (verdadero)
  8. tfm.exec.setUIMapName ("¡El piso es lava!")
  9. tfm.exec .newGame (map [math.random (#map)])
  10. ilosc = 10
  11. para nombre, jugador en parejas (tfm.get.room.playerList) do
  12. tfm.exec.setPlayerScore (nombre, 0)
  13. end
  14. tfm.exec.addPhysicObject ( 1,800,387, {
  15. type = 6,
  16. restitution = 0.2,
  17. friction = 0.3,
  18. width = 1600,
  19. height = 37,
  20. groundCollision = true,
  21. miceCollision = true
  22. })
  23. to = 0
  24. czas = 10
  25. score = 0
  26.  
  27.  
  28. function eventLoop (timeRemaining, timeRemaining)
  29. if (to == 2) then
  30. czas = czas-1
  31. score = score + 1
  32. if (score == 10) luego
  33. por nombre, jugador en parejas (tfm.get.room.playerList) do
  34. tfm.exec.giveMeep (name)
  35. end
  36. end
  37. if (czas == 3) entonces
  38. usun = tfm.exec.addShamanObject ( math.random (1,7), math.random (100,1500) , 350,0,0,0, false)
  39. usunn = tfm. exec.addShamanObject ( math.random (1,7), math.random (100,1500) , 350,0,0,0, false)
  40.  
  41. termina
  42. if (czas == - 3) luego
  43. tfm.exec.removeObject (usun)
  44. tfm.exec.removeObject (usunn)
  45.  
  46. ilosc = ilosc - 1
  47. czas = ilosc
  48. tfm.exec.addPhysicObject (1,800,387, {
  49. tipo = 6,
  50. restitución = 0.2,
  51. fricción = 0.3,
  52. ancho = 1600,
  53. height = 37,
  54. groundCollision = true,
  55. miceCollision = true
  56. })
  57. tfm.exec.removePhysicObject (2)
  58. finaliza
  59.  
  60. si (czas <= 0) entonces
  61.  
  62. tfm.exec.addPhysicObject (1,800,387, {
  63. type = 6,
  64. restitution = 0.2,
  65. friction = 0.3 ,
  66. ancho = 1600,
  67. altura = 37,
  68. groundCollision = true,
  69. miceCollision = false
  70. })
  71. tfm.exec.addPhysicObject (2,800,387, {
  72. type = 3,
  73. restitution = 0.2,
  74. friction = 0.3,
  75. width = 1600,
  76. height = 37,
  77. groundCollision = true ,
  78. miceCollision = false
  79. })
  80.  
  81. ui.addTextArea (7, "<p align = 'center'> <font size = '50 'color =' # FF0000 '> EL PISO ES LAVA </font> </p>", nulo, 50, 125, 700 , 119, 0x324650, 0x000000, 0, verdadero, verdadero)
  82. else
  83. ui.addTextArea (7, "<p align = 'center'> <font size = '90 '>" .. czas .. "</font> </ p> ", nulo, 50, 125, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
  84. ui.addTextArea (5," ", nulo, 50, 250, 700, 119, 0x324650, 0x000000, 0, verdadero , verdadero)
  85. end
  86. to = 0
  87. else
  88. to = to + 1
  89. end
  90. if (ilosc == 4) then
  91. ilosc = 10
  92. end
  93. end
  94. liczba = 0
  95. tablica = {}
  96. zycie = {}
  97. e = 0
  98. para el nombre, jugador en parejas (tfm. get.room.playerList) do
  99. tablica [name] = 0
  100. e = e + 1
  101.  
  102. print (nombre)
  103. end
  104. print (e)
  105. función eventPlayerDied (n)
  106. tfm.exec.setUIShamanName (n .. "ha muerto")
  107. tfm.exec.setPlayerScore (n, -2, verdadero)
  108. tablica [n] = 1
  109. zycie [n] = 0
  110. e = e-1
  111. impresión (e)
  112. para el nombre, el jugador en pares (tfm.get.room.playerList) hacen
  113. si (tablica [nombre] == 0), entonces
  114. liczba = liczba + 1
  115. WYG = nombre
  116. extremo
  117. final
  118. función eventPlayerLeft (n)
  119. tablica [n] = 1
  120. zycie [n] = 0
  121. e = e-1
  122. print (e)
  123. para nombre, jugador en parejas (tfm.get.room.playerList) hacer
  124. if (tablica [name] == 0) luego
  125. liczba = liczba + 1
  126. wyg = nombre
  127. fin
  128. final
  129. fin
  130. si (liczba == 1) luego
  131. imprimir (wyg .. "wygral")
  132. tfm.exec.giveCheese (wyg)
  133. ui.addTextArea (5, "<p align = 'center'> <font size = '50 'color =' # FFFF00 '>" .. wyg .. "ha ganado el juego </font> </p>", nil, 50, 250, 700, 500, 0x324650, 0x000000, 0, verdadero, verdadero)
  134. tfm.exec.playerVictory (wyg)
  135. tfm.exec.newGame (map [math.random (#map)])
  136. tfm.exec.addPhysicObject (1,800,387, {
  137. type = 6,
  138. restitution = 0.2,
  139. friction = 0.3,
  140. width = 1600,
  141. height = 37,
  142. groundCollision = true,
  143. miceCollision = true
  144. })
  145. a = 0
  146. czas = 10
  147. score = 0
  148. e = 0
  149. tablica = {}
  150. ilosc = 10
  151. tfm.exec.setPlayerScore (wyg, score, true)
  152. por nombre, jugador en parejas (tfm.get.room.playerList) do
  153. tablica [name] = 0
  154. zycie [name] = 1
  155. e = e + 1
  156. end
  157. wyg = ""
  158. liczba = 0
  159. print (e)
  160. sino
  161. liczba = 0
  162. fin
  163. final
  164. función eventPlayerRespawn (nn)
  165. if (zycie [nn] == 0) entonces
  166. tfm.exec.setVampirePlayer (nn)
  167. fin
  168. final
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement