Script Requests |
Aen_elle « Citoyen » 1582454460000
| 0 | ||
Bolodefchoco a dit : |
Koelman1 « Citoyen » 1582463640000
| 0 | ||
Hi! I write because I need code to reduce / increase player size. I used to use it, but I lost it somewhere / I forgot to save. It is best to choose a value from 0.1x to 5x. Thank you in advance <3 |
Bolodefchoco « Sénateur » 1582467660000
| 1 | ||
Koelman1 a dit : tfm.exec.changePlayerSize(playerName, size) Aen_elle a dit : I see... You can do something like this: Code Lua 1 2 3 4 5 6 7 eventLoop = function() -- triggered twice per second |
Brandondito « Citoyen » 1583705880000
| 0 | ||
hello, I need that by pressing space and if a mouse is close it kills it Dernière modification le 1583705940000 |
0 | ||
Brandondito 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 local killer = "Brandondito#0000" |
Brandondito « Citoyen » 1583873580000
| 0 | ||
Thank you very much it's perfect Dernière modification le 1583873640000 |
Brandondito « Citoyen » 1583884560000
| 0 | ||
If it's not too much to ask, I could restrict the time to kill again for 10 seconds, thanks in advance |
0 | ||
Brandondito 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 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 50 51 52 local killer = "Brandondito#0000" |
Brandondito « Citoyen » 1583934300000
| 0 | ||
Thank you so much for everything :) |
Brandondito « Citoyen » 1583935680000
| 0 | ||
it doesn't give any error but it doesn't work |
0 | ||
Brandondito a dit : Wops, made a typo, this should work now. 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 50 51 52 local killer = "Brandondito#0000" |
Brandondito « Citoyen » 1583970540000
| 0 | ||
thank you very much it will be very useful |
0 | ||
Henlo, i want a scripte where you can shot arrows like in fortmice QwQ |
Brandondito « Citoyen » 1584670860000
| 0 | ||
Mouny a dit : https://atelier801.com/topic?f=6&t=487197 it is almost identical to the module Dernière modification le 1584670920000 |
Brandondito « Citoyen » 1584826080000
| 0 | ||
hello, i need a voting script that -all mice can vote only once -and that at the end of the time in the room kill the mouse with more votes Thanks in advance |
Liberrate « Citoyen » 1585126140000
| 0 | ||
Hello, is there any way to make part of map appearing for only one player, when he enters its place? I mean something like in village map, when we enter house we can see its interior, but only we. I think lua should modify xml code, but i cant understand how to make it, is it possible to dynamically modify map xml? And only for one player? (Sorry for my English) |
Hypermousem « Censeur » 1585153080000
| 0 | ||
Liberrate a dit : There is no way to dynamically edit XML directly using Lua without the need to reload the map, there are only ways to add/move/remove grounds and shaman objects (and those changes apply to every player). As for the village map, it uses the APS tag, which allows to create images that disappear when a mouse enters a certain rectangular area. I don't fully understand which value in the tag corresponds to what, but here's an example I created using Miceditor (which has that function useable through an interface): Example: the statue disappears when you enter the area highlighted by the rectangle ground If you want a better explanation of the tag, you're more likely to get an answer in the Map Editor Q&A thread. Sadly, I think the tag can only be used when loading the map through Lua (from XML).Code Lua 1 2 tfm.exec.disableAutoNewGame(true) Dernière modification le 1585153740000 |
Liberrate « Citoyen » 1585161480000
| 0 | ||
Thank you so mach Hypermousem! I understand your code, I now can create images and grounds that hide these :) So much thanks! I have another question, can I hide ground instead of picture? I know that I can make ground when I touch it it disappears, but it works for all people, not only for me. Is there any way for that? |
Hypermousem « Censeur » 1585163460000
| 0 | ||
Liberrate a dit : Sadly not, grounds being altered can only be applied to all players. If it's a matter of passing through a solid ground, you might want to try teleporting (tfm.exec.movePlayer) as an alternative. But I'm afraid what you described sadly isn't possible. |
Liberrate « Citoyen » 1585170420000
| 0 | ||
Thanks anyway, Hypermousem. You helped me a lot! Edit: I have another question :D Is it possible to make object which will be "clickable" on map?. I mean that object will "shine" when we hover mouse over it, and after clicking lua perform some actions? I know that I can check specific coordinates for clicking, but is there way to inform user that something is clickable, by visualizing it? Dernière modification le 1585246140000 |