×

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] New Year's event module
[Script] New Year's event module
Evilsantah
« Citoyen »
1402322040000
    • Evilsantah#0000
    • Profil
    • Derniers messages
#1
  1
I thought this might be worth looking at if you're interested. It has some nice snippets of code, don't flame if some things are a bit confusing or sloppy (such as the firework trail).

So yeah, here it is: http://pastebin.com/LzhrCtc8

You probably won't be able to run this as a normal player because of the timers and stuff but you can learn a few things from it I guess.

This is pretty much a piece of art, with a lot of LUA people involved. Credits to Impuredeath for the original idea, map and background; Paperonaruto for help on math functions; Fierying for the art; Thewav for event-module stuff and Leafileaf for a snippet of code for timers. And me, welp. Boooo to Tigrounette for promising specific LUA functionality that would've made it better (with sound effects and rewards and such) but not keeping his promise.

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

http://i.imgur.com/yCbJWCO.png
EDIT:

Here's a script anyone can use. (without fancy timers though...) It is based on the script above. I used this to draw custom fireworks and you can test them live.

http://pastebin.com/5PuTnD5r

You should add your name in the drawers table, then you can use the followings things:
- Click inside the box to add a particle
- Click outside the box to fire!
- Press Backspace to undo your last step
- Press Del to clear all
- Press M to mirror your drawing horizontally
- Press Ctrl-M to mirror your drawing vertically
- Press Space to print out the LUA table of the particles (this was used to create the 2014 fireworks)
- Use !add Namemouse to give someone drawing ability.
Enesxfbxpro
« Censeur »
1402322160000
    • Enesxfbxpro#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
thanks...
Bushmeister
« Consul »
1402322760000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
OMG thanks!!!
Yteizz
« Citoyen »
1402324200000
    • Yteizz#0000
    • Profil
    • Derniers messages
#4
  0
## You don't have the right to use this function (tfm.exec.addImage).


:'(
Evilsantah
« Citoyen »
1402324200000
    • Evilsantah#0000
    • Profil
    • Derniers messages
#5
  0
Here's a script anyone can use. (without fancy timers though...) It is based on the script above. I used this to draw custom fireworks and you can test them live.

http://pastebin.com/5PuTnD5r

You should add your name in the drawers table, then you can use the followings things:
- Click inside the box to add a particle
- Click outside the box to fire!
- Press Backspace to undo your last step
- Press Del to clear all
- Press M to mirror your drawing horizontally
- Press Ctrl-M to mirror your drawing vertically
- Press Space to print out the LUA table of the particles (this was used to create the 2014 fireworks)
- Use !add Namemouse to give someone drawing ability.
Arber
« Citoyen »
1402326600000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
## Init Error : Ediz.lua:274: [string "Arber.lua"]:44: '=' expected
emmmmmmmmmm

44 is the
GLITTERS = {0, 1, 2, 9, 11, 13}
i dun see any probs with it :(

becuse the 1-43 are useless things that dont screw lua scripts.
Demon
« Citoyen »
1402327680000
    • Demon#3348
    • Profil
    • Derniers messages
#7
  0
No work in tribe house....
Techtriostep
« Citoyen »
1402329060000
    • Techtriostep#0000
    • Profil
    • Derniers messages
#8
  0
mann when this event came out everyone was so desperate for titles and items, all crazy with insults lol

It was a nice event really and im glad it is brought back up.. well only if you fix it lol.
Evilsantah
« Citoyen »
1402346220000
    • Evilsantah#0000
    • Profil
    • Derniers messages
#9
  0
@Yteizz, Dobrjik, Techtriostep:
Read top post.

@Arber line 44 is not even the GLITTERS...

Both scripts work fine, just note that the full script doesn't work in tribe house. I've clearly stated that.
Arber
« Citoyen »
1402389600000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Evilsantah a dit :
@Yteizz, Dobrjik, Techtriostep:
Read top post.

@Arber line 44 is not even the GLITTERS...

Both scripts work fine, just note that the full script doesn't work in tribe house. I've clearly stated that.

well i said 44 is glitters for me because 1-43 are things i saved with --


nvm though its workig now :l
Haneyt
« Citoyen »
1402394100000
    • Haneyt#0000
    • Profil
    • Derniers messages
#11
  0
Thanks,this is perfect.
Eliaseeg
« Citoyen »
1402408680000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
#12
  0
OMG

Thank you o/!!
Hasannj
« Citoyen »
1402484580000
    • Hasannj#0000
    • Profil
    • Derniers messages
#13
  0
## Runtime Error : Hasannj.lua:610: attempt to compare nil with number
Elyesou
« Citoyen »
1403620440000
    • Elyesou#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Doesn't work :c
Papero
« Citoyen »
1403842740000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Evilsantah a dit :
I thought this might be worth looking at if you're interested. It has some nice snippets of code, don't flame if some things are a bit confusing or sloppy (such as the firework trail).

I've totally forgotten how the trail functions worked...
Been trying to reverse engineer it for some time already @_@

Dernière modification le 1403842800000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] New Year's event module
© Atelier801 2018

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

Version 1.27