×

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
« ‹ 121 / 160 › »
Script Requests
Intasmg
« Citoyen »
1481958780000
    • Intasmg#0000
    • Profil
    • Derniers messages
    • Tribu
#2401
  0
boralamaya a dit :
I need a code like when someone comes to hole first with cheese he will see a print message like this "Bravo!". But others which aren't first won't see this print message.

Since you can't print text in the chat box the only way to do this is using a textarea. Is not the same but it works.

Code Lua

1
2
3
4
5
6
7
8
9
10
11
function eventNewGame()
ui.removeTextArea (0) --Remove textarea when a new round begins
mouseWon = false
end

function eventPlayerWon (name)
if not mouseWon then --This'll trigger only when the first mouse gets in the hole
ui.addTextArea (0, "<font size='20'>Bravo!</font>", name, 400, 365)
mouseWon = true
end
end


edit: you can also use a popup instead.

Code Lua

1
ui.addPopup(0, 0, "<p align='center'>Bravo!</p>", name, 300, 300)

Dernière modification le 1482072540000
Krymster
« Citoyen »
1482281580000
    • Krymster#0000
    • Profil
    • Derniers messages
    • Tribu
#2403
  0
Could anyone please write me a script so that an admin can have a command that gives a player -1 points in the list? And a command for skipping the current map (also for the admin)? Please please please :3
Gekkeiju
« Citoyen »
1482283680000
    • Gekkeiju#0000
    • Profil
    • Derniers messages
    • Tribu
#2404
  0
Krymster a dit :
Could anyone please write me a script so that an admin can have a command that gives a player -1 points in the list? And a command for skipping the current map (also for the admin)? Please please please :3

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
function isAdmin(name)
for i, n in ipairs({"Krymster", "Gekkeiju"}) do --admins' names
if n == name then
return true
end
end
return false
end

function eventChatCommand(name, command)
local args = {}
for arg in string.gmatch(command, "[^%s]+") do
table.insert(args, arg)
end

if isAdmin(name) then
if args[1] == "give-1" then
tfm.exec.setPlayerScore(args[2], -1)
elseif args[1] == "skip" then
--some function to load the next map.
end
end
end

for i, command in ipairs({"give-1", "skip"}) do --commands to hide
system.disableChatCommandDisplay(command, true)
end
Einmeister
« Citoyen »
1482349980000
    • Einmeister#0407
    • Profil
    • Derniers messages
#2405
  0
make it shoot snowballs plz
Dramacorn
« Consul »
1482495540000
    • Dramacorn#2857
    • Profil
    • Derniers messages
    • Tribu
#2406
  0
Hi, how can I make a textarea with more options to be text example:,,mice,, when I click on mice appear other two texts at the same time, thanks!
Turce1st
« Censeur »
1482751560000
    • Turce1st#4618
    • Profil
    • Derniers messages
#2407
  0
hello
i want help
how can i Conversion the mice to image
by the cobe :
tfm.add.image
Velspar
« Citoyen »
1482975540000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#2408
  0
@Mmmm123
Module Documentation a dit :
• tfm.exec.addImage ( imageId, target, xPosition, yPosition, targetPlayer )
 Parameters:
  - target (String) : the game element to attach the image to
   - %playerName (with the mouse sprite removed)

Ex. tfm.exec.addImage("000.png", "%Mmmm123", 0, 0, nil)
*Note that this function can't be used in the tribe house.
@Dramatotala
Not sure what you're asking for, but this is the best I can say :

In your text use "<a href='event:callBackName'> Text being clicked. </a>" to make the text clickable.
Use the event eventTextAreaCallback(textAreaId, playerName, callBackName) for when the player clicks the text.
In that event you can do whatever you want from there.
Make it shoot snowballs.
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
snowballs = {}
tfm.exec.disableAfkDeath()tfm.exec.disableAutoNewGame()tfm.exec.disableAutoScore()tfm.exec.disableAutoShaman()tfm.exec.disableAutoTimeLeft()
tfm.exec.newGame(0)tfm.exec.snow(9999, 25)

function eventLoop(t,l)
for i,o in ipairs(snowballs) do
tfm.exec.removeObject(o)
table.remove(snowballs, i)
end

for i = 1, 10 do
local a = math.random(360)
table.insert(snowballs, tfm.exec.addShamanObject(34, math.random(100,700), math.random(50,350), a, math.sin(a)*10, math.cos(a)*10))
end
end

eventPlayerDied = tfm.exec.respawnPlayer
eventPlayerWon = tfm.exec.respawnPlayer
Krymster
« Citoyen »
1483114920000
    • Krymster#0000
    • Profil
    • Derniers messages
    • Tribu
#2409
  0
Hey! I need something like #pokelua, where you can write a command to morph into a certain image (or 2 images for left and right). Anyone know how to do this?
Laagaadoo
« Citoyen »
1483144260000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#2410
  0
Krymster a dit :
Hey! I need something like #pokelua, where you can write a command to morph into a certain image (or 2 images for left and right). Anyone know how to do this?

You can't add images in tribe house
Piegirlseyaj
« Citoyen »
1483195920000
    • Piegirlseyaj#0000
    • Profil
    • Derniers messages
#2411
  0
We could like update the profiles. So like maybe change the colors of your main profile background add some extra stuff.
-------------------------------------------------

Iamconz a dit :
When someone makes the kissing emote, make the chat say
Rad idea totally agree
"(whoever the playername is) is inlove! *-*"
Massi
« Consul »
1483216260000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2412
  0
i want Countdown script please
Sebafrancuz
« Consul »
1483216380000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#2413
  0
unlocker001 a dit :
i want Countdown script please

I hope it's working ^^
code

Code Lua

1
2
3
4
5
6
7
8
9
function eventLoop()
if tonumber(os.date("%Y")) == 2016 and tonumber(os.date("%m"))==12 and tonumber(os.date("%d"))==31 and tonumber(os.date("%H"))==23 and tonumber(os.date("%M"))==59 then
if tonumber(os.date("%S")) >=50 then
ui.addTextArea(1,"<R><B><font size='120'>"..(60-tonumber(os.date("%S"))).."</font></B></R>", nil, 300,100,n,n,0.0,0.0,0.0,true)
end
elseif tonumber(os.date("%Y")) == 2017 then
ui.addTextArea(1,"<R><B><font size='70'>HAPPY NEW YEAR!</font></B></R>", nil, 20,100,n,n,0.0,0.0,0.0,true)
end
end

Dernière modification le 1483219080000
Massi
« Consul »
1483216980000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2414
  0
sebafrancuz a dit :
unlocker001 a dit :
i want Countdown script please

I hope it's working ^^
code

Code Lua

1
2
3
4
5
6
7
8
9
function eventLoop()
if tonumber(os.date("%Y")) == 2016 and tonumber(os.date("%m"))==12 and tonumber(os.date("%d"))==31 and tonumber(os.date("%H"))==23 and tonumber(os.date("%M"))==59 then
if tonumber(os.date("%S")) >=50 then
ui.addTextArea(1,"<R><B><font size='120'>"..(60-tonumber(os.date("%S"))).."</font></B></R>", nil, 300,100,n,n,0.0,0.0,0.0,true)
end
elseif tonumber(os.date("%Y")) == 2017 then
--something after "Countdown"
end
end

show 0 add me on transformice and come ok

Dernière modification le 1483218000000
Krymster
« Citoyen »
1483257180000
    • Krymster#0000
    • Profil
    • Derniers messages
    • Tribu
#2415
  0
Laagaadoo a dit :
Krymster a dit :
Hey! I need something like #pokelua, where you can write a command to morph into a certain image (or 2 images for left and right). Anyone know how to do this?

You can't add images in tribe house

Then why does pokelua work in tribehouse? How was it made anyway?
Tat
« Censeur »
1483269180000
    • Tat#0095
    • Profil
    • Derniers messages
    • Tribu
#2416
  0
Krymster a dit :
Laagaadoo a dit :
Krymster a dit :
Hey! I need something like #pokelua, where you can write a command to morph into a certain image (or 2 images for left and right). Anyone know how to do this?

You can't add images in tribe house

Then why does pokelua work in tribehouse? How was it made anyway?

Because it's a semi-official module, it's created by a lua member anyways and only lua members can add images in public module rooms only. Semi-official/official module have to use /module <modulename> to play them, so they can have images.

Pokelua made by Jordynl. If you want to add images u have to contact a lua member to help u load the images and script, using the tfm.exec.addImage function(refer to the post above) and tfm.exec.removeImage(id). The id can be gotten by the return of tfm.exec.addImage, e.g. ImageID=tfm.exec.addImage("000.png", "%Mmmm123", 0, 0, nil)
tfm.exec.removeImage(ImageID)

Dernière modification le 1483269600000
Massi
« Consul »
1483311780000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2417
  0
I want a guardian of room he can kick players who hack or insult .... Players can report with
Report Nickname!
When 3 players report the robot kick the player reported
Pls give me the script
Laagaadoo
« Citoyen »
1483315740000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#2418
  0
unlocker001 a dit :
I want a guardian of room he can kick players who hack or insult .... Players can report with
Report Nickname!
When 3 players report the robot kick the player reported
Pls give me the script

You can't kick out players using Lua.
Coolilagamer
« Citoyen »
1483331040000
    • Coolilagamer#0000
    • Profil
    • Derniers messages
    • Tribu
#2419
  0
Hide peoples name tags?

Also if i where to use a script how do i use it?

Dernière modification le 1483331100000
Massi
« Consul »
1483355460000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2420
  0
Laagaadoo a dit :
unlocker001 a dit :
I want a guardian of room he can kick players who hack or insult .... Players can report with
Report Nickname!
When 3 players report the robot kick the player reported
Pls give me the script

You can't kick out players using Lua.

we can't use /invkick Nickname with lua ?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 121 / 160 › »
© Atelier801 2018

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

Version 1.27