×

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
« ‹ 4 / 160 › »
Script Requests
Shamousey
« Consul »
1381360380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#61
  0
Tinittee a dit :
Add Cannon for All in script, please.

Thank you.

There's code that allows everyone to shoot cannons over in my FFA Tutorial Topic-457951 you can just add them together.
Fluffyshine
« Citoyen »
1381362540000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#62
  0
How can I split players into teams?
Doneky
« Citoyen »
1381369440000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#63
  0
Somebody can help me with this new script?
a dit :
elseif command == "pause" then
function eventPlayerDied(playerName)
tfm.exec.respawnPlayer(playerName)
tfm.exec.setGameTime("1010101010")
end
end

But if you to use command, the player will respawn in all maps of script, BUT DON'T IS THIS THAT WANNA, JUST want that player will respawn in map of round where the command was used. In other words:
The command is a specie of pause, it will to pause the time (infinity time) in that player will respawn when him die. This script just will stop in next round/map.
a dit :
I'm sorry with bad english.
Fluffyshine
« Citoyen »
1381371240000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#64
  0
Doneky a dit :
Somebody can help me with this new script?

But if you to use command, the player will respawn in all maps of script, BUT DON'T IS THIS THAT WANNA, JUST want that player will respawn in map of round where the command was used. In other words:
The command is a specie of pause, it will to pause the time (infinity time) in that player will respawn when him die. This script just will stop in next round/map.

Do you want something like this?
a dit :



toRespawn = {};

function doRespawn(target)
for _,player in pairs (toRespawn) do
if (player == target) then
return true;
end
end
return false;
end

function eventChatCommand(target,val)
if (val == [[pause]]) then
table.insert(toRespawn, target)
print([[<bl>Respawn mode for <v>]]..target..[[<bl>:<g> <b>true</b>]])
end
end

function eventPlayerDied(target)
if doRespawn(target) then
tfm.exec.respawnPlayer(target)
end
end

function eventNewGame()
toRespawn = {};
print([[<bl>Respawn mode for <bv>everyone<bl>:<g> <b>false</b>]])
end

It works like a charm >:B
Bushmeister
« Consul »
1381389780000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#65
  0
How to change the model? For example, to play as a cow instead of mouse?
Issey
« Citoyen »
1381390920000
    • Issey#0000
    • Profil
    • Derniers messages
#66
  0
Bushmeister a dit :
How to change the model? For example, to play as a cow instead of mouse?

Only official modules can do that
Bushmeister
« Consul »
1381392120000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#67
  0
poisson is not official...
Issey
« Citoyen »
1381393260000
    • Issey#0000
    • Profil
    • Derniers messages
#68
  0
Bushmeister a dit :
poisson is not official...

rooms under the # are official
i think it uses an image instead of the mouse, so it's impossible in a tribehouse
Bushmeister
« Consul »
1381394280000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#69
  0
What should be done to mini-game became official?
Thewav
« Citoyen »
1381401840000
    • Thewav#0095
    • Profil
    • Derniers messages
    • Tribu
#70
  0
Issey a dit :
rooms under the # are official
i think it uses an image instead of the mouse, so it's impossible in a tribehouse

It's not official i jjust running it when i have time
Orb
« Censeur »
1381405800000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#71
  0
Can someone give me an example of function eventTextAreaCallback, with a simple popup?
Jordy
« Consul »
1381407060000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#72
  0
Magicalorb a dit :
Can someone give me an example of function eventTextAreaCallback, with a simple popup?

Hmm all I have is...

Jordynl a dit :

room = {}
interface = {}
interface.main = [[
<p align='center'><font size='20' face='Monospace' color='#98E2EB'>Room control</font>
The next groups are available:
<font color='#95D9D6'>
<a href="event:room">Room settings</a>
<a href="event:shaman">shaman settings</a>
<br/>
<a href="event:exit"><b>Close menu</b></a></font></p>
</p>
]]
interface.shaman = [[
<p align='center'><font size='20' face='Monospace' color='#98E2EB'>Shaman settings</font><br/>
<font color='#95D9D6'>
<a href="event:add_shaman">Add a new shaman</a>
<a href="event:all_shaman">Set everyone as shaman</a>
<br/><a href="event:back"><b>Back to previous menu</b></a></p>
]]
interface.room = [[
<p align='center'><font size='20' face='Monospace' color='#98E2EB'>Room settings</font>
<font color='#95D9D6'><a href="event:play_map">Play a new map</a>
<a href="event:all_shaman">Enable Snow</a>, <a href="event:all_shaman">Disable Snow</a>
<br/><a href="event:back"><b>Back to previous menu</b></a></p>
]]
for playerName,player in pairs(tfm.get.room.playerList) do
ui.addTextArea(18, "<a href='event:openmenu'><font color='#D4CDCD'><b>Open room control</font></b></a>", playerName, 660, 30, 130, 20, "0x274850", "0x98E2EB", 0.1)
end

function whisper(to,from,message) tfm.exec.chatMessage('<font color="#F0A78E"><B>></B> [<font color="#e88f4f"><B>'..from..'</B></font>] '..message..'</font>',to) end
function botSay(message) tfm.exec.chatMessage('<font color="#009D9D">[Infobot]</font> '..message..'</font>') end
function split(str) local t = {} for w in str:gmatch("%S+") do table.insert(t,w) end return t end
function eventNewGame()
room['allshams'] = 0
end

function userInRoom(mouse)
for playerName,player in pairs(tfm.get.room.playerList) do
if playerName == mouse then
return true
else
return false
end
end
end

function eventTextAreaCallback(id, playerName, callback)
if callback == "openmenu" then
ui.addTextArea(1, interface.main, playerName, 225, 50, 350, 300, "0x274850", "0x98E2EB", 0.8)
elseif callback == "back" then
ui.addTextArea(1, interface.main, playerName, 225, 50, 350, 300, "0x274850", "0x98E2EB", 0.8)
elseif callback == "exit" then
ui.addTextArea(1, interface.shaman, playerName, 220005, 100060, 350, 125, "0x274850", "0x98E2EB", 0.8)
elseif id == 1 then
if callback == "shaman" then
ui.addTextArea(1, interface.shaman, playerName, 225, 50, 350, 300, "0x274850", "0x98E2EB", 0.8)
elseif callback == "room" then
ui.addTextArea(1, interface.room, playerName, 225, 50, 350, 300, "0x274850", "0x98E2EB", 0.8)
elseif callback == "add_shaman" then
ui.addTextArea(1, interface.shaman, playerName, 220005, 100060, 350, 125, "0x274850", "0x98E2EB", 0.8)
ui.addPopup(2, 2, "Enter the name of the shaman you want to add.", playerName, 225, 160, 350)
elseif callback == "play_map" then
ui.addTextArea(1, interface.shaman, playerName, 220005, 100060, 350, 125, "0x274850", "0x98E2EB", 0.8)
ui.addPopup(3, 2, "Enter a map code", playerName, 225, 160, 350)
elseif callback == "all_shaman" then
for playerName,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(playerName)
end
botSay("<font color='#95D9D6'>"..playerName.."</font> added everyone as shaman.")
tfm.exec.setUIShamanName("<ROSE>Everyone! :D")
end
end
end

function eventPopupAnswer(id, playerName, answer)
if id == 2 then
tfm.exec.setShaman(answer)
botSay("<font color='#95D9D6'>"..playerName.."</font> added <font color='#FF99FF'>"..answer.."</font> as shaman.")
elseif id == 3 then
tfm.exec.newGame(answer)
botSay("<font color='#95D9D6'>"..playerName.."</font> plays map <font color='#EB1D51'>"..answer.."</font>")
end
end

This. Very old and out-dated but still works. :P
Papero
« Citoyen »
1381413240000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#73
  0
Issey a dit :
rooms under the # are official
i think it uses an image instead of the mouse, so it's impossible in a tribehouse

that is wrong.
non official scripts can run in #.
Kmlcan
« Citoyen »
1381437300000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#74
  0
I need a !langue command, so I'll change my minigame's language. I use this translations table;
a dit :
translations={
EN={
help={"English text"}
},
TR={
help={"Turkish test"}
}
}

.
Shamousey
« Consul »
1381438320000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#75
  0
Kmlcan a dit :
I need a !langue command, so I'll change my minigame's language. I use this translations table;

You could always just display a different language text based on the community of the room.
Hiltonsclov
1381450080000
    • Hiltonsclov#0000
    • Profil
    • Derniers messages
    • Tribu
#76
[Modéré par Ramenfrog, raison : Non-english.]
Issey
« Citoyen »
1381465680000
    • Issey#0000
    • Profil
    • Derniers messages
#77
  0
Paperonaruto a dit :
that is wrong.
non official scripts can run in #.

how and when
Shamousey
« Consul »
1381465680000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#78
  0
Issey a dit :
how and when

A Lua Team member can launch a script in any #room, it doesn't have to be official.
Issey
« Citoyen »
1381492560000
    • Issey#0000
    • Profil
    • Derniers messages
#79
  0
Shamousey a dit :
A Lua Team member can launch a script in any #room, it doesn't have to be official.

i mean official as in 'lua team members' goddangit
Bushmeister
« Consul »
1381502280000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#80
  0
Shamousey a dit :
A Lua Team member can launch a script in any #room, it doesn't have to be official.

How to get into this team?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 4 / 160 › »
© Atelier801 2018

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

Version 1.27