×

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
« ‹ 15 / 160 › »
Script Requests
Tailtong
« Citoyen »
1382631120000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#281
  0
Shamousey, you said that spawning particles with Lua is possible. How?

a dit :

function eventChatCommand(p,c)
if c:sub(0,8)=="particle" then
--particle spawning thing here
end
end
Safwanrockz
« Censeur »
1382633580000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#282
  0
Tailtong a dit :
Shamousey, you said that spawning particles with Lua is possible. How?

I suppose with tfm.exec.explosion or otherwise it's not mentioned in the lua documentation.
Nicknamepll
« Citoyen »
1382635500000
    • Nicknamepll#0000
    • Profil
    • Derniers messages
    • Tribu
#283
  0
How do I change the name of the map on the "Minigame"?
Jordy
« Consul »
1382638440000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#284
  0
a dit :
Tigrounette said:
tfm.exec.setUIMapName(String text)

^ With that.
Shamousey
« Consul »
1382641500000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#285
  0
Tailtong a dit :
Shamousey, you said that spawning particles with Lua is possible. How?

I never said it's possible - it's not. You can only use other events to spawn particles: when a shaman object spawns there's a puff of smoke, when a piece of conjuration is spawned there's a small particle effect. You can use these, but there's no dedicated function to it.
Voke
« Citoyen »
1382645760000
    • Voke#0000
    • Profil
    • Derniers messages
    • Tribu
#286
  0
Jordynl a dit :
I'm not sure how to get the ID's of the spawned canons yet but here is a timed function that gets called each 5 seconds.
I hope that someone else can help you with getting the cannon ID's.

It sure is useful and thanks a lot, but I still cannot use it in this case. I need to despawn cannon five second since some shaman summons it, not every five second.

Also, I plan to make an easter egg- everyone with vampire teeth (item) will become a vampire at 1:00. How could I make this? I know there is a command to check player's clothes, but it doesn't work for me. Help?
Shamousey
« Consul »
1382646360000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#287
  0
Voke a dit :
Also, I plan to make an easter egg- everyone with vampire teeth (item) will become a vampire at 1:00. How could I make this? I know there is a command to check player's clothes, but it doesn't work for me. Help?

print(tfm.get.room.playerList["Voke"].look) should return the list of clothes you're wearing.
Petrenrenpet
« Citoyen »
1382662500000
    • Petrenrenpet#0000
    • Profil
    • Derniers messages
    • Tribu
#288
  0
I want a script that when I write: "!word" (word = ramdom word of the table), the person give cheese...
How i make the chatCommand ?

To help:
script a dit :
worddds={"Café", "Cajú", "Macarrão", "Doente", "Computador", "Televisão"}
worddd={"Arroz","Feijão","Pimenta","Macaco","Espelho"}
words={"Abacaxi", "Pato", "Ganso", "Basquete", "Futebol"}

worddds=worddds[math.random(#words)]
word=words[math.random(#words)]
wordd=worddd[math.random(#worddd)]

[url=]ui.addPopup(0,0,(word),name,300,200,100)
ui.addPopup(1,0,(wordd),name,200,200,100)
ui.addPopup(2,0,(worddds),name,100,200,100)
[/url]


^ The words...

The word appear on balloon, is the word of the command will work
Eliaseeg
« Citoyen »
1382668140000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
#289
  0
The box code help pls ;_;
Skylamouse
« Citoyen »
1382691060000
    • Skylamouse#0000
    • Profil
    • Derniers messages
    • Tribu
#290
  0
a script that we could whip our tribemates in the tribe house?
for example /whip *enter person's name here*
Nathaan
« Citoyen »
1382696700000
    • Nathaan#0000
    • Profil
    • Derniers messages
    • Tribu
#291
  0
Kill player if this enter in a zone, coords :

[•] X : 897 & Y : 231 & JOUEUR = Nathaan (start)
[•] X : 1621 & Y : 376 & JOUEUR = Nathaan (end)
Safwanrockz
« Censeur »
1382699340000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#292
  0
Petrenrenpet a dit :
I want a script that when I write: "!word" (word = ramdom word of the table), the person give cheese...
How i make the chatCommand ?

To help:^ The words...

The word appear on balloon, is the word of the command will work

Something like this? x.x
a dit :
words={"noodles","word1","word2","word3"}
function eventNewGame()
word=words[math.random(#words)]
end
function eventChatCommand(name,cmd)
if cmd==word then
tfm.exec.giveCheese(name)
tfm.exec.playerVictory(name)
end
end

~

Eliaseeg a dit :
The box code help pls ;_;

Box code? o3o
Skylamouse a dit :
a script that we could whip our tribemates in the tribe house?
for example /whip *enter person's name here*

Whip? What do you mean by whip? '-'
Nathaan a dit :
Kill player if this enter in a zone, coords :

[•] X : 897 & Y : 231 & JOUEUR = Nathaan (start)
[•] X : 1621 & Y : 376 & JOUEUR = Nathaan (end)

I made this, I don't know if it works properly though.
a dit :
function eventLoop(time,remaining)
for name,player in pairs(tfm.get.room.playerList) do
x=tfm.get.room.playerList[name].x
y=tfm.get.room.playerList[name].y
if(x>897 and x<1621 and y<400) then
tfm.exec.killPlayer(name)
end
end
end

 
Issey
« Citoyen »
1382699760000
    • Issey#0000
    • Profil
    • Derniers messages
#293
  0
Voke a dit :
It sure is useful and thanks a lot, but I still cannot use it in this case. I need to despawn cannon five second since some shaman summons it, not every five second.

Also, I plan to make an easter egg- everyone with vampire teeth (item) will become a vampire at 1:00. How could I make this? I know there is a command to check player's clothes, but it doesn't work for me. Help?

a dit :
timer=0
loop=false

function eventLoop (timeC, timeR)
if(loop==true) then
timer = timer + 1
if timer==5 then
tfm.exec.removeObject(item)
timer=0
loop=false
end
end
end

function eventSummoningEnd(name,type,x,y,a,vx,vy,type2,table)
loop=true
for k,v in pairs(type2) do
if(k=='id') then
item=v
end
end
end

This works, but it won't remove multiple objects being spawned at one time.
Skylamouse
« Citoyen »
1382700900000
    • Skylamouse#0000
    • Profil
    • Derniers messages
    • Tribu
#294
  0
Safwanrockz a dit :
Something like this? x.x

~


Box code? o3o

Whip? What do you mean by whip? '-'

I made this, I don't know if it works properly though.
 

You know, hitting someone with a thin lash but in the tribe house if someone types that then it'll say *someone* whipped *someone* with a painful hit or something like that. It's like making a kissing emote and then the chat says *someone* is in love! expect it's with whipping C:
Jordy
« Consul »
1382702700000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#295
  0
Skylamouse a dit :
You know, hitting someone with a thin lash but in the tribe house if someone types that then it'll say *someone* whipped *someone* with a painful hit or something like that. It's like making a kissing emote and then the chat says *someone* is in love! expect it's with whipping C:

You can't use images. I think that it is impossible to make.
Papero
« Citoyen »
1382707440000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#296
  0
Jordynl a dit :
You can't use images. I think that it is impossible to make.

make one out of popups? @_@ but its too fat :c
Issey
« Citoyen »
1382709240000
    • Issey#0000
    • Profil
    • Derniers messages
#297
  0
Paperonaruto a dit :
make one out of popups? @_@ but its too fat :c

That would look extreeeemely weird @.@
Eliaseeg
« Citoyen »
1382743140000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
#298
  0
Safwanrockz a dit :



Box code? o3o

 

No, sorry, pop up help with pages

- Thanks Jordyn o/
Jordy
« Consul »
1382743500000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#299
  0
Eliaseeg a dit :
No, sorry, pop up help with pages

Try this:

Shamousey a dit :
help={
"Here is your help.",
"What happens if the text on this second page is so insanely long, will it cut itself off to the next line? I hope so.",
"Here's a third page, oh my god!"
}

players={}
system.disableChatCommandDisplay("help")

function eventNewPlayer(name)
players[name]={helpid=1}
ui.addTextArea(0,"<p align='center'><a href='event:help'><b>?</b></a></p>",name,780,374,16,16,nil,0x324650,nil,true)
end

function eventChatCommand(name,command)
if command=="help" then
ui.addTextArea(1,help[players[name].helpid],name,250,50,300,300,nil,0x324650,nil)
ui.addTextArea(2,"<p align='center'><a href='event:previous'><b>&lt;</b></a></p>",name,500,365,16,16,nil,0x324650,nil)
ui.addTextArea(3,"<p align='center'><a href='event:next'><b>&gt;</b></a></p>",name,532,365,16,16,nil,0x324650,nil)
ui.addTextArea(4,"<p align='center'><a href='event:close'><b>Close</b></a></p>",name,442,365,42,16,nil,0x324650,nil)
ui.addTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name,250,365,42,16,nil,0x324650,nil)
end
end

function eventTextAreaCallback(id,name,callback)
if callback=="help" then
eventChatCommand(name,callback)
elseif callback=="close" then
players[name].helpid=1
for id=1,5 do
ui.removeTextArea(id,name)
end
elseif callback=="next" and players[name].helpid<#help then
players[name].helpid=(players[name].helpid)+1
ui.updateTextArea(1,help[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name)
elseif callback=="previous" and players[name].helpid>1 then
players[name].helpid=players[name].helpid-1
ui.updateTextArea(1,help[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name)
end
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
Xanmeow
« Citoyen »
1382743800000
    • Xanmeow#0000
    • Profil
    • Derniers messages
    • Tribu
#300
  0
how about one where you can change the speed of a mouse by doing !speed speedhere if not possile then just one where a mouse speed will be that and stay that...

this is what I heard works but... idk

vx,vy (velocity)

Edit: 300th post :D
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 15 / 160 › »
© Atelier801 2018

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

Version 1.27