| |
| « Citoyen » 1509890760000
| 0 | ||
| I want to make a wedding map and i woud like an script to make this image appear after they kiss for a few seconds (http://transformice.com/images/x_temps/x_ieh/J6_VCi8tPeA.png ) or for XML ( x_temps/x_ieh/J6_VCi8tPeA.png ) i already know how to add an image to the map i want to but i don't know how to make it appear only when i want. |
| « Citoyen » 1509985080000
| 0 | ||
| How to make a map of XML code appear after the "map" command? for example .... CODE <C><P /><Z><S><S L="32" H="10" X="317" Y="346" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="817" H="69" X="421" Y="385" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="264" H="41" X="345" Y="233" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="124" H="10" X="146" Y="107" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="115" H="10" X="306" Y="90" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="103" H="31" X="553" Y="127" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="10" X="648" Y="160" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="56" X="677" Y="220" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="32" X="686" Y="285" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C> And how to add your picture to the map? Denyelxxx a dit : Are you in a group of luers? If not, you can not add a photo to the map using the LUA code. Dernière modification le 1510416000000 |
| 0 | ||
| I hope this is what you mean. 1 tfm.exec.newGame('<C><P /><Z><S><S L="32" H="10" X="317" Y="346" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="817" H="69" X="421" Y="385" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="264" H="41" X="345" Y="233" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="124" H="10" X="146" Y="107" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="115" H="10" X="306" Y="90" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="103" H="31" X="553" Y="127" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="10" X="648" Y="160" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="56" X="677" Y="220" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="32" X="686" Y="285" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>');You can only add pictures that exists in the Atelier801 Image Database, but it works only in the map editor. That means it's not possible to add image by LUA script. To see a example of using them in the map editor see here. Dernière modification le 1510498980000 |
| « Citoyen » 1511615700000
| 0 | ||
| Dernière modification le 1511615760000 |
| « Consul » 1511965800000
| 0 | ||
| Please show how to make playername into variable for cmd function to do like this "!ban [#playername]" And make it compatible with this command system: Code Lua 1 2 3 function eventChatCommand(name,cmd,n) |
| « Consul » 1511971980000
| 0 | ||
Marciskris a dit : I hope it's working (I didn't test it yet): Code 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 28 29 30 31 32 33 34 35 36 37 38 39 local ban = {} -- creates new table Dernière modification le 1512026940000 |
| « Consul » 1512045660000
| 0 | ||
Sebafrancuz a dit : Thanks, can you add admin system too, so it can only be used if player's name is in admin = {}? |
| « Consul » 1512055560000
| 0 | ||
Marciskris a dit : I hope it's working (I didn't test it yet): Code 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 local admin = {"Marciskris", "Nick"} -- creates new table where admins are added |
| « Consul » 1512135600000
| 0 | ||
| who has the script that makes up objects, and you can set up / down |
| « Citoyen » 1513065300000
| 0 | ||
| I need a script that shows a list where it appears the records that each player (timeElapsedSinceRespawn) and the one that achieves the best time that says: "BEST TIME!" Please |
| « Citoyen » 1514057400000
| 0 | ||
| How to make transforming. I mean: !Monster then you become monster. |
| « Sénateur » 1514066220000
| 0 | ||
Xymessiyx a dit : Code Lua 1 2 3 4 5 eventChatCommand = function(name, command) |
| « Citoyen » 1514814240000
| 0 | ||
Bolodefchoco a dit : Thanks! But how to make you become picture when you transform? |
| 0 | ||
Xymessiyx a dit : Assuming you're loading your scripts in the tribe house, you can't use pictures in the tribe house. |
| « Consul » 1514814420000
| 0 | ||
| ^ already answered |
| « Citoyen » 1514973180000
| 0 | ||
| function main() for playerName in pairs(tfm.get.room.playerList) do eventNewPlayer(playerName) end end function eventNewPlayer(playerName) system.bindMouse (playerName, true); end function eventMouse (playerName, mx, my) local size = 5; local x_position = mx; local y_position = my; for t=0,2*math.pi,0.1 do x=(16*math.sin(t)^3)*size + x_position y=(13*math.cos(t)-5*math.cos(2*t)-2*math.cos(3*t)-math.cos(4*t))*size y=-y + y_position tfm.exec.addShamanObject(0,x,y); end end main (); Can you make it so i can only spawn hearts not all mice in the room? |
| « Sénateur » 1514978940000
| 0 | ||
Denyelxxx a dit : 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 player = "Denyelxxx" Make sure to use the tag [code=Lua] Code here [/code] next time xD |
| « Citoyen » 1515019140000
| 0 | ||
| Ok, thx |
| 4 | ||
| what is this topic? |
| « Sénateur » 1515612780000
| 0 | ||
Pillpelet a dit : You can ask for lua scripts to use on Transformice by typing /lua |