Lua Snippets |
![]() ![]() « Citoyen » 1381274460000
| 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 » 1381274460000
| 0 | ||
Hakureimouse a dit : oh ok thanks I get confused between those two threads sorry vwv |
![]() ![]() « Citoyen » 1381275360000
| 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 » 1381275480000
| 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 » 1381282380000
| 0 | ||
Lua a dit : doesnt work |
![]() ![]() « Consul » 1381282800000
| 0 | ||
Xanmeow a dit : It does work, you have to use the rest of the code he posted too though. |
![]() ![]() « Citoyen » 1381283580000
| 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 » 1381342680000
| 0 | ||
Amazing lua codes, well done jack~ |
![]() ![]() « Consul » 1381372920000
| 0 | ||
Here's a simple team maker. a dit : |
![]() ![]() « Citoyen » 1381381740000
| 0 | ||
It's posible to spawn particles? How? |
![]() ![]() « Citoyen » 1381433820000
| 0 | ||
Funkieee a dit : Not possible yet. |
![]() ![]() « Citoyen » 1381444440000
| 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 » 1381445220000
| 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 |
![]() ![]() « Citoyen » 1381446480000
| 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 » 1381581180000
| 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 » 1381586280000
| 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 » 1381595880000
| 0 | ||
a dit : |