×

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
« ‹ 154 / 160 › »
Script Requests
Overjoy06
« Citoyen »
1554874860000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3061
  0
i need a code that if you type a word in a popup (maximum word is 7 letters) it would add a textArea that is the place where your word that you answered in the popup will be. sorry for bad grammar english is not my native language
Onkei
« Citoyen »
1554887040000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#3062
  0
Overjoy06 a dit :
i need a code that if you type a word in a popup (maximum word is 7 letters) it would add a textArea that is the place where your word that you answered in the popup will be. sorry for bad grammar english is not my native language

Something like this?


Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function showWordPrompt(name)
ui.addPopup(0, 2, "Enter a word (Max: 7 words)", name, 20, 20, 200, true)
end

function manageWordPrompt(name, answer)
if answer:len() > 7 then
showWordPrompt(name)

else
local player = tfm.get.room.playerList[name]
ui.addTextArea(0, answer, nil, player.x, player.y, nil, 20, 0x00000, 0x00000, 0.6, false)
end
end

function eventPopupAnswer(id, name, answer)
if id == 0 then
manageWordPrompt(name, answer)
end
end

function eventChatCommand(name, cmd)
if cmd == "popup" then
showWordPrompt(name)

elseif cmd == "popupall" then
for _name in next, tfm.get.room.playerList do
showWordPrompt(_name)
end
end
end

eventChatCommand("Overjoy06#0000", "popup")
Jitotranss
« Citoyen »
1554947460000
    • Jitotranss#0000
    • Profil
    • Derniers messages
    • Tribu
#3063
  0
Hello I would like to have this script is very long regret that :(

That everyone can put a table but it takes 5s to put another one and that a counter of the seconds comes out as a text
I need a rotation of vanilla maps
that disappear the tables within 5s
This is a text that refers to those who say PREPARE! and After you have everything
what you want A player between the hole, the sea, 5s and the pass to the other.
Now, a command that is when someone enters the hole. the name of who came in comes) He won the match!
but I have a problem that when you move to the next map,
another problem is that I have a text that is [space-fly] when it goes to the next map that is sold
Another problem when I put the setuimap that appears at the time the map code comes out what I said let's say "fly" when passing the next map it comes out
I want these commands that when a person puts help out a big box and just put you in the text '' text '' and I already write what I want in that text
when a player puts
Color (your mouse with the tag) (the color you want)
when I put! admins out
the administrators in a bank
Thank you.
Boxofkrain
« Censeur »
1554967200000
    • Boxofkrain#0000
    • Profil
    • Derniers messages
    • Tribu
#3064
  0
Jitotranss a dit :
Hello I would like to have this script is very long regret that :(

That everyone can put a table but it takes 5s to put another one and that a counter of the seconds comes out as a text
I need a rotation of vanilla maps
that disappear the tables within 5s
This is a text that refers to those who say PREPARE! and After you have everything
what you want A player between the hole, the sea, 5s and the pass to the other.
Now, a command that is when someone enters the hole. the name of who came in comes) He won the match!
but I have a problem that when you move to the next map,
another problem is that I have a text that is [space-fly] when it goes to the next map that is sold
Another problem when I put the setuimap that appears at the time the map code comes out what I said let's say "fly" when passing the next map it comes out
I want these commands that when a person puts help out a big box and just put you in the text '' text '' and I already write what I want in that text
when a player puts
Color (your mouse with the tag) (the color you want)
when I put! admins out
the administrators in a bank
Thank you.

Ym, can you put the code here and describe every problem once again?
Jitotranss
« Citoyen »
1555021920000
    • Jitotranss#0000
    • Profil
    • Derniers messages
    • Tribu
#3065
  0
which code?

another problem is that I have a text that is [fly-space] when it goes to the next map that is sold
Another problem when I set the setuimap that appears at the moment the map code comes out what I said, let's say "fly" when the next map is passed out
I'm using translator so it does not translate very well is that the server is '' script request '' do not respond so I put this comment in this forum.

Dernière modification le 1555021980000
Rohere
« Consul »
1557519960000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#3066
  0
Is there any way to add invisible ground with Lua? (with tfm.exec.addPhysicObject ofc)
Bolodefchoco
« Sénateur »
1557541860000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3067
  1
Rohere a dit :
Is there any way to add invisible ground with Lua? (with tfm.exec.addPhysicObject ofc)

type 14
Rohere
« Consul »
1557602760000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#3068
  0
Bolodefchoco a dit :
Rohere a dit :
Is there any way to add invisible ground with Lua? (with tfm.exec.addPhysicObject ofc)

type 14

Thank you
Peynirmuis
« Citoyen »
1557664020000
    • Peynirmuis#0000
    • Profil
    • Derniers messages
    • Tribu
#3069
  0
Hi, I was searching for codes. I searched a lot on forums but i could not find a code that i wanted.
I may request 2 codes for the contests that i was planned for the events in my tribe or friendly tribes.
1. I’m searching a code about scoring for my song contest plan. But i don’t know lua coding.
I’m searching scoreboard code. Points should not given for dying, getting cheese or entering the hole. Contestants give points to each other. Contestants can not give points for themself.
I don’t want to only add all players on the room in scoreboard, I want to add players that are not in the room or not online in the game at that moment to scoreboard. I want to add limited amount of players in scoreboard. But I want everyone in the room to join the voting.
I want to limit the voting time to a specific time limit. After that specific time limit ends, i want that voting to close.
The players that are joined to voting will give 10 types of points like 1,2,3,4,5,6,7,8,9 and 10. Every type of points will be given for different contestant.
During the voting time, voters won’t see other voters votes (If that command may be not possible, voters write their votes to me, so i will be only person to record the votes). After the voting time, votes will announce(one by one, not very fast) by my command.
The results will end after every voters votes will announce.
2.Trivia
A quiz idea for my trivia game plan. I searched a lot in the forums, some of them are fine but i needed a few more features that i needed.
Only the players that are room will join the quiz. After first question announces, the contest starts and no more prople will join the contest anymore. Leaving the room will result with disqualification.
There will be only multiple choice questions (questions that have A,B,C,D options, you know).
Everyone will answer the questions in the same time interval. Everyone will answer the same questions in the same time interval.
After the time intervals for the questions ends, result will announce for every question. Which players. Which choices choosed by how many and which players will announce (that will be announced for every choice).
The results will be shown at the screen for a few seconds.
The players who answered the question wrong will be eliminated.
There should be a little time between the question result with the question time intervals. I don’t want to contest run very fast.
After 1 player left or there will be no player left, contest will end.
Rewards will be given by the responsible contest admins for the placement in the contests (for both contests).
I know that my suggested contests are hard to make and very hard to code. I may request help from you for my event plans. Sorry for my English, it is not my native language. Thank you a lot if you give some help or not.
Ndngberk2009
« Censeur »
1557739920000
    • Ndngberk2009#6144
    • Profil
    • Derniers messages
    • Tribu
#3070
  0
Peynirmuis a dit :
Hi, I was searching for codes. I searched a lot on forums but i could not find a code that i wanted.
I may request 2 codes for the contests that i was planned for the events in my tribe or friendly tribes.
1. I’m searching a code about scoring for my song contest plan. But i don’t know lua coding.
I’m searching scoreboard code. Points should not given for dying, getting cheese or entering the hole. Contestants give points to each other. Contestants can not give points for themself.
I don’t want to only add all players on the room in scoreboard, I want to add players that are not in the room or not online in the game at that moment to scoreboard. I want to add limited amount of players in scoreboard. But I want everyone in the room to join the voting.
I want to limit the voting time to a specific time limit. After that specific time limit ends, i want that voting to close.
The players that are joined to voting will give 10 types of points like 1,2,3,4,5,6,7,8,9 and 10. Every type of points will be given for different contestant.
During the voting time, voters won’t see other voters votes (If that command may be not possible, voters write their votes to me, so i will be only person to record the votes). After the voting time, votes will announce(one by one, not very fast) by my command.
The results will end after every voters votes will announce.
2.Trivia
A quiz idea for my trivia game plan. I searched a lot in the forums, some of them are fine but i needed a few more features that i needed.
Only the players that are room will join the quiz. After first question announces, the contest starts and no more prople will join the contest anymore. Leaving the room will result with disqualification.
There will be only multiple choice questions (questions that have A,B,C,D options, you know).
Everyone will answer the questions in the same time interval. Everyone will answer the same questions in the same time interval.
After the time intervals for the questions ends, result will announce for every question. Which players. Which choices choosed by how many and which players will announce (that will be announced for every choice).
The results will be shown at the screen for a few seconds.
The players who answered the question wrong will be eliminated.
There should be a little time between the question result with the question time intervals. I don’t want to contest run very fast.
After 1 player left or there will be no player left, contest will end.
Rewards will be given by the responsible contest admins for the placement in the contests (for both contests).
I know that my suggested contests are hard to make and very hard to code. I may request help from you for my event plans. Sorry for my English, it is not my native language. Thank you a lot if you give some help or not.

Do i add the hall to balcony
Peynirmuis
« Citoyen »
1557748500000
    • Peynirmuis#0000
    • Profil
    • Derniers messages
    • Tribu
#3071
  0
I know that the request is too big and really very hard to write but;
instead of writing nonsense things, let the people try to help me.

Dernière modification le 1557762360000
Boxofkrain
« Censeur »
1557771660000
    • Boxofkrain#0000
    • Profil
    • Derniers messages
    • Tribu
#3072
  0
Peynirmuis a dit :
I know that the request is too big and really very hard to write but;
instead of writing nonsense things, let the people try to help me.

We can't help you because your script request makes no sense.
Peynirmuis
« Citoyen »
1557785400000
    • Peynirmuis#0000
    • Profil
    • Derniers messages
    • Tribu
#3073
  0
Boxofkrain a dit :
Peynirmuis a dit :
I know that the request is too big and really very hard to write but;
instead of writing nonsense things, let the people try to help me.

We can't help you because your script request makes no sense.

I said Ndngberk2009's words to nonsense cause i wrote that on both TR and EN script request pages in both languages; Ndngberk2009 wrote the same on my posts at both forums. Nonsense was not him of course, nonsense was his troll. And thats ok. I don't want to be misunderstood because of that.
My script requests is about my planned events and contests for friendly tribe and for my friends. Those does not make a lot sense, but i don't agree with you, those make a little bit sense at least.
When I requested help from game lua chat, they saw these posts too, and they said, he wrote this maybe cause you requested someone to make you a module. He could gave me more normal response in my opinion but that is ok, no problem.
I knew that making those will take a very long time. And i surely understand the all reasons for those ideas may not be written at lua. It is ok no problem, making those manually is still possible. It is okay.
Thank you.
Overjoy06
« Citoyen »
1559716860000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3074
  0
local admin = "Overjoy06#0000"

function eventChatCommand(n, cmd)
if admin[n] then
if cmd:sub(1, 4) == "kill" then
local toDie = command:sub(6)
tfm.exec.killPlayer(toDie)
end
end
end

I'm sorry im stupid. I can't do the command even though i am an admin
Onkei
« Citoyen »
1559724420000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#3075
  0
Overjoy06 a dit :
local admin = "Overjoy06#0000"

function eventChatCommand(n, cmd)
if admin[n] then
if cmd:sub(1, 4) == "kill" then
local toDie = command:sub(6)
tfm.exec.killPlayer(toDie)
end
end
end

I'm sorry im stupid. I can't do the command even though i am an admin

Both solutions below should work. The second one is more scalable as you'll be able to add more admins.


Code Lua

1
2
3
4
5
6
7
8
9
10
local admin = "Overjoy06#0000"

function eventChatCommand(n, cmd)
if n == admin then
if cmd:sub(1, 4) == "kill" then
local toDie = command:sub(6)
tfm.exec.killPlayer(toDie)
end
end
end


Code Lua

1
2
3
4
5
6
7
8
9
10
local admin = {["Overjoy06#0000"] = true, ["Onkei#0000"] = true}

function eventChatCommand(n, cmd)
if admin[n] then
if cmd:sub(1, 4) == "kill" then
local toDie = command:sub(6)
tfm.exec.killPlayer(toDie)
end
end
end

Dernière modification le 1559731980000
Overjoy06
« Citoyen »
1559898000000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3076
  0
Thanks Onkei Your a lifesaver :3
Rapllzz
« Citoyen »
1560252780000
    • Rapllzz#0000
    • Profil
    • Derniers messages
    • Tribu
#3077
  0
I've been playing football since 2012.

I want to OLD #FOOTBALL LUA (with pink arrow)

Who can share who has it?

I wrote a message to Makinit#0095 but I didn't get a return
Overjoy06
« Citoyen »
1560325140000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3078
  0
Rapllzz a dit :
I've been playing football since 2012.

I want to OLD #FOOTBALL LUA (with pink arrow)

Who can share who has it?

I wrote a message to Makinit#0095 but I didn't get a return

I think he doesn't want to share the code :/ or I didn't see the module code
also you can just do /room #football or do /module #football in your tribe

Dernière modification le 1560325320000
Shadiiii
« Citoyen »
1560421920000
    • Shadiiii#5522
    • Profil
    • Derniers messages
    • Tribu
#3079
  0
Overjoy06 a dit :
Rapllzz a dit :
I've been playing football since 2012.

I want to OLD #FOOTBALL LUA (with pink arrow)

Who can share who has it?

I wrote a message to Makinit#0095 but I didn't get a return

I think he doesn't want to share the code :/ or I didn't see the module code
also you can just do /room #football or do /module #football in your tribe

He wants old one
Second_life
« Citoyen »
1560666300000
    • Second_life#7503
    • Profil
    • Derniers messages
    • Tribu
#3080
  0
i think its not possible but im gonna ask anyway. If i have like 150 score then i click a textArea after that it would do this :
tfm.exec.setPlayerScore("Second_life #7503", 1, true)
if it's not possible it's okay.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 154 / 160 › »
© Atelier801 2018

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

Version 1.27