×

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
  • /
  • Lua Snippets
« ‹ 8 / 33 › »
Lua Snippets
Papero
« Citoyen »
1380378720000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#141
  0
Shamousey a dit :
I have about 90 commands in #utility, do I win yet?

you had a head start.
so no
Abdeltif
« Citoyen »
1380379980000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#142
  0
need help yet
a dit :
function eventChatCommand(playerName,message)
if message=="ic" then
ui.addPopup(1,2,"<font size='14' face='georgia' color='#f5f599'>Ask:</font><font size='12' face='Comic sans MS' color='#FC9E1A'>What's the chief rank ?</font>",playerName,250,250,300);
end
end
function eventPopupAnswear(iD,playerName,stupid)
if iD==1 then
print("Hi")
end
end

I don't know but print don't work :(
Papero
« Citoyen »
1380380160000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#143
  0
Abdeltif a dit :
need help yet


I don't know but print don't work :(

chat messages are disabled in tribehouses
Hophipmice
« Citoyen »
1380380160000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#144
  0
Abdeltif a dit :
need help yet


I don't know but print don't work :(

print:
print("yourtexthere")
But it must be after something like the command help or sumfin like that.
Abdeltif
« Citoyen »
1380380160000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#145
  0
Paperonaruto a dit :
chat messages are disabled in tribehouses

Ok , hmm
Print don't work ether o/ try you that script
do !ic
then whrite stupid there
And print won't work
Tailtong
« Citoyen »
1380380400000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#146
  0
added
elseif command=="exit" then
system.exit()
to tribes : the minigame
Zutto
« Citoyen »
1380380640000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#147
  0
What's the code for the message when you catch the cheese?
Papero
« Citoyen »
1380381780000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#148
  0
Abdeltif a dit :
Ok , hmm
Print don't work ether o/ try you that script
do !ic
then whrite stupid there
And print won't work

did you disable debug messages?
Abdeltif
« Citoyen »
1380382560000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#149
  0
a dit :
for tfm.get.room.playerList(isJumping) do
tfm.exec.movePlayer(playername, 0, -50, true, 0, -50, true)
end

The error is :

[•] Init Error : transformice.lua:274: [string "transformice.lua"]:1: '=' or 'in' expected
How to fix ? humf :/
Shamousey
« Consul »
1380382800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#150
  0
You don't use the playerList like that.

tfm.get.room.playerList["Shamousey"].isJumping will return either true or false.

If you nave a variable such as name defined, you could use it to get that player's information too.

tfm.get.room.playerList[name].isJumping
Xxninjazxx
« Citoyen »
1380386520000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#151
  0
a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,40,true,true)
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyboard(name,key,down,x,y)
if key==40 then
tfm.exec.addShamanObject(24,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+30)
end
end

ducking to spirit jump
Abdeltif
« Citoyen »
1380389100000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#152
  0
This is a simple intro for text mixing :p
Using
a dit :

thing = "text"

and to mix it with a text you use
a dit :

Mixing = "This is the" ..thing.. ""

And for last the print :
a dit :

print(Mixing)

Example :
coding :
a dit :

MM1 = "Nothing"
MX1 = "There is" ..Nothing.. "here"
print(MX1)

This is just the tuto don't blame me

Here is an example that i made
a dit :
text1 = "<ROSE>Be your self "
text2 = "<R>as you are !"
text3 = "<T>Don't be what <VI>Others "
text4 = "<BV>want you to be !"
textM1 = "" .. text1 .. "" .. text2 .. ""
textM2 = "" .. text3 .. "" .. text4 .. ""
print(textM1)
print(textM2)

Lock this if it's unnecessary.
Tailtong
« Citoyen »
1380389220000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#153
  0
that is called the join feature
Fluffyshine
« Citoyen »
1380389220000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#154
  0
a dit :

players={}

for pn,playerName in pairs(tfm.get.room.playerList) do
players=players[pn]
end

Why isn’t this working Q.Q
Papero
« Citoyen »
1380389580000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#155
  0
a dit :

players={}
counter=0
for pn,_ in pairs(tfm.get.room.playerList) do
players[counter]=pn
counter= counter +1
end

wait somethings wrong with the way you are adding things to it... o-o...
Zutto
« Citoyen »
1380390600000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#156
  0
Abdeltif a dit :
This is a simple intro for text mixing :p
Using

and to mix it with a text you use

And for last the print :

Example :
coding :


This is just the tuto don't blame me

Here is an example that i made

Lock this if it's unnecessary.

That the progammer only see
Abdeltif
« Citoyen »
1380391260000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#157
  0
Aritxy a dit :
That the progammer only see

Well , when tfm.exec.chatMessage get enabled we won't worry humf !
Papero
« Citoyen »
1380391380000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#158
  0
Abdeltif a dit :
Well , when tfm.exec.chatMessage get enabled we won't worry humf !

i suggest possibly using popups if they work in tribehouses.
after some comfirmation popups do work in tribehouses
Abdeltif
1380391800000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#159
[Modéré par Icewolfbob, raison : Off topic, but yes it appears to be offline.]
Alishakouri
1380391920000
    • Alishakouri#0000
    • Profil
    • Derniers messages
    • Tribu
#160
[Modéré par Icewolfbob, raison : Off topic]
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 8 / 33 › »
© Atelier801 2018

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

Version 1.27