×

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
« ‹ 24 / 38 › »
Module API FAQ
Zyx
« Censeur »
1384020840000
    • Zyx#8690
    • Profil
    • Derniers messages
#461
  0
Magicalorb a dit :
b-but you have to be smart

:'( how2

You can ask someone part of the Lua team to teach you I think.
Epicshawty
« Citoyen »
1384041420000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#462
  0
Magicalorb a dit :
b-but you have to be smart

:'( how2

pls i ned 2 be smart 2
Tummnus
« Citoyen »
1384057320000
    • Tummnus#0000
    • Profil
    • Derniers messages
    • Tribu
#463
  0
Magicalorb a dit :
b-but you have to be smart

:'( how2

Not exactly, anyone can find themselves very smart. Don't you find it impressive that you can remember 100+ numbers?! *-*
Swirlfire a dit :
You can ask someone part of the Lua team to teach you I think.

You can somewhat do that but you can as well join the chat 'Lua' in which has members for the most part including the beloved Shamousey! Or you can look over at the 'Script Request' thread and 'Lua Snippets'. In other words, you can do many things to get help.
Gilcatmey
« Citoyen »
1384222680000
    • Gilcatmey#0000
    • Profil
    • Derniers messages
    • Tribu
#464
  0
Hi, can you plese help me here?

I have tried many times to play many scripts in the tribe house but they never work, someone suggesteed that people that got banned can't load lua codes, is that true? or what could it be thaat I can't play them?
Shamousey
« Consul »
1384227660000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#465
  0
Gilcatmey a dit :
Hi, can you plese help me here?

I have tried many times to play many scripts in the tribe house but they never work, someone suggesteed that people that got banned can't load lua codes, is that true? or what could it be thaat I can't play them?

If you ever got banned for hacking you can't run scripts, that's correct.
Gilcatmey
« Citoyen »
1384228440000
    • Gilcatmey#0000
    • Profil
    • Derniers messages
    • Tribu
#466
  0
But what if I didn't really hack, I was just banned for unfairy reasons.
Shamousey
« Consul »
1384247160000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#467
  0
Gilcatmey a dit :
But what if I didn't really hack, I was just banned for unfairy reasons.

Then there's unfortunately nothing you can do about that, you could try talking to Sydoline to come up with a solution.
Zutto
1385134440000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#468
[Modéré par Bolinboy]
Feudeus
1385472360000
    • Feudeus#0000
    • Profil
    • Derniers messages
    • Tribu
#469
[Modéré par Bolinboy, raison : spam]
Petrenrenpet
« Citoyen »
1385682420000
    • Petrenrenpet#0000
    • Profil
    • Derniers messages
    • Tribu
#470
  0
How i make to the shaman go to the table "magos" ?
Safwanrockz
« Censeur »
1385726040000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#471
  0
Petrenrenpet a dit :
How i make to the shaman go to the table "magos" ?

a dit :

magos={}
for name,player in pairs(tfm.get.room.playerList) do
if tfm.get.room.playerList[name].isShaman then
table.insert(magos, name)
end
end

 
Jufaster
« Citoyen »
1385923800000
    • Jufaster#0000
    • Profil
    • Derniers messages
#472
  0
How to use function eventPlayerDataLoaded(String playerName, String data), and
this type of?
Safwanrockz
« Censeur »
1385924040000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#473
  0
Jufaster a dit :
How to use function eventPlayerDataLoaded(String playerName, String data), and
this type of?

Only members of LUA team are able to use this.
Bethdacat
« Consul »
1385994720000
    • Bethdacat#0000
    • Profil
    • Derniers messages
    • Tribu
#474
  0
How do you use ui.AddPopup?
Hophipmice
« Citoyen »
1385999820000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#475
  0
Bethdacat a dit :
How do you use ui.AddPopup?

It clearly says it:

Name Arguments Description
addPopup Int id, Int type, String text, String targetPlayer, Int x, Int y, Int width, Boolean fixedPos (false)
Add a popup. Popup type : 0 (simple), 1 (yes or no), 2 (player input). If targetPlayer is NIL, it sends it to all players.

example:
a dit :
ui.addPopup(0,0,"Hi, this is a test",nil,nil,nil,nil,false)

or you can use a table:
a dit :
table = [[Hello, world!]]
ui.addPopup(0,0,table,nil,nil,nil,nil,false)
Safwanrockz
« Censeur »
1386010440000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#476
  0
Bethdacat a dit :
How do you use ui.AddPopup?

Since Hop hasn't fully clarified the ui.addPopup arguments I guess I'll have to. (sowwi hop :x)
Int id: the ID of the Popup which is needed for removing Popup subsequently. (must be integer)
String text: the text that shows on the Popup, can also be a normal predefined variable like Hop said.
String targetPlayer: which player(s) to see this Popup, you can add it as "NIL" so the Popup is seen by all players.
Int x: the x cooridnate for the Popup (must be integer)
Int y: the y coordinate for the Popup (must be integer as well)
Int width: the width of the Popup, measured with pixels (integer)
Boolean fixedPos: takes the two values true and false, if true then the Popup will scroll horizontally with scroll maps, if false it will remain static in the specified coordinates in scroll maps.
Zyx
« Censeur »
1386203640000
    • Zyx#8690
    • Profil
    • Derniers messages
#477
  0
Are these two invalid? If so can I have the valid variable?

tfm.get.room.inpairs
tfm.get.room.in pairs
Shamousey
« Consul »
1386208860000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#478
  0
tfm.get.room is a table with several more tables inside it, such as playerList and objectList. You can get these like tfm.get.room.playerList

What you seem to want to do is use the pairs() function on them, so you just put the table name inside it. pairs(tfm.get.room)
Abdeltif
« Citoyen »
1386255600000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#479
  0
What is new in modules ?
Safwanrockz
« Censeur »
1386261480000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#480
  0
Abdeltif a dit :
What is new in modules ?

Nothing? It's still Version 0.15.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 24 / 38 › »
© Atelier801 2018

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

Version 1.27