[Script] Christmas tree lights |
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: ![]() 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! ^-^ |
![]() ![]() « Citoyen » 1417369620000
| 0 | ||
Nice! This looks really good! How much time did it take to do this? :P |
0 | ||
5 minutes to get the regex(xml thing) |
![]() ![]() « Citoyen » 1417484100000
| 0 | ||
Only? I'm like a beginner at coding. This is pwettyyy..... Too bad I'll nvr use it because: |
![]() ![]() « Citoyen » 1417563180000
| 0 | ||
It won't work for me :( |
![]() ![]() « Citoyen » 1417566060000
| 0 | ||
Great! |
![]() ![]() « Citoyen » 1417735020000
| 0 | ||
You can do rain whit this script :O |
![]() ![]() « Citoyen » 1417735740000
| 0 | ||
I'm gonna play it at my tribe's Christmas party |
![]() ![]() « Censeur » 1418512980000
| 0 | ||
WOW, IT'S NICE! Thanks |
![]() ![]() « Citoyen » 1419098700000
| 0 | ||
I love this! It rocks!! |
![]() ![]() « Citoyen » 1419166800000
| 0 | ||
Nice script! :) |
![]() ![]() « Citoyen » 1422791460000
| 0 | ||
What exactly do I need to write o.o |
![]() 1422791760000
| | ||
[Modéré par Shamousey, raison : You can edit your previous posts by clicking on your username or avatar then pressing the "edit" button.] |
![]() ![]() « Citoyen » 1422891060000
| 0 | ||
Brusen a dit : 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 |
![]() 1424124240000
| | ||
[Modéré par Jordy, raison : Spam post] |
![]() ![]() « Citoyen » 1428555000000
| 0 | ||
I dont get it, its not working. |
![]() ![]() « Citoyen » 1428608460000
| 0 | ||
patpatrica a dit : Did something appear in your chat saying something like '$Lua'? |
![]() « Citoyen » 1450232400000
| 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 |