×

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!
« ‹ 5 / 11 › »
[Event] The Lua Coder!
Charikaan
« Citoyen »
1498900500000
    • Charikaan#0000
    • Profil
    • Derniers messages
#81
  0
Kimsterjay a dit :
Nice module event!

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

*grins*

plz kindly message me and Poxies the anser xD
Yenlui87
« Citoyen »
1498901880000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#82
  0
I see :) It make sense now. The functions are trigered by an event !
So make the envent happen : kill / respawn
then the respawn function (wich start in the event of and not refine the event, i was confuse about that) sets you as a vampire
then the vampire event function gives you the gift.

But the "end" at the begining seems weird to me, should it not be at the very end ?
Sebafrancuz
« Consul »
1498903140000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#83
  0
end is always afer if ..then condition and after function name_Of_Function()
if ... then
--instructions
end

function Name()
--instructions
end
Zuzka
« Citoyen »
1498903860000
    • Zuzka#7298
    • Profil
    • Derniers messages
    • Tribu
#84
  1
For me "end" was at the beginning 2 times already ;[
How should i solve that?
Yenlui87
« Citoyen »
1498904040000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#85
  0
Ok so I think i understand... but it didn't work
https://image.ibb.co/cAw8A5/this_should_work.png

I've also tried having the if not ... then inside the event respawn function but it didn't work either.
I feel that i understand, thank to all your help (and so THANKS :) but... i must still be missing something...
Yenlui87
« Citoyen »
1498904280000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#86
  0
Man i love this event :) A shame the maps goes so fast !
Kexus
« Citoyen »
1498904580000
    • Kexus#0000
    • Profil
    • Derniers messages
    • Tribu
#87
  1
Has anyone figured out the correct code order? I'm desperate af
Peanut_butter
« Consul »
1498904940000
    • Peanut_butter#0095
    • Profil
    • Derniers messages
    • Tribu
#88
  0
Maybe for the vampire one you have to be a vampire, then kill yourself to become a normal mouse and if you're not a vampire, you win!
so somehow like this?

Code Lua

1
2
3
4
5
6
7
8
9
10
11
event_title = "Turing Mouse"
tfm.exec.set.VampirePlayer("Fire_tiger")
end
function eventPlayerVampire(playername)
tfm.exec.killPlayer("Fire_tiger")
tfm.exec.respawnPlayer("Fire_tiger")
end
function eventPlayerRespawn(playername)
if not tfm.get.room.playerList["Fire_tiger"].isVampire then
system.giveEventGift (playerName,event_title)
end
Yenlui87
« Citoyen »
1498905480000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#89
  0
Nice idea ! I'll give it a try and post the result.
Yenlui87
« Citoyen »
1498905660000
    • Yenlui87#0000
    • Profil
    • Derniers messages
    • Tribu
#90
  0
Mmmm... but the end at the begining doesn't "end" anything. Maybe stiking it inside the respawn function
like
set.Vampire
function ....
kill
respawn
end
function ...
if not... then
end
give
end
Karingowgm
« Citoyen »
1498909860000
    • Karingowgm#5787
    • Profil
    • Derniers messages
    • Tribu
#91
  0
Quelqu'un peut m'expliquer l'évènement ? car ↓ http://img.atelier801.com/0024f17c.png
1. Je ne comprends jamais le "LUA" !
2. La présentation n'a pas dit comment jouer ou il faut quoi faire dans la map/carte (enfaite c'est la même queston seulement d'une façon différente xd) !
Can someone explain the event to me ? because ↓ http://img.atelier801.com/0024f17c.png
1. I never understand the "LUA" !
2. The presentation did not say how to play or what to do in the map (in fact it is the same queston only in a different way xd) !

Dernière modification le 1498909980000
Eironeia
« Sénateur »
1498910280000
    • Eironeia#0273
    • Profil
    • Derniers messages
    • Tribu
#92
  0
Currently have 17/18
Aaah I'm scared of the LUA
Sebafrancuz
« Consul »
1498910580000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#93
  0
Yenlui87 a dit :
Ok so I think i understand... but it didn't work
https://image.ibb.co/cAw8A5/this_should_work.png

I've also tried having the if not ... then inside the event respawn function but it didn't work either.
I feel that i understand, thank to all your help (and so THANKS :) but... i must still be missing something...

Small tip:
if not ...isVampire then
changeToVampire
end
Perlchen
« Consul »
1498912380000
    • Perlchen#0000
    • Profil
    • Derniers messages
    • Tribu
#94
  0
Well I got this:


http://i.imgur.com/P9UZpUH.png


But I honestly have no idea how this is supposed to work and I don't understand anything about Lua, lol. Rip.
Peanut_butter
« Consul »
1498913340000
    • Peanut_butter#0095
    • Profil
    • Derniers messages
    • Tribu
#95
  1
Perlchen a dit :
Well I got this:


http://i.imgur.com/P9UZpUH.png


But I honestly have no idea how this is supposed to work and I don't understand anything about Lua, lol. Rip.

The only Lua you need to know is how the word order looks like.

First, you need to put the words in order by clicking them and switching them up. You can only switch the words in one line (row).
You can find the correct order in other comments.
It takes around 10-15 seconds to do if you are concentrating.

After you got the word order, you have to put the lines in order by clicking the numbers next to the lines.
Each event (row) there has an effect on your mouse. It's pretty easy to figure out.
For example the tfm.exec.killPlayer kills your player, then you can use the tfm.exec.respawnPlayer to respawn your player.
It is important to know that the "function" event checks if something has happened before, so it always comes after you did something.
Example:

tfm.exec.killPlayer("Name") - kills you
function eventPlayerKill("Name") - checks if you have been killed

The "if, then" event checks if something has happened, and does something if it did (or did not).

If not tfm.get.room.playerList["Name"].isVampire then - If you are not a vampire then something will happen to you (that you need to add in the next row)
If tfm.get.room.playerList["Name"].gotCheese then - If you have cheese then something will happen to you (that you need to add in the next row)

The others are pretty easy to figure out what they do. Good luck!
Whitey
« Citoyen »
1498914060000
    • Whitey#4652
    • Profil
    • Derniers messages
#96
  0
https://image.prntscr.com/image/AYxDZeFnQZ6Q0LyK68n2xA.png

What code it must be?
Surgeon
« Citoyen »
1498914600000
    • Surgeon#9519
    • Profil
    • Derniers messages
#97
  0
Wait I'm so confused on how to figure it out
Like how to move the coding
Peanut_butter
« Consul »
1498915020000
    • Peanut_butter#0095
    • Profil
    • Derniers messages
    • Tribu
#98
  0
Just click the numbers next to the lines (1-11)
Eironeia
« Sénateur »
1498915200000
    • Eironeia#0273
    • Profil
    • Derniers messages
    • Tribu
#99
  0
This is confusing.
Perlchen
« Consul »
1498918800000
    • Perlchen#0000
    • Profil
    • Derniers messages
    • Tribu
#100
  1
I tried the code Fire wrote a few posts earlier

(this one)
http://i.imgur.com/onGk5zc.png


but it didn't work. Sooo I guess it's something else for the Vampire one. Would have been too easy, aww.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • [Event] The Lua Coder!
« ‹ 5 / 11 › »
© Atelier801 2018

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

Version 1.27