×

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
1 / 160 › »
Script Requests
Shamousey
« Consul »
1381163760000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#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
« Citoyen »
1381164000000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Making Bubbles float around in my tribehouse!
Iamconz
« Citoyen »
1381164120000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  1
When someone makes the kissing emote, make the chat say
"(whoever the playername is) is inlove! *-*"
Hoopatroopa
« Citoyen »
1381164120000
    • Hoopatroopa#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
A falling script.
Baasbase
« Citoyen »
1381164120000
    • Baasbase#0095
    • Profil
    • Derniers messages
#5
  0
Iamconz a dit :
When someone makes the kissing emote, make the chat say
"(whoever the playername is) is inlove! *-*"

Baasbase a dit :

function eventEmotePlayed(player, emote)
if emote == 3 then
tfm.exec.chatMessage(player .. " is inlove! *-*")
end
end
Iamconz
« Citoyen »
1381164360000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Baasbase a dit :

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

o -V
Papero
« Citoyen »
1381164360000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Baasbase a dit :

wont work in tribehouses :C
Baasbase
« Citoyen »
1381164540000
    • Baasbase#0095
    • Profil
    • Derniers messages
#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 a dit :

function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " is inlove! *-*")
end
end
Hophipmice
« Citoyen »
1381164660000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Baasbase a dit :
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
« Citoyen »
1381164660000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#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
« Citoyen »
1381165260000
    • Ordboka#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  2
Iamconz a dit :
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 a dit :
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
« Citoyen »
1381165260000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Ordboka a dit :
Here you go

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

Thanks! You and Baas are both stars *-*
Minstens
« Censeur »
1381165440000
    • Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Something to make that can be used only one command per round.
Tranna
« Citoyen »
1381165680000
    • Tranna#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Change mine, Bonniecorgi, Cuddleofdeth, and Noooooobie's name go red!

All spelt correct.
Jsilv
« Citoyen »
1381166040000
    • Jsilv#0000
    • Profil
    • Derniers messages
#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
« Citoyen »
1381166040000
    • Ordboka#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  1
Tranna a dit :
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 a dit :
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
« Citoyen »
1381166160000
    • Tranna#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
Thank you :3
Jordy
« Consul »
1381166280000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#18
  0
Tranna a dit :
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
« Citoyen »
1381166460000
    • Ordboka#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Jordynl a dit :
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
    • Profil
    • Derniers messages
    • Tribu
#20
  2
Or to shorten that even more.

a dit :
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

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

Version 1.27