×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • [Event] The Lua Coder!
« ‹ 4 / 11 › »
[Event] The Lua Coder!
Frozakkii
« Citoyen »
1498863600000
    • Frozakkii#6026
    • Profil
    • Derniers messages
    • Tribu
#61
  0
finally finished. didnt know why it wasnt working until now

Dernière modification le 1498865760000
Nuts
« Citoyen »
1498864260000
    • Nuts#9197
    • Profil
    • Derniers messages
#62
  0
you need to be able to have /np code command checked for your rank I think
Peanut_butter
« Consul »
1498864560000
    • Peanut_butter#0095
    • Profil
    • Derniers messages
    • Tribu
#63
  0
You can't do it in your tribe house. You have to complete it on the event map! :)
Frozakkii
« Citoyen »
1498865760000
    • Frozakkii#6026
    • Profil
    • Derniers messages
    • Tribu
#64
  0
Fire_tiger a dit :
You can't do it in your tribe house. You have to complete it on the event map! :)

didnt have time to take a screenshot on the event so i copied it to ./lua for a picture
Hajime
« Censeur »
1498865940000
    • Hajime#4693
    • Profil
    • Derniers messages
    • Tribu
#65
  1
i cant even understand this so im not able to finish it ripp
Shyrtia
« Sénateur »
1498867860000
    • Shyrtia#0000
    • Profil
    • Derniers messages
    • Tribu
#66
  0
me too Raven :(
i think u do /lua and enter the word violet
Yenlui87
« Citoyen »
1498870620000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#67
  0
Is it possible to test the code outside of the even map ? Because they are WAY too short ! I barely have time to test anything there...
Also... can a function be inside another function. I tried having to function "in a row" then tried to nest them, but again... with so little time it's hard :/
So would i try something more like :
Code Lua

1
2
3
4
5
6
7
8
9
10
11
event_title = "Turing Mouse"
function eventPlayerVampire (playerName)
if not tfm.get.room.playerList["Yenlui87"].isVampire then
tfm.exec.setVampierPlayer ("Yenlui87")
end
function eventPlayerRespawn (playerName)
tfm.exec.killPlayer ("Yenlui87")
tfm.exec.respawnPlayer ("Yenlui87")
end
system.giveEventGift (playerName,event_title)
end
or more like
Code Lua

1
2
3
4
5
6
7
8
9
10
11
event_title = "Turing Mouse"
function eventPlayerVampire (playerName)
if not tfm.get.room.playerList["Yenlui87"].isVampire then
function eventPlayerRespawn (playerName)
tfm.exec.killPlayer ("Yenlui87")
tfm.exec.respawnPlayer ("Yenlui87")
end
tfm.exec.setVampierPlayer ("Yenlui87")
end
system.giveEventGift (playerName,event_title)
end
I'm not sure what i try to accomplish there. Something like If i'm not a vampire then make me one then kill/respawn me to make the change then... idk...
Probably too tired to think about that :)
But if someone could help me get on the right direction that would be very welcome
Censere
« Consul »
1498873080000
    • Censere#0095
    • Profil
    • Derniers messages
    • Tribu
#68
  4
great maps, i wonder who made them
Surgeon
« Citoyen »
1498877880000
    • Surgeon#9519
    • Profil
    • Derniers messages
#69
  1
I'm confused on how to do this
City_lights
« Censeur »
1498882980000
    • City_lights#8099
    • Profil
    • Derniers messages
#70
  0
wait so you can use lua coding to get the title without fragments or do you need the fragments and then to lua code to get it
Hajime
« Censeur »
1498883400000
    • Hajime#4693
    • Profil
    • Derniers messages
    • Tribu
#71
  0
Epicalmeow a dit :
wait so you can use lua coding to get the title without fragments or do you need the fragments and then to lua code to get it

you need to get all the fragments then the lua coding will come up
Northernseal
« Citoyen »
1498883520000
    • Northernseal#0000
    • Profil
    • Derniers messages
#72
  0
Does anyone understand this map? If so, can they explain it to me?
Adeya
« Citoyen »
1498889640000
    • Adeya#0000
    • Profil
    • Derniers messages
#73
  0
how do you get the fragments? i'm holding the down button, pressing it - no luck?
Xporygon
« Citoyen »
1498890660000
    • Xporygon#0000
    • Profil
    • Derniers messages
    • Tribu
#74
  0
Adeya a dit :
how do you get the fragments? i'm holding the down button, pressing it - no luck?

Try this
Fire_tiger a dit :
Epicalmeow a dit :
Wooo its back
Jst one question how does one obtain hese fragments

Duck behind objects multiple times untill you don't receive a message in chat.
Adeya
« Citoyen »
1498890900000
    • Adeya#0000
    • Profil
    • Derniers messages
#75
  0
ok, I was holding down the button I guess that's wrong. thanks!
Kimsterjay
« Consul »
1498891680000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#76
  0
Nice module event!

Drescen a dit :
great maps, i wonder who made them

*grins*

Dernière modification le 1498894380000
Vekanor
« Sénateur »
1498896840000
    • Vekanor#1700
    • Profil
    • Derniers messages
    • Tribu
#77
  0
Bogiwis właśnie odblokował/-a tytuł «Turing Mouse».
Wpisz /title by wybrać tytuł.
Twój tytuł zmieni się na «Turing Mouse» po zakończeniu tej rundy.
sry im from pl
Yenlui87
« Citoyen »
1498897680000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#78
  0
Wait a minute, am I the only one to have two function and some vampire involve ?
Fresita_cremosa
« Consul »
1498897860000
    • Fresita_cremosa#2222
    • Profil
    • Derniers messages
    • Tribu
#79
  0
think it is so
Code Lua

1
2
3
4
5
6
7
8
9
event_title = "Turing Mouse"
if not tfm.get.room.playerList["Alejo_igoa"].hasCheese then
tfm.exec.killPlayer("Alejo_igoa") else
eventPlayerGetCheese(playerName)
end
function
tfm.exec.giveCheese("Alejo_igoa")
system.giveEventGift (playerName,event_title)
end

:$
Peanut_butter
« Consul »
1498898700000
    • Peanut_butter#0095
    • Profil
    • Derniers messages
    • Tribu
#80
  0
Yenlui87 a dit :
Wait a minute, am I the only one to have two function and some vampire involve ?

My friend has a vampire one too, I tried to solve it, my code's probably right, but it's wrong lol

I think this is the correct one for the vampire, but only try this if you want the event to be spoiled for you, because it's fun to figure out on your own c:
Code Lua

1
2
3
4
5
6
7
8
9
10
11
event_title = "Turing Mouse"
tfm.exec.killPlayer("Fire_tiger")
tfm.exec.respawnPlayer("Fire_tiger")
end
function eventPlayerRespawn(playername)
if not tfm.get.room.playerList["Fire_tiger"].isVampire then
tfm.exec.set.VampirePlayer("Fire_tiger")
end
function eventPlayerVampire(playername)
system.giveEventGift (playerName,event_title)
end

Dernière modification le 1498899360000
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • [Event] The Lua Coder!
« ‹ 4 / 11 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27