Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time=-3;
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.newGame('<C><P Ca="" /><Z><S><S lua="1" L="80" o="324650" H="40" X="200" Y="210" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S lua="2" P="0,0,0.3,0.2,0,0,0,0" L="80" o="324650" X="400" Y="210" T="12" H="40" /><S lua="3" L="80" o="324650" X="600" H="40" Y="210" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="169" X="404" /></D><O /></Z></C>')
- ui.addTextArea(0,"<p align='center'><J><font size='20'>Prepare-se</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- function eventNewGame()
- time=-3;
- ui.addTextArea(0,"<p align='center'><J><font size='20'>Prepare-se</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- end
- function eventLoop()
- time=time+0.5;
- if time == 1 then
- ui.addTextArea(0,"<p align='center'><J><font size='20'>3</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- elseif time == 2 then
- ui.addTextArea(0,"<p align='center'><J><font size='20'>2</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- elseif time == 3 then
- ui.addTextArea(0,"<p align='center'><J><font size='20'>1</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- elseif time == 4 then
- ui.addTextArea(0,"<p align='center'><J><font size='20'>Começou!</font></p>",nil,0,25,800,nil,1,1,0.7,true)
- tfm.exec.addShamanObject(59,200,400)
- tfm.exec.addShamanObject(59,400,400)
- tfm.exec.addShamanObject(59,600,600)
- tfm.exec.removePhysicObject(1)
- tfm.exec.removePhysicObject(2)
- tfm.exec.removePhysicObject(3)
- end
- end
- function eventPlayerDied(p)
- tfm.exec.addShamanObject(59,tfm.get.room.playerList[p].x, 400)
- local i = 0;
- local p = nil;
- for i,v in pairs(tfm.get.room.playerList) do
- if not v.isDead then
- i=i+1;
- p=i;
- end
- end
- if i <= 1 then
- tfm.exec.giveCheese(p)
- tfm.exec.playerVictory(p)
- tfm.exec.newGame('<C><P Ca="" /><Z><S><S lua="1" L="80" o="324650" H="40" X="200" Y="210" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S lua="2" P="0,0,0.3,0.2,0,0,0,0" L="80" o="324650" X="400" Y="210" T="12" H="40" /><S lua="3" L="80" o="324650" X="600" H="40" Y="210" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="169" X="404" /></D><O /></Z></C>')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment