Ce site utilise les cookies pour améliorer votre expérience utilisateur.Je comprendsPolitique de Confidentialité
Lua Snippets |
![]() ![]() « Citoyen » 08/10/2013 23:21
| 0 | ||
Bengalstar a dit : I think this should go in the Script Requests thread: Topic-462959 but anyway: At the start of the script: Lua a dit : Now, let's say you want to show a Popup at the start of a new round, just like you said: Lua a dit : . |
![]() ![]() « Citoyen » 08/10/2013 23:21
| 0 | ||
Hakureimouse a dit : oh ok thanks I get confused between those two threads sorry vwv |
![]() ![]() « Citoyen » 08/10/2013 23:36
| 0 | ||
Bengalstar a dit : It's ok :x == https://paste.moepl.eu/view/e86b0387 I made two simple functions to create scrolling texts. It's quite easy to use, just create a new scrolling text object with scrollingText.new(String text, Integer lenght) where lenght is the ammount of characters you want to show on screen, and save it to a variable. Then each time you want to refresh, or 'move' the text, just call scrollingText.next (table scrollingText), where scrollingText is the variable with the object you just created. Example: Lua a dit : I hope you guys find this useful somehow :) |
![]() ![]() « Citoyen » 08/10/2013 23:38
| 0 | ||
function eventchatCommand(name) if command=="tutorial then ui.addTextArea(0, player.. " has requested a tutorial! Grab onto a balloon and press the sit emotion to spawn runes. Type in !help for more information.") end end -- [•] Init Error : [string "transformice.lua"]:18: unfinished string ?? -- e: forgot the " at the end of tutorial nvm |
![]() ![]() « Citoyen » 09/10/2013 01:33
| 0 | ||
Lua a dit : doesnt work |
![]() ![]() « Consul » 09/10/2013 01:40
| 0 | ||
Xanmeow a dit : It does work, you have to use the rest of the code he posted too though. |
![]() ![]() « Citoyen » 09/10/2013 01:53
| 0 | ||
Shamousey a dit : can any of you post the full code in pastebin or something? |
0 | ||
Wizardsofdra a dit : https://paste.moepl.eu/view/e86b0387? |
![]() ![]() « Censeur » 09/10/2013 18:18
| 0 | ||
Amazing lua codes, well done jack~ |
![]() ![]() « Consul » 10/10/2013 02:42
| 0 | ||
Here's a simple team maker. a dit : |
![]() ![]() « Citoyen » 10/10/2013 05:09
| 0 | ||
It's posible to spawn particles? How? |
0 | ||
Funkieee a dit : Not possible yet. |
![]() ![]() « Citoyen » 10/10/2013 22:34
| 0 | ||
umm I need help with this function eventKeyboard(playerName, 48, false, 0, 0) if i==48 then tfm.exec.addShamanObject(40, tfm.get.room.playerList[playerName].x, tfm.get.room.playerList[playerName].y, 0, 0, 0, true) end end -- something is wrong ;; [•] Init Error : [string "transformice.lua"]:108: or '...' expected also line 108 is the start of the function |
![]() ![]() « Citoyen » 10/10/2013 22:47
| 0 | ||
I'm trying to get the sun fur on people in the room with the tfm.get.room.playerList[name].look code. Somehow I can't get it to work x.x |
0 | ||
Unimeowse a dit : You cant change peoples outfits and you never will be able to according to tig. Bengalstar a dit : You didnt define what i was, you could do a dit : |
![]() ![]() « Citoyen » 12/10/2013 12:33
| 0 | ||
I thought I'd put this here if anyone wants to use it or not. • You can change the setUiMapName color using your own colours instead of ''<N>'' You can make it bolder change the size of it and even clear the whole map bar and just leave the mapName. • tfm.exec.setUIMapName("<font color='#COLOR'><b>TEXT</b></font>\n") <font color='#COLOR'></font> - Is used to add a color of your choice. <b></b> Is making the text bold \n Creates a new line so it would clear anything that comes fter the mapname. There are others like size and italics. Just use HTML tags. When using \n the other bar is viable if you hgihlight the map name and drag across. |
![]() ![]() « Consul » 12/10/2013 13:58
| 0 | ||
Alternatively to what Beachking said, you can just print a < character in the bar and everything after it won't display. Useful if you want to make your own entire top bar. |
![]() ![]() « Consul » 12/10/2013 16:38
| 0 | ||
a dit : |