×

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
  • /
  • Script Requests
« ‹ 21 / 160 › »
Script Requests
Fuzzfire
« Citoyen »
1383409260000
    • Fuzzfire#0000
    • Profil
    • Derniers messages
    • Tribu
#401
  0
I think it is ^


Can anyone make a drawing script for the tribe house?
Issey
« Citoyen »
1383409260000
    • Issey#0000
    • Profil
    • Derniers messages
#402
  0
Bushmeister a dit :
lol. thanks!
upd
I need a script, that will put one random player into one team, and remaining - in other team. Is this possible?

a dit :

blue={}

for player in pairs(tfm.get.room.playerList)
if not red then
red=player
else
table.insert(blue,player)
end
end

mm

Fuzzfire a dit :
I think it is ^


Can anyone make a drawing script for the tribe house?

try /module utility
it has a drawing feature
Fuzzfire
« Citoyen »
1383413220000
    • Fuzzfire#0000
    • Profil
    • Derniers messages
    • Tribu
#403
  0
Issey a dit :
try /module utility
it has a drawing feature

I know, I just want to use it in the tribe house
Imaewsome
« Citoyen »
1383422460000
    • Imaewsome#0000
    • Profil
    • Derniers messages
#404
  0
Fuzzfire a dit :
I know, I just want to use it in the tribe house

you can have utility on

and then put on drawing in the tribe house
Safwanrockz
« Censeur »
1383427440000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#405
  0
Fuzzfire a dit :
I know, I just want to use it in the tribe house

If you typed /module utility in the tribe house you will be able to draw, you can't make a drawing script since it requires tfm.exec.addImage() (I guess) which is not available for normal users.
Abdeltif
« Citoyen »
1383428460000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#406
  0
a dit :
function eventChatCommand(playerName, cmd)
local c = {}
table.insert (tfm.get.room.objectList , c)
if command == "dispawn" then
tfm.exec.removeObject(c)
end
end

Doesn't work correctly
I thought that the iD of spawned object will be added to c={} so i can dispawn them after :(
Safwanrockz
« Censeur »
1383428940000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#407
  0
Abdeltif a dit :
Doesn't work correctly
I thought that the iD of spawned object will be added to c={} so i can dispawn them after :(

No, that table.insert you did inserts the value of c to the tfm.get.room.objectList table. Because table.insert(table,value).
Also I'm not sure about the despawning items function though.
Abdeltif
« Citoyen »
1383430260000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#408
  0
and to fix that what should i change ?
Safwanrockz
« Censeur »
1383430620000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#409
  0
Abdeltif a dit :
and to fix that what should i change ?

I'm not sure what are you trying to despawn though, maybe give me the full code?
Abdeltif
« Citoyen »
1383430740000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#410
  0
a dit :
function eventChatCommand(playerName, cmd)
local c = {}
table.insert(c, 1, tfm.get.room.objectList)
if cmd == "dispawn" then
tfm.exec.removeObject(c)
end
if cmd == "sham" then
tfm.exec.setShaman(playerName)
end
if cmd == "vamp" then
tfm.exec.setVampirePlayer(playerName)
end
if cmd == "mort" then
tfm.exec.killPlayer(playerName)
end
if cmd == "cheese" then
tfm.exec.giveCheese(playerName)
end
if cmd == "hole" then
tfm.exec.playerVictory(playerName)
end
if cmd == "win" then
tfm.exec.giveCheese(playerName)
tfm.exec.playerVictory(playerName)
end
end

the table = fixed
xmd = fixed
but !dispawn :
[•] Argument error.
that refers to the table inserted i gess .
Hophipmice
« Citoyen »
1383430860000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#411
  0
Abdeltif a dit :
the table = fixed
xmd = fixed
but !dispawn :
[•] Argument error.
that refers to the table inserted i gess .

code a dit :
function eventChatCommand(playerName, cmd)
local c = {}
table.insert(c, 1, tfm.get.room.objectList)

if cmd == "dispawn" then
tfm.exec.removeObject(c)

elseif cmd == "sham" then
tfm.exec.setShaman(playerName)

elseif cmd == "vamp" then
tfm.exec.setVampirePlayer(playerName)

elseif cmd == "mort" then
tfm.exec.killPlayer(playerName)

elseif cmd == "cheese" then
tfm.exec.giveCheese(playerName)

elseif cmd == "hole" then
tfm.exec.playerVictory(playerName)

elseif cmd == "win" then
tfm.exec.giveCheese(playerName)
tfm.exec.playerVictory(playerName)
end
end

This should work.
Abdeltif
« Citoyen »
1383431040000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#412
  0
Hophipmice a dit :
This should work.

Nope , that if you forget for mort cmd need an end .
Hophipmice
« Citoyen »
1383431040000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#413
  0
Nvm....
Safwanrockz
« Censeur »
1383431280000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#414
  0
Abdeltif a dit :
the table = fixed
xmd = fixed
but !dispawn :
[•] Argument error.
that refers to the table inserted i gess .

Though are you trying to despawn an item the shaman spawned? Or an item that you spawn by lua?
Shamousey
« Consul »
1383433200000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#415
  0
Abdeltif a dit :
the table = fixed
xmd = fixed
but !dispawn :
[•] Argument error.
that refers to the table inserted i gess .

You're trying to remove a table, not an object ID. If you want to remove every object on the map, just do something like this.

for id,object in pairs(tfm.get.room.objectList) do
tfm.exec.removeObject(id)
end
Livcorish
« Citoyen »
1383433320000
    • Livcorish#0000
    • Profil
    • Derniers messages
#416
  0
When someone blows a kiss (emote) have the message pop up: Somebody is in love ^-^
Then have it disapear 5 seconds later. In the tribe house btw.
Safwanrockz
« Censeur »
1383433800000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#417
  0
Shamousey a dit :

for id,object in pairs(tfm.get.room.playerList) do

Isn't that supposed to call tfm.get.room.objectList? :x
Shamousey
« Consul »
1383436140000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#418
  0
Safwanrockz a dit :
Isn't that supposed to call tfm.get.room.objectList? :x

Oopsy, yes it was meant to be objectList!
Aanguson
« Citoyen »
1383477360000
    • Aanguson#8461
    • Profil
    • Derniers messages
#419
  0
Could someone make a script to make even when you press the down arrow pull to mouse down? Something like the opposite of the script to fly.
I would be very grateful.

a dit :
Sorry for my English
Hophipmice
« Citoyen »
1383477600000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#420
  0
Aanguson a dit :
Could someone make a script to make even when you press the down arrow pull to mouse down? Something like the opposite of the script to fly.
I would be very grateful.

So, you want a script that would make people drop who press the down key?
If yes, then:
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.movePlayer(name,0,0,true,0,50,false)
end
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 21 / 160 › »
© Atelier801 2018

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

Version 1.27