×

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
  • /
  • Module API FAQ
« ‹ 27 / 38 › »
Module API FAQ
Brasot
« Citoyen »
1387893360000
    • Brasot#0000
    • Profil
    • Derniers messages
    • Tribu
#521
  0
how add particle ?
Kirilkiril
« Citoyen »
1387899600000
    • Kirilkiril#0000
    • Profil
    • Derniers messages
#522
  0
How to add photos?
Tailtong
« Citoyen »
1387901820000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#523
  0
Brasot a dit :
how add particle ?

tfm.exec.displayParticle(Int particleId, Int xPosition, Int yPosition, Float xSpeed, Float ySpeed, Float xAcceleration, Float yAcceleration, String targetPlayer)
Kirilkiril a dit :
How to add photos?

tfm.exec.addImage(String imageName, String target, Int xPosition, Int yPosition, String targetPlayer)
Zyx
« Censeur »
1387917900000
    • Zyx#8690
    • Profil
    • Derniers messages
#524
  0
What is cmd:sub(1,1) and all that?
Shamousey
« Consul »
1387922040000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#525
  0
Swirlfire a dit :
What is cmd:sub(1,1) and all that?

http://lua-users.org/wiki/StringLibraryTutorial

"Return a substring of the string passed. The substring starts at i. If the third argument j is not given, the substring will end at the end of the string. If the third argument is given, the substring ends at and includes j."
Marliaaa
« Citoyen »
1387965900000
    • Marliaaa#0000
    • Profil
    • Derniers messages
    • Tribu
#526
  0
how to make a module?
Kittyepress
« Citoyen »
1387966200000
    • Kittyepress#0000
    • Profil
    • Derniers messages
#527
  0
Marliaaa a dit :
how to make a module?

1. Read all what shamousey said when making the thread.
2. Head over to Lua Snippets for the commands. ( Topic-451991 )
3. Then you can make your own minigame.

why cant I get my codes working?
Kittyepress
1387969920000
    • Kittyepress#0000
    • Profil
    • Derniers messages
#528
[Modéré par Whiskypickle, raison : Dp]
Safwanrockz
« Censeur »
1387969920000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#529
  0
Kittyepress a dit :
why cant I get my codes working?

Are you getting an error?
Kittyepress
« Citoyen »
1387970040000
    • Kittyepress#0000
    • Profil
    • Derniers messages
#530
  0
Safwanrockz a dit :
Are you getting an error?

doesnt show up
Kittyepress
« Citoyen »
1387970160000
    • Kittyepress#0000
    • Profil
    • Derniers messages
#531
  0
Safwanrockz a dit :
Can you explain a little further? The script runs successfully but doesn't function properly? Are you getting the "Lua script loaded" message?

i am just using codes(example: tfm.exec.setShaman("Kittyepress") ) in tribe house
Safwanrockz
« Censeur »
1387970160000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#532
  0
Kittyepress a dit :
doesnt show up

Can you explain a little further? The script runs successfully but doesn't function properly? Are you getting the "Lua script loaded" message?
Marliaaa
« Citoyen »
1387973340000
    • Marliaaa#0000
    • Profil
    • Derniers messages
    • Tribu
#533
  0
saf help me make a module idk how and i wanna
Safwanrockz
« Censeur »
1387974120000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#534
  0
Kittyepress a dit :
i am just using codes(example: tfm.exec.setShaman("Kittyepress") ) in tribe house


I have no idea what's going on with you, try restarting TFM.
Marliaaa a dit :
saf help me make a module idk how and i wanna


You must have a prior knowledge in Lua coding, basically. Else, just use the Lua Snippets thread. Topic-451991
Kirilkiril
« Citoyen »
1387975020000
    • Kirilkiril#0000
    • Profil
    • Derniers messages
#535
  0
Tailtong a dit :
tfm.exec.displayParticle(Int particleId, Int xPosition, Int yPosition, Float xSpeed, Float ySpeed, Float xAcceleration, Float yAcceleration, String targetPlayer)

tfm.exec.addImage(String imageName, String target, Int xPosition, Int yPosition, String targetPlayer)

I don't get it what should be in imageName?
Laagaadoo
« Citoyen »
1387976400000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#536
  0
Kirilkiril a dit :
I don't get it what should be in imageName?

This function is only for members of Lua Team
Shamousey
« Consul »
1387976400000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#537
  0
Kirilkiril a dit :
I don't get it what should be in imageName?

The image name refers to the file name of an image hosted on imgur. For example, for the image http://i.imgur.com/zc22XO8.png you'd need to put in zc22XO8.png

Note that this function is only available for the Lua Team however, you can't use it.
Laagaadoo
« Citoyen »
1387979760000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#538
  0
Shamousey a dit :
Lua Minifiers
As there is a 32k character limit imposed when running code with the Module API, any long script may have to be minified. Minification makes the code smaller through practises such as removing linebreaks, whitespace, renaming functions and local variables to shorter alternatives, and the such to help reduce the overall size.

Shamousey a dit :
• Only scripts that are 64k characters or less can be excecuted.

The limit of characters is 32k or 64k?
Shamousey
« Consul »
1387980120000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#539
  0
Laagaadoo a dit :
The limit of characters is 32k or 64k?

Ah sorry! There was a 32k limit when I originally wrote that part of the post, but it was changed to 64k later on. I've fixed the OP.
Laagaadoo
« Citoyen »
1387981800000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#540
  0
Edited.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 27 / 38 › »
© Atelier801 2018

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

Version 1.27