×

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
« ‹ 7 / 160 › »
Script Requests
Issey
« Citoyen »
1381619400000
    • Issey#0000
    • Profil
    • Derniers messages
#121
  0
Livcorish a dit :
Thanks so much! It's not working though, it dosen't show up.

Ordboka a dit :
for name,player in pairs(tfm.get.room.playerList) do
if name == "Bretjr" then
ui.addTextArea(1, "<p align='center'><font size='42'>Welcome to your palace Bretjr! *-*</p></font>", NIL, 0, 150, 800, 100, 0x1C3C41, 0x1C3C41, 0)
end
end

Ord actually broke it when I asked him to fix it, lol
Bushmeister
« Consul »
1381645140000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#122
  0
Issey a dit :
^untested
you can get the look id's from here Topic-465671


not very perfect but it works

OMG thanks!!!
Orb
« Censeur »
1381651440000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#123
  0
I have this command.
a dit :

if arg[1] == "noob" then
function eventLoop(currentTime,timeRemaining)
tfm.exec.killPlayer(playerName)
end
end

But it doesnt seem to do anything. How can I fix it?
Tomiek
« Citoyen »
1381660620000
    • Tomiek#0000
    • Profil
    • Derniers messages
#124
  0
I'll have a script which when clicked it shoots up the item, and use this command! Id (3 or more) shoots the object id
Specagent
« Citoyen »
1381662180000
    • Specagent#0000
    • Profil
    • Derniers messages
    • Tribu
#125
  0
Shamousey a dit :
XML Sharing/Stealing has always been frowned upon, you probably won't find anyone that'll share how to do that

But I never said I was going to steal other people's Map's code.
I just need to make a module that will automatically determine the coordinates of some grounds using the xml

Shamousey a dit :
However, currentMap and xmlMapInfo only ever have content the round AFTER the module is loaded, and nothing on vanilla maps.

Thanks
Bushmeister
« Consul »
1381662960000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#126
  0
script a dit :
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(name)
tfm.exec.giveMeep(name)

end

Help make sure that this script is run every new round
Minstens
« Censeur »
1381664460000
    • Minstens#0000
    • Profil
    • Derniers messages
#127
  0
Bushmeister a dit :
Help make sure that this script is run every new round

function eventNewGame()
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(name)
tfm.exec.giveMeep(name)
end
end
Bushmeister
« Consul »
1381665000000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#128
  0
Minstens a dit :
function eventNewGame()
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(name)
tfm.exec.giveMeep(name)
end
end

For some reason does not work ...
UPD
found a bug, thanks

Issey a dit :
^untested
you can get the look id's from here Topic-465671


not very perfect but it works

s a dit :
function eventNewGame()
shaman=nil
for name,player in pairs(tfm.get.room.playerList) do
if(tfm.get.room.playerList[name].isShaman) then
shaman=name
print(shaman.." just stole the cheese! CATCH HER!")
tfm.exec.giveCheese(shaman)
end
end
if(shaman==nil) then
print('No shaman found!')
end
end

function eventLoop(ct,cr)
if(shaman~=nil) and tfm.get.room.playerList[shaman].isDead==false then
local shamanx=tfm.get.room.playerList[shaman].x
local shamany=tfm.get.room.playerList[shaman].y
for name,player in pairs(tfm.get.room.playerList) do
if(tfm.get.room.playerList[name].isShaman==false) then
x=tfm.get.room.playerList[name].x
y=tfm.get.room.playerList[name].y
if(x&gt;shamanx-50) and x&lt;shamanx+50 and y&lt;shamany-50 and y&gt;shamany+50 then
tfm.exec.giveCheese(name)
end
end
end
end
end

I do not know why, but when the mouse touched the shaman - the cheese is not taken :(
Bushmeister
1381674240000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#129
[Modéré par Bolinboy, raison : double post.]
Force_shaman
« Censeur »
1381675620000
    • Force_shaman#0000
    • Profil
    • Derniers messages
    • Tribu
#130
  0
Bushmeister a dit :
I do not know why, but when the mouse touched the shaman - the cheese is not taken :(

function eventNewGame()
shaman=nil
for name,player in pairs(tfm.get.room.playerList) do
if(tfm.get.room.playerList[name].isShaman) then
shaman=name
print(shaman.." just stole the cheese! CATCH HER!")
tfm.exec.giveCheese(shaman)
end
end
if(shaman==nil) then
print('No shaman found!')
end
end

function eventLoop(ct,cr)
if(shaman~=nil) and not tfm.get.room.playerList[shaman].isDead then
local shamanx=tfm.get.room.playerList[shaman].x
local shamany=tfm.get.room.playerList[shaman].y
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isShaman then
x=tfm.get.room.playerList[name].x
y=tfm.get.room.playerList[name].y
if x>shamanx-30 and x<shamanx+30 and y>shamany-30 and y<shamany+30 then
tfm.exec.giveCheese(name)
end
end
end
end
end

this seems to work
Bushmeister
« Consul »
1381677180000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#131
  0
Tomdizzy a dit :
function eventNewGame()
shaman=nil
for name,player in pairs(tfm.get.room.playerList) do
if(tfm.get.room.playerList[name].isShaman) then
shaman=name
print(shaman.." just stole the cheese! CATCH HER!")
tfm.exec.giveCheese(shaman)
end
end
if(shaman==nil) then
print('No shaman found!')
end
end

function eventLoop(ct,cr)
if(shaman~=nil) and not tfm.get.room.playerList[shaman].isDead then
local shamanx=tfm.get.room.playerList[shaman].x
local shamany=tfm.get.room.playerList[shaman].y
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isShaman then
x=tfm.get.room.playerList[name].x
y=tfm.get.room.playerList[name].y
if x&gt;shamanx-30 and x&lt;shamanx+30 and y&gt;shamany-30 and y&lt;shamany+30 then
tfm.exec.giveCheese(name)
end
end
end
end
end

this seems to work

it really worked! Thank you!
Brkeeee
« Censeur »
1381694280000
    • Brkeeee#0000
    • Profil
    • Derniers messages
    • Tribu
#132
  0
I need to ui.addTextArea transparent background help
Sandermr
« Citoyen »
1381695060000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#133
  0
Does anyone know what is wrong with my code? http://pastebin.com/vmUXYkmS

Basically it's supposed to check if the room has more than 4 mice (which is working), if true than it should play ffa() if not then do nothing.

But the problem is that it starts playing ffa but we can't spawn cannons. Any ideas?
Mousechris
« Censeur »
1381695180000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#134
  0
http://pastebin.com/C6FRN3FX

Can anyone make it so that there are multiple popup bubbles following the mouse?
Safwanrockz
« Censeur »
1381695480000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#135
  0
Brkeeee a dit :
I need to ui.addTextArea transparent background help

ui.addTextArea(0, "Text Here", nil, nil, nil, nil, nil, 0)
Isaacmanda
« Citoyen »
1381734780000
    • Isaacmanda#0000
    • Profil
    • Derniers messages
    • Tribu
#136
  0
as I make a lua script like yours Shamousey
Brkeeee
« Censeur »
1381736040000
    • Brkeeee#0000
    • Profil
    • Derniers messages
    • Tribu
#137
  0
Safwanrockz a dit :
ui.addTextArea(0, "Text Here", nil, nil, nil, nil, nil, 0)

thank you!!

and i need firework code
Safwanrockz
« Censeur »
1381750500000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#138
  0
Brkeeee a dit :
thank you!!

and i need firework code

tfm.exec.explosion(Int xPosition, Int yPosition, Int power, Int distance, Boolean miceOnly)
I haven't tried it yet so I don't know the standards of the power and distance.
Magicalorb a dit :
I have this command.
But it doesnt seem to do anything. How can I fix it?

Kinda late but blegh.
a dit :

function eventChatCommand(playerName,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert (arg, argument);
end
if arg[1] == "noob" then
tfm.exec.killPlayer(playerName)
end
end
Bushmeister
« Consul »
1381756020000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#139
  0
Is it possible to make so that when the shaman died began a new round?
Shamousey
« Consul »
1381756800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#140
  0
Bushmeister a dit :
Is it possible to make so that when the shaman died began a new round?

function eventPlayerDied(name)
if tfm.get.room.playerList[name].isShaman then
tfm.exec.newGame()
end
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 7 / 160 › »
© Atelier801 2018

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

Version 1.27