transformice

The Lua Coder event is a Lua event developed by Bolodefchoco #0095.

Instructions

"Some Lua code fragments were stolen! The thief hid the fragments behind some objects. Find these fragments and organize them in your compiler to win a prize!"

There are eighteen various "fragments" that can be found by ducking under (pressing the down button multiple times) some objects that you can walk behind. It is good to go left/right slightly, as the location of the fragment is very specific. If another mouse has already ducked under an object, that fragment cannot be claimed again that round by anyone in the room, even mice that weren't the ones who claimed the fragment. 

After collecting enough fragments, the next time you play the event, you are shown a compiler where you can edit your code. Click two line numbers to switch them, or two words to switch them. When done, press submit to run the code.

Scripts

8 lines

event_title = "Turing mouse"
if not tfm.get.room.playerList["USERNAME"].hasCheese then
  tfm.exec.giveCheese ("USERNAME")
end
tfm.exec.playerVictory ("USERNAME")
function eventPlayerWon (playerName)
  system.giveEventGift (playerName,event_title)
end

9 lines

event_title = "Turing mouse"
if tfm.get.room.playerList["USERNAME"].hasCheese then
  tfm.exec.killPlayer ("USERNAME")
else
  tfm.exec.giveCheese ("USERNAME")
end
function eventPlayerGetCheese (playerName)
  system.giveEventGift (playerName,event_title)
end

11 lines

event_title = "Turing mouse"
function eventPlayerVampire (playerName)
  tfm.exec.killPlayer ("USERNAME")
  tfm.exec.respawnPlayer ("USERNAME")
end
if not tfm.get.room.playerlist.["USERNAME"].isVampire then
  tfm.exec.setVampirePlayer ("USERNAME")
end
function eventPlayerRespawn (playerName)
  system.giveEventGift (playerName,event_title)
end

Maps

The map XMLs of the event were user-made by Censere #0095Kimsterjay #0000Mquk #0095Tdft #0000 and Bolodefchoco #0095.

Maps were picked from the submission thread, the first occurrence of a Lua event using user-created XML maps.

Rewards

Beating the event more than once does not get you anything extra.

Trivia

Gallery

Videos

External links