Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system.bindKeyboard(n, 3, true, true)
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- function eventPlayerDied(playerName)
- print(playerName.."Died ):")
- end
- function eventNewPlayer(playerName)
- print(playerName.."Hi")
- end
- function eventPlayerLeft(playerName)
- print(playerName.." bye ")
- end
- tfm.exec.setUIMapName("Snow War")
- function eventNewPlayer(n)
- system.bindKeyboard(n, 3, true, true)
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- function eventKeyboard(n,key,down,Px,Py)
- if key == 3 then
- if tfm.get.room.playerList[n].isFacingRight then
- tfm.exec.addShamanObject(10, Px+5, Py-3, 0, 20, 0)
- else
- tfm.exec.addShamanObject(10, Px-5, Py-3, 0, -20, 0)
- end
- end
- end
- function eventSummoningEnd(playerName, 34, xPosition, yPosition, angle, 50, 50, other)
- if objectType==10 then
- print(playerName.." has spawned an anvil! Let's remove it.")
- tfm.exec.removeObject(other.id)
- end
- end
- tfm.exec.snow(999999999,45)
- ui.addTextArea(1,"Kill your anime.",nil,350,180,100,40,0x6C77C1,0x6C77C1,0.8,true)
- function eventSummoningEnd(playerName, 17, 50, 50, angle, xSpeed, ySpeed, other)
- if objectType==10 then
- print(playerName.." has spawned an anvil! Let's remove it.")
- tfm.exec.removeObject(other.id)
- end
- end
- maps={"@7478080","@CODE","@CODE"}
- function toStart()
- local i=0
- for n,p in pairs(tfm.get.room.playerList) do
- if not p.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- eventPlayerDied=toStart
- eventPlayerWon=toStart
- function eventLoop(time,remaining)
- if remaining <= 0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- tfm.exec.disableAutoShaman()
- tfm.exec.disableAutoNewGame()
- tfm.exec.setGameTime(100,true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement