×

Language

Close
Atelier 801
  • Forums
  • Dev Tracker
  • Log in
    • 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
  • Language
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
1 / 160 › »
Script Requests
Shamousey
« Consul »
1381163760000
    • Shamousey#0095
    • Profile
    • Last posts
    • Tribe
#1
  5
If you want a certain script to be created but don't know how to do it yourself, feel free to ask for it in this thread, and make sure you specify exactly what you want. Someone who knows what they're doing will hopefully come to this thread and help develop it for you.

Please check that your request hasn't already been posted in this thread first. Topic-451991
Papero
« Citizen »
1381164000000
    • Papero#9240
    • Profile
    • Last posts
    • Tribe
#2
  0
Making Bubbles float around in my tribehouse!
Iamconz
« Citizen »
1381164120000
    • Iamconz#0000
    • Profile
    • Last posts
    • Tribe
#3
  1
When someone makes the kissing emote, make the chat say
"(whoever the playername is) is inlove! *-*"
Hoopatroopa
« Citizen »
1381164120000
    • Hoopatroopa#0000
    • Profile
    • Last posts
    • Tribe
#4
  0
A falling script.
Baasbase
« Citizen »
1381164120000
    • Baasbase#0095
    • Profile
    • Last posts
#5
  0
Iamconz said:
When someone makes the kissing emote, make the chat say
"(whoever the playername is) is inlove! *-*"

Baasbase said:

function eventEmotePlayed(player, emote)
if emote == 3 then
tfm.exec.chatMessage(player .. " is inlove! *-*")
end
end
Iamconz
« Citizen »
1381164360000
    • Iamconz#0000
    • Profile
    • Last posts
    • Tribe
#6
  0
Baasbase said:

hm, can't seem to get it to work :(

o -V
Papero
« Citizen »
1381164360000
    • Papero#9240
    • Profile
    • Last posts
    • Tribe
#7
  0
Baasbase said:

wont work in tribehouses :C
Baasbase
« Citizen »
1381164540000
    • Baasbase#0095
    • Profile
    • Last posts
#8
  1
you can either replace tfm.exec.chatMessage with print or you can add a text area
if you want to do the latter you can do something like this

Baasbase said:

function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " is inlove! *-*")
end
end
Hophipmice
« Citizen »
1381164660000
    • Hophipmice#0000
    • Profile
    • Last posts
    • Tribe
#9
  0
Baasbase said:
you can either replace tfm.exec.chatMessage with print or you can add a text area
if you want to do the latter you can do something like this

Just a note that print will only show for the person who runs the script.
Iamconz
« Citizen »
1381164660000
    • Iamconz#0000
    • Profile
    • Last posts
    • Tribe
#10
  0
I used the latter, and it worked! Thanks *-*

E: Sorry to be a pain, but is there any way of the message despawning after a few seconds? Or is it permanent?
Ordboka
« Citizen »
1381165260000
    • Ordboka#0000
    • Profile
    • Last posts
    • Tribe
#11
  2
Iamconz said:
I used the latter, and it worked! Thanks *-*

E: Sorry to be a pain, but is there any way of the message despawning after a few seconds? Or is it permanent?

Here you go

Ordboka said:
timer = 0
despawnTime = 5
function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " is inlove! *-*")
timer = 0
end
end
function eventLoop(curTime, timeR)
if timer == despawnTime * 2 then
ui.removeTextArea(0, NIL)
else
timer = timer + 1
end
end

Just change despawnTime to how many seconds you want before it is removed.
Iamconz
« Citizen »
1381165260000
    • Iamconz#0000
    • Profile
    • Last posts
    • Tribe
#12
  0
Ordboka said:
Here you go

Just change despawnTime to how many seconds you want before it is removed.

Thanks! You and Baas are both stars *-*
Minstens
« Censor »
1381165440000
    • Minstens#0000
    • Profile
    • Last posts
    • Tribe
#13
  0
Something to make that can be used only one command per round.
Tranna
« Citizen »
1381165680000
    • Tranna#0000
    • Profile
    • Last posts
    • Tribe
#14
  0
Change mine, Bonniecorgi, Cuddleofdeth, and Noooooobie's name go red!

All spelt correct.
Jsilv
« Citizen »
1381166040000
    • Jsilv#0000
    • Profile
    • Last posts
#15
  1
tfm.exec.setNameColor("Tranna", 0xFE0000)
tfm.exec.setNameColor("Bonniecorgi", 0xFE0000)
tfm.exec.setNameColor("Cuddleofdeth", 0xFE0000)
tfm.exec.setNameColor("Noooooobie", 0xFE0000)

edit; or that lol vv
Ordboka
« Citizen »
1381166040000
    • Ordboka#0000
    • Profile
    • Last posts
    • Tribe
#16
  1
Tranna said:
Change mine, Bonniecorgi, Cuddleofdeth, and Noooooobie's name go red!

All spelt correct.

This should do it. If I spelt anything wrong I'm sorry :P


Ordboka said:
eventChatCommand(n, m)
if m=="color" then
tfm.exec.setNameColor("Tranna", 0xFF0000)
tfm.exec.setNameColor("Bonniecorgi", 0xFF0000)
tfm.exec.setNameColor("Cuddleofdeth", 0xFF0000)
tfm.exec.setNameColor("Noooooobie", 0xFF0000)
end

Just write !color when the script is running and it should work

Edit: So slow :/
Tranna
« Citizen »
1381166160000
    • Tranna#0000
    • Profile
    • Last posts
    • Tribe
#17
  0
Thank you :3
Jordy
« Consul »
1381166280000
    • Jordy#0015
    • Profile
    • Last posts
    • Tribe
#18
  0
Tranna said:
Change mine, Bonniecorgi, Cuddleofdeth, and Noooooobie's name go red!

All spelt correct.

Instead of having a new line for each player you can also do it like this:

[quote=Lua::API]
cNames = {"Tranna", "Bonniecorgi", "Cuddleofdeth", "Noooooobie"}

for _,name in pairs(cNames) do
tfm.exec.setNameColor(name, 0xFE0000)
end
[/quote]
Ordboka
« Citizen »
1381166460000
    • Ordboka#0000
    • Profile
    • Last posts
    • Tribe
#19
  0
Jordynl said:
Instead of having a new line for each player you can also do it like this:

You are so smart ^_^
Shamousey
« Consul »
1381166940000
    • Shamousey#0095
    • Profile
    • Last posts
    • Tribe
#20
  2
Or to shorten that even more.

said:
for i,name in ipairs({"Tranna","Bonniecorgi","Cuddleofdeth","Noooooobie"}) do
tfm.exec.setNameColor(name, 0xFE0000)
end

 
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
1 / 160 › »
© Atelier801 2018

Staff Terms and Conditions of Use Privacy Policy Contact

Version 1.27