×

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
  • /
  • Modules
  • /
  • [Script] Christmas tree lights
[Script] Christmas tree lights
Esh
« Censeur »
1417368480000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Hi!

I was bored and decided to make a script for Christmas! With this script, your Christmas tree in your tribe house will shine:

http://i.imgur.com/VWAAEVK.png?1?2482

script: HERE

To use, simply load the script and run a map with the Christmas tree, the script will search the tree positions and BOOM: lights!

Merry Christmas to all! ^-^
Foenixtake
« Citoyen »
1417369620000
    • Foenixtake#0000
    • Profil
    • Derniers messages
#2
  0
Nice! This looks really good! How much time did it take to do this? :P
Esh
« Censeur »
1417369740000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#3
  0
5 minutes to get the regex(xml thing)
Foenixtake
« Citoyen »
1417484100000
    • Foenixtake#0000
    • Profil
    • Derniers messages
#4
  0
Only? I'm like a beginner at coding. This is pwettyyy..... Too bad I'll nvr use it because:
  • I don't celebrate Christmas
  • I'm not in a tribe and they don't really fit me....
  • I don't like to use the best stuff ^
  • Komuyu
    « Citoyen »
    1417563180000
      • Komuyu#3691
      • Profil
      • Derniers messages
    #5
      0
    It won't work for me :(
    Ratatoullioe
    « Citoyen »
    1417566060000
      • Ratatoullioe#0000
      • Profil
      • Derniers messages
    #6
      0
    Great!
    Alejocapocr
    « Citoyen »
    1417735020000
      • Alejocapocr#0000
      • Profil
      • Derniers messages
    #7
      0
    You can do rain whit this script :O
    Moshimoshiz
    « Citoyen »
    1417735740000
      • Moshimoshiz#0000
      • Profil
      • Derniers messages
      • Tribu
    #8
      0
    I'm gonna play it at my tribe's Christmas party
    Chamelinct
    « Censeur »
    1418512980000
      • Chamelinct#0000
      • Profil
      • Derniers messages
      • Tribu
    #9
      0
    WOW, IT'S NICE! Thanks
    Lilytenten
    « Citoyen »
    1419098700000
      • Lilytenten#0000
      • Profil
      • Derniers messages
    #10
      0

    I love this! It rocks!!
    I did it with a friend, and we partied!
    https://farm8.staticflickr.com/7504/16039048936_0084820077_o.jpg

    Sdteletdss
    « Citoyen »
    1419166800000
      • Sdteletdss#0000
      • Profil
      • Derniers messages
      • Tribu
    #11
      0
    Nice script! :)
    Brusen
    « Citoyen »
    1422791460000
      • Brusen#0000
      • Profil
      • Derniers messages
      • Tribu
    #12
      0
    What exactly do I need to write o.o
    Brusen
    1422791760000
      • Brusen#0000
      • Profil
      • Derniers messages
      • Tribu
    #13
    [Modéré par Shamousey, raison : You can edit your previous posts by clicking on your username or avatar then pressing the "edit" button.]
    Woebegone
    « Citoyen »
    1422891060000
      • Woebegone#8377
      • Profil
      • Derniers messages
      • Tribu
    #14
      0
    Brusen a dit :
    What exactly do I need to write o.o

    In your tribe house, type in /lua and in the box that pops up, paste this in:
    dec = {}
    startLights = false
    ids = {0,1,2,4,9}

    function eventNewGame()
    startLights = false
    dec = {}
    count = 0
    xml = tfm.get.room.xmlMapInfo.xml
    decorations = xml:match('<D>[^´]+/>'):gsub("<D>","")
    for tree in decorations:gmatch('<P[^/]+/>') do
    if tree:match('T="57"') then
    count = count+1
    dec[count] = {
    X = tree:match('X="[0-9]+"'):gsub('X="',''):gsub('"',''),
    Y = tree:match('Y="[0-9]+"'):gsub('Y="',''):gsub('"','')
    }
    end
    end
    startLights = true
    end

    function eventLoop()
    if startLights then
    for counter = #dec,1,-1 do
    for k = 10,0,-1 do
    tfm.exec.displayParticle(ids[math.random(#ids)],dec[counter].X+math.random(-40,40),dec[counter].Y+math.random(-120,30),0,0,0,0)
    tfm.exec.displayParticle(11,dec[counter].X-2,dec[counter].Y-183,math.cos(k),math.sin(k),0,0)
    end
    end
    end
    end

    Then click on submit
    Honey_bee
    1424124240000
      • Honey_bee#9272
      • Profil
      • Derniers messages
    #15
    [Modéré par Jordy, raison : Spam post]
    Honey_bee
    « Citoyen »
    1428555000000
      • Honey_bee#9272
      • Profil
      • Derniers messages
    #16
      0
    I dont get it, its not working.
    Woebegone
    « Citoyen »
    1428608460000
      • Woebegone#8377
      • Profil
      • Derniers messages
      • Tribu
    #17
      0
    patpatrica a dit :
    I dont get it, its not working.

    Did something appear in your chat saying something like '$Lua'?
    Kittencutez
    « Citoyen »
    1450232400000
      • Kittencutez#0000
      • Profil
      • Derniers messages
      • Tribu
    #18
      0
    It's a nice script, but it doesn't really work on defilante maps sadly, and my tribe house is a defilante map :(

    EDIT: Nevermind, with patience, it works! :D It's beautiful!

    Dernière modification le 1450233660000
    • Forums
    • /
    • Transformice
    • /
    • Modules
    • /
    • [Script] Christmas tree lights
    © Atelier801 2018

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

    Version 1.27