×

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
« ‹ 8 / 160 › »
Script Requests
Bushmeister
« Consul »
1381759080000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#141
  0
Shamousey a dit :
function eventPlayerDied(name)
if tfm.get.room.playerList[name].isShaman then
tfm.exec.newGame()
end
end

Thanks ^-^
Fightcireis
« Citoyen »
1381762260000
    • Fightcireis#0000
    • Profil
    • Derniers messages
#142
  0
Can you give me the code for the countdown? From 1:53 up to 1:50, 3 .. 2 .. 1 .. go!
Issey
« Citoyen »
1381762560000
    • Issey#0000
    • Profil
    • Derniers messages
#143
  0
Fightcireis a dit :
Can you give me the code for the countdown? From 1:53 up to 1:50, 3 .. 2 .. 1 .. go!

Lua a dit :

t={}
t[1]=110000
tfm.exec.newGame('@0')

function eventNewGame()
tfm.exec.setGameTime(120)
n=3
i=1
end

function eventLoop(ct,tr)
if(n<4) and n>0 and (tr<t) then
ui.addTextArea(1, n)
n=n-1
i=i+1
t=tr-1000
elseif n==-1 then
ui.addTextArea(1, 'Go!')
else
ui.removeTextArea(1)
end
end

I think this'll work
Bushmeister
« Consul »
1381774560000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#144
  0
Is it possible to somehow increase the power of meep?
Abdeltif
« Citoyen »
1381774800000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#145
  0
Bushmeister a dit :
Is it possible to somehow increase the power of meep?

No , i don't know how it's invreased in bafflua !
Ask shamousey :p
Shamousey
« Consul »
1381775100000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#146
  1
Bushmeister a dit :
Is it possible to somehow increase the power of meep?

You can use tfm.exec.explosion() and time when a player presses space to keep it in time with the meep if you really want to do that.

Abdeltif a dit :
No , i don't know how it's invreased in bafflua !
Ask shamousey :p

Bafflua doesn't change the power of meep at all.
Bushmeister
« Consul »
1381776600000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#147
  0
Shamousey a dit :
You can use tfm.exec.explosion() and time when a player presses space to keep it in time with the meep if you really want to do that.
Bafflua doesn't change the power of meep at all.

But then the explosion also acts on the Shaman...
and...
Why worked is only the "low" eventLoop ()? How to fix it?
Abdeltif
« Citoyen »
1381776840000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#148
  0
Bushmeister a dit :
But then the explosion also acts on the Shaman...
and...
Why worked is only the "low" eventLoop ()? How to fix it?

There is an option name "boolean formice only" in the exploasion function
Do "true" to make it for mice only .
Bushmeister
« Consul »
1381777140000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#149
  0
Abdeltif a dit :
There is an option name "boolean formice only" in the exploasion function
Do "true" to make it for mice only .

Okay, I'll try
Shamousey
« Consul »
1381777140000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#150
  0
The "miceOnly" boolean just means it won't affect shaman objects. It will still affect all mice/shamans. There's no way to stop it from working on a specific user.
Abdeltif
« Citoyen »
1381777740000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#151
  0
Shamousey a dit :
The "miceOnly" boolean just means it won't affect shaman objects. It will still affect all mice/shamans. There's no way to stop it from working on a specific user.

Oh i didin't test it befor ...
By the way check the bug that i reported in Prop hunt thread
Utkubytr
« Citoyen »
1381779540000
    • Utkubytr#0000
    • Profil
    • Derniers messages
    • Tribu
#152
  1
I'm working on a new minigame.It's #hack , i know it's really weird but i can describe it for you if i can..

i need a greetings popup message like this

||
||
\/

Erdemsalihh 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> ? </font></b></a>", playerName, 660, 30, 50, 100, "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

i want to set hack settings in pop ups if i can but i don't know lua so much. Can anyone help me?

warning : it isn't google translate , i use my weird english :(
Livcorish
« Citoyen »
1381780440000
    • Livcorish#0000
    • Profil
    • Derniers messages
#153
  0
Make someone fly in the tribe house, in the script could you input my name? Thanks in advance. Ciao.
Wingcestor
« Citoyen »
1381780560000
    • Wingcestor#0000
    • Profil
    • Derniers messages
    • Tribu
#154
  0
decorations that fly and run around. *-*
Jsilv
« Citoyen »
1381781340000
    • Jsilv#0000
    • Profil
    • Derniers messages
#155
  0
Livcorish a dit :
Make someone fly in the tribe house, in the script could you input my name? Thanks in advance. Ciao.

function eventNewPlayer(livcorish)
tfm.exec.bindKeyboard(livcorish,32,true,true)
end

for livcorish,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(livcorish)
end

function eventKeyboard(livcorish,key,down,x,y)
if key==32 then
tfm.exec.movePlayer(livcorish,0,0,true,0,-50,false)
end
end

Try that, press space to use it, hope it works.
Doneky
« Citoyen »
1381785960000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#156
  0
Somebody know a script that active meep and disable the meep with command?
Mousechris
« Censeur »
1381803240000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#157
  0
Mousechris a dit :
http://pastebin.com/C6FRN3FX

Can anyone make it so that there are multiple popup bubbles following the mouse?

still need help with this coding :/ does ANYONE know?
Baasbase
« Citoyen »
1381842300000
    • Baasbase#0095
    • Profil
    • Derniers messages
#158
  0
Mousechris a dit :
still need help with this coding :/ does ANYONE know?

instead of making a static variable (the one popup) you should make a table and iterate through it each time it should move.
Birdybot
« Citoyen »
1381851600000
    • Birdybot#0000
    • Profil
    • Derniers messages
    • Tribu
#159
  0
How do you make a script where mice can spawn different objects. So they get given a different object each time. So One mice gets an sp and the other gets a cannon.

Thanks.
Sandermr
« Citoyen »
1381857360000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#160
  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?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 8 / 160 › »
© Atelier801 2018

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

Version 1.27