×

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
« ‹ 28 / 38 › »
Module API FAQ
Fatihmilano
1388061180000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#541
[Modéré par Katburger, raison : Off-topic]
Zyx
« Censeur »
1388086860000
    • Zyx#8690
    • Profil
    • Derniers messages
#542
  0
How do you know that you are making speed for how you set the coordinates in
tfm.exec.movePlayer?

I can't figure out how people just set numbers to fly/walk faster or do a super jump.
Shamousey
« Consul »
1388088540000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#543
  0
Fatihmilano a dit :
How can I write colorized code on the forums?

You can colour text with [color=#FFFFFF]this BBCode[/color] and choosing which colour you want the text to be by using hexadecimal colour codes.

Swirlfire a dit :
How do you know that you are making speed for how you set the coordinates in
tfm.exec.movePlayer?

I can't figure out how people just set numbers to fly/walk faster or do a super jump.

I'm not quite sure what you mean by this, could you explain it in a different way perhaps?
Zyx
« Censeur »
1388090100000
    • Zyx#8690
    • Profil
    • Derniers messages
#544
  0
Shamousey a dit :
You can colour text with [<b></b>color=#FFFFFF]this BBCode[/<b></b>color] and choosing which colour you want the text to be by using hexadecimal colour codes.
I'm not quite sure what you mean by this, could you explain it in a different way perhaps?

So in the Fly snippet

tfm.exec.movePlayer(name,0,0,true,0,-50,false)

It has this script, and the x-y coordinates are 0,0 + 0 and -50. It also has true and false.

What I mean is that they add random numbers and false/true's to the ()'s and you are able to fly just like that.

I don't know how you do that just by adding them.
Larenwa
« Citoyen »
1388105460000
    • Larenwa#0000
    • Profil
    • Derniers messages
#545
  0
Dang! Lua is too hard to learn :(
Evilsantah
« Citoyen »
1388109660000
    • Evilsantah#0000
    • Profil
    • Derniers messages
#546
  0
Swirlfire a dit :
So in the Fly snippet

tfm.exec.movePlayer(name,0,0,true,0,-50,false)

It has this script, and the x-y coordinates are 0,0 + 0 and -50. It also has true and false.

What I mean is that they add random numbers and false/true's to the ()'s and you are able to fly just like that.

I don't know how you do that just by adding them.

They're not random, have you read the documentation Topic-451587 ?

Tigrounette a dit :

tfm.exec.movePlayer(String playerName, Int xPosition, Int yPosition, Boolean offset, Int xSpeed, Int ySpeed, Boolean offset)
• Defines the speed and position of a player.
Fatihmilano
« Citoyen »
1388147580000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#547
  0
Shamousey a dit :
You can colour text with [&lt;b&gt;&lt;/b&gt;color=#FFFFFF]this BBCode[/&lt;b&gt;&lt;/b&gt;color] and choosing which colour you want the text to be by using hexadecimal colour codes. I'm not quite sure what you mean by this, could you explain it in a different way perhaps?



Don't understand me. Look at the this topic(Jordynl): Topic-458983
So we have to deal particularly?
Also look at it:
http://i.imgur.com/too0NkP.jpg
Is it possible to do with it?
Benbirkralm
« Citoyen »
1388216040000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#548
  0
## Init Error : Benbirkralm.lua:23: Lua killed.
Alishakouri
« Citoyen »
1388221560000
    • Alishakouri#0000
    • Profil
    • Derniers messages
    • Tribu
#549
  0
is there a tribe war module ?
Safwanrockz
« Censeur »
1388331240000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#550
  0
Alishakouri a dit :
is there a tribe war module ?

There was, but Moepl stopped coding it.
Laagaadoo
« Citoyen »
1388411220000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#551
  0
Shamousey a dit :
• < and > characters can't be displayed in the chat, but < and > can.

I do not understand
Shamousey
« Consul »
1388412000000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#552
  0
Laagaadoo a dit :
I do not understand

Sorry, that got a little messed up as I joined the Map Crew and some parts of posts work differently. It's meant to be this:

a dit :
• &lt; and &gt; characters can't be displayed in the chat, but &amp;lt; and &amp;gt; can.

 
Safwanrockz
« Censeur »
1388427240000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#553
  0
Laagaadoo a dit :
I do not understand

You can use &lt; as <, or &gt; as >. (&nbsp; for spaces hue)
Abdeltif
« Citoyen »
1388427240000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#554
  0
Safwanrockz a dit :
You can use &amp;lt; as &lt;, or &amp;gt; as &gt;. (&amp;nbsp; for spaces hue)

I don't know why < and > are changed by that but tig is really evil ;-;
Laagaadoo
« Citoyen »
1388427480000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#555
  0
Why don't work?

a dit :

str = "<> <lol>"
str:gsub("<", "&lt;")
str:gsub(">", "&gt;")
print(str)

:(
Safwanrockz
« Censeur »
1388427600000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#556
  0
Abdeltif a dit :
I don't know why &lt; and &gt; are changed by that but tig is really evil ;-;

Because HTML is enabled in the text (i.e <font>). And normally you can't type < and > in HTML, that's why &lt; and &gt; are used.
Laagaadoo a dit :
Why don't work?
:(

Not sure, you could've just tried
a dit :

str = "&lt;&gt; &lt;lol&gt;"
print(str)

 
Laagaadoo
« Citoyen »
1388427720000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#557
  0
But, the code is XML and the <> don't show in print
Safwanrockz
« Censeur »
1388428020000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#558
  0
Laagaadoo a dit :
But, the code is XML and the &lt;&gt; don't show in print

It's HTML, and &lt; does show in print.
Laagaadoo
« Citoyen »
1388428380000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#559
  0
Edited.
Abdeltif
« Citoyen »
1388428800000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#560
  0
Laagaadoo a dit :
See:

.

a dit :

xml = ""

function eventNewGame()
xml = tfm.get.room.xmlMapInfo.xml
end

function eventChatCommand(playerName, cmd)
local tXml = string.len(xml)

if (cmd == "xml1") then
if (playerName == "Laagaadoo") then
if (tXml > 1000) then
xml:gsub("<", "&lt;")
xml:gsub(">", "&gt;")
print(xml:sub(1, 1000))

end
end
end
end

The if should be seperated from the ( or what ever is the sentence.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 28 / 38 › »
© Atelier801 2018

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

Version 1.27