Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rotacion = {"3", "4"}
- rotaciona = {"1", "2"}
- r=0;
- meow=0;
- function main()
- tfm.exec.disableAutoScore (true);
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame(rotacion[math.random(#rotacion)])
- end
- function eventNewGame()
- r=r+1;
- if r == 1 then
- rotacion1()
- end
- if r == 2 then
- rotacion2()
- end
- if r == 3 then
- rotacion1()
- end
- end
- function rotacion1()
- r=1;
- print("Estás en la rotación 1")
- for player in pairs(tfm.get.room.playerList) do
- meow=meow+1;
- end
- end
- function rotacion2()
- print("Estás en la rotación 2")
- for player in pairs(tfm.get.room.playerList) do
- meow=meow+1;
- end
- end
- function eventLoop(ct,rt)
- if rt <= 0 then
- if r == 1 then
- tfm.exec.newGame(rotaciona[math.random(#rotaciona)])
- end
- if r == 2 then
- tfm.exec.newGame(rotacion[math.random(#rotacion)])
- end
- end
- if meow == 0 then
- if r == 1 then
- tfm.exec.newGame(rotaciona[math.random(#rotaciona)])
- end
- if r == 2 then
- tfm.exec.newGame(rotacion[math.random(#rotacion)])
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement