Make it snow in the current map
Set a player as a vampire
Kill somebody in the current room
Change the map in the current room
Give the cheese to a player in the current room
Make the player win the map in the current room
Make everyone in the current room fly
Spawn a cannon with the z or x keys in the current room
Markdown (GitHub flavored):
tfm.exec.snow()
Markdown (GitHub flavored):
tfm.exec.setVampirePlayer("Name")
Markdown (GitHub flavored):
tfm.exec.killPlayer("Name")
Markdown (GitHub flavored):
tfm.exec.newGame("@")
Markdown (GitHub flavored):
tfm.exec.giveCheese("Name")
Markdown (GitHub flavored):
tfm.exec.playerVictory("Name")
Markdown (GitHub flavored):
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({38, 87}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name,key,down,x,y)
if key==38 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
elseif key==87 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
end
end
// credit to dark_nlght
Markdown (GitHub flavored):
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({88, 90}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key == 88 then
tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
elseif key == 90 then
tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
end
end
// credit to dark_nlght
Last edited:






