Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _,v in pairs ({'disablePhysicalConsumables','disableAutoNewGame','disableMortCommand','disableAutoShaman'}) do
- tfm.exec[v](true)
- end
- maps = {3349286,292592,1277941,6893010,390657,464787,6891734}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventNewGame()
- tfm.exec.setUIMapName("#Shams")
- for n,p in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(n)
- end
- end
- function eventPlayerDied(name)
- local i=0
- local n
- for pname,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- n=pname
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- elseif i==1 then
- tfm.exec.giveCheese(n)
- tfm.exec.playerVictory(n)
- tfm.exec.setGameTime(5)
- end
- end
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement