×

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
  • /
  • Module FAQ & Documentation
« ‹ 2 / 19 › »
Module FAQ & Documentation
Safwanrockz
« Censeur »
1411217040000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#21
  0
Drgenius a dit :
Also something that would be neat is coloring for each type of argument required (or sent in events), for example, green for string, white for int, blue for float, orange for bool, etc. Just a thought.

That would be quite redundant and is unneeded in my opinion.
Leafileaf
« Citoyen »
1411223040000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Safwanrockz a dit :
Drgenius a dit :
Also something that would be neat is coloring for each type of argument required (or sent in events), for example, green for string, white for int, blue for float, orange for bool, etc. Just a thought.

That would be quite redundant and is unneeded in my opinion.

^this

also liam could you rearrange the functions in alphabetical order
makes searching easier
Hybinkunduz
« Citoyen »
1411225260000
    • Hybinkunduz#0000
    • Profil
    • Derniers messages
#23
  0
Thanks Liam! *-*
Drgenius
« Citoyen »
1411239060000
    • Drgenius#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Safwanrockz a dit :
Drgenius a dit :
Also something that would be neat is coloring for each type of argument required (or sent in events), for example, green for string, white for int, blue for float, orange for bool, etc. Just a thought.

That would be quite redundant and is unneeded in my opinion.

I don't understand how it would be redundant. Maybe I should clarify, here's an example:

a dit :
tfm.exec.movePlayer(playerName, xPosition, yPosition, xOffset, xSpeed, ySpeed, yOffset)

There could be a key at the top, something like

a dit :
String
Bool
Integer
Float

It would also be easier to distinguish different arguments, and on the eyes

Dernière modification le 1411248660000
Safwanrockz
« Censeur »
1411484640000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#25
  0
It's still redundant. I don't want to see a colorful documentation nor do I have to memorize which color is which variable type.
Mengineer
« Citoyen »
1411493820000
    • Mengineer#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Really, why we ca't using chatMessages on tribes? Also, you may make /slua to disable chatMessages in tribehouses for you.

Dernière modification le 1411579080000
Haruhitastic
« Censeur »
1411500480000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#27
  0
mengineer a dit :
Really, why we ca't using chatMessages on tribes?

Because it's incredibly abusable?
Makinit
« Citoyen »
1411552560000
    • Makinit#0095
    • Profil
    • Derniers messages
    • Tribu
#28
  0
Haruhitastic a dit :
mengineer a dit :
Really, why we ca't using chatMessages on tribes?

Because it's incredibly abusable?

This could be dealt with by preceding messages with something like "[~Module]" or limiting text formatting abilities.
Mengineer
« Citoyen »
1411579020000
    • Mengineer#0000
    • Profil
    • Derniers messages
    • Tribu
#29
  0
^ This. Or Maybe, can't use in for/loops.
Thewav
« Citoyen »
1411728480000
    • Thewav#0095
    • Profil
    • Derniers messages
    • Tribu
#30
  0
There is now only one id for the cannon it's 17 and then you have to rotate it .
Techtriostep
« Citoyen »
1411732740000
    • Techtriostep#0000
    • Profil
    • Derniers messages
#31
  0
that... sucks man ...
Shamousey
« Consul »
1411734120000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Thewav a dit :
There is now only one id for the cannon it's 17 and then you have to rotate it .

Thanks for that update, it seems to have broken other modules that rely on cannons like #domination and #ffarace, hopefully they'll all be fixed today.
Podoko
« Citoyen »
1411751820000
    • Podoko#0000
    • Profil
    • Derniers messages
    • Tribu
#33
  0
If I link an image to a player ( tfm.exec.addImage( link.png, "%Tigrounette", -30, -30) ) and if a new map begins, is the image removed ?
Same question if the player dies and then is respawned.

v Ok thank you :)

Dernière modification le 1411754100000
Thewav
« Citoyen »
1411752000000
    • Thewav#0095
    • Profil
    • Derniers messages
    • Tribu
#34
  0
Yes and yes.
Shamousey
« Consul »
1412118840000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#35
  0
Added the new shaman object IDs (pokeball, bubble cannon, leafy trampoline and rock anvil).
Moshimoshiz
« Citoyen »
1412559780000
    • Moshimoshiz#0000
    • Profil
    • Derniers messages
    • Tribu
#36
  0
Very cool. I kinda learned something but I didn't get much..
Really cool though! :-)
Itchyboy
« Citoyen »
1413049920000
    • Itchyboy#0000
    • Profil
    • Derniers messages
    • Tribu
#37
  0
Does anyone know how to watch everyone's x and y? I think you use player.x and player.y but it's not working in my code.
Safwanrockz
« Censeur »
1413062820000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#38
  0
By saying "watch" do you mean like continually change the value of a variable with the player's coordinates?
Itchyboy
« Citoyen »
1413064020000
    • Itchyboy#0000
    • Profil
    • Derniers messages
    • Tribu
#39
  0
I mean like if a mouse enters an area, then they get killed.
Safwanrockz
« Censeur »
1413064680000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#40
  0
Then you'll have to use eventLoop() that triggers every half a second, so you can continually check the player's coordinates (and pythag() for the circular collision):

ax = 200 - X coord of area
ay = 200 - Y coord of area
ar = 40 - radius of the circular area
function eventLoop()
for i,v in pairs(tfm.get.room.playerList) do
if pythag(v.x, v.y, ax, ay, ar) then
tfm.exec.killPlayer(i)
end
end
end
function pythag(x1,y1,x2,y2,r)
local x=x2-x1
local y=y2-y1
local r=r+r
return x*x+y*y<r*r
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Module FAQ & Documentation
« ‹ 2 / 19 › »
© Atelier801 2018

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

Version 1.27