×

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
« ‹ 152 / 160 › »
Script Requests
Overjoy06
« Citoyen »
1543552140000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3021
  0
HoW dO yOu MaKe A tImEr? *i suck at lua :(*
Onkei
« Citoyen »
1543577040000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#3022
  0
Overjoy06 a dit :
HoW dO yOu MaKe A tImEr? *i suck at lua :(*


Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
local timer = 0
local EVENT_AT_TIME = 10

function eventLoop()

if timer == EVENT_AT_TIME then
timer = 0

-- Do something every 10s
end

-- Adding by 0.5 every loop (every loop occurs every half a second)
timer = timer + 0.5
end
Bolodefchoco
« Sénateur »
1543578600000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3023
  0
Overjoy06 a dit :
HoW dO yOu MaKe A tImEr? *i suck at lua :(*

https://atelier801.com/topic?f=6&t=876859
Overjoy06
« Citoyen »
1543655760000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3024
  0
how can i set a timer so that a new game wont load after 3 seconds
Overjoy06
« Citoyen »
1545461220000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3025
  0
Please i really need it god damn it
Clofofa
« Citoyen »
1545897120000
    • Clofofa#0000
    • Profil
    • Derniers messages
    • Tribu
#3026
  0
Can someone make a simple script to when a member join the tribe house send a welcome message?
Camila_cabello
« Citoyen »
1545983400000
    • Camila_cabello#0000
    • Profil
    • Derniers messages
    • Tribu
#3027
  0
You know when you click the campfire it does the marshmallow animation? Is it possible to make something similar where if you click/touch a ground for example to become a vampire/sham?
Or is it possible to even spawn a campfire that lasts forever?
Imleve
« Citoyen »
1546014120000
    • Imleve#9292
    • Profil
    • Derniers messages
    • Tribu
#3028
  0
can you help me? Lua
Imleve
« Citoyen »
1546014360000
    • Imleve#9292
    • Profil
    • Derniers messages
    • Tribu
#3029
  0
give me a snowball script for example help command vs. do you have code similar to this??? pls help
Bolodefchoco
« Sénateur »
1546019940000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3030
  1
Overjoy06 a dit :
how can i set a timer so that a new game wont load after 3 seconds

Code Lua

1
2
3
4
5
6
local canLoadNewMap = false
eventLoop = function(currentTime)
if not canLoadNewMap and currentTime > 3000 then
canLoadNewMap = true
end
end


Clofofa a dit :
Can someone make a simple script to when a member join the tribe house send a welcome message?

Code Lua

1
2
3
eventNewPlayer = function(player)
ui.addTextArea(0, "Welcome" .. player, player, 5, 25, nil, nil, 1, 1, 1, true)
end


Camila_cabello a dit :
You know when you click the campfire it does the marshmallow animation? Is it possible to make something similar where if you click/touch a ground for example to become a vampire/sham?
Or is it possible to even spawn a campfire that lasts forever?

For the campfire the lasts forever, yes, but it has to be made with images.
For the "click and transform", yeah it's also possible, but too heavy: get xml grounds, take size and angle in consideration, take the Z index in consideration. It's just meh to make, better to make it using textareas!
Hypermousem
« Censeur »
1546263780000
    • Hypermousem#0000
    • Profil
    • Derniers messages
    • Tribu
#3031
  0
I can't figure out how to use tfm.exec.removeObject. Could someone give me a script that instantly removes a shaman object as soon as a shaman is done summoning it (eventSummoningEnd) unless it's a cannonball (object id 17)? And, now that I'm asking, could someone also do a command that deletes all shaman objects in the room (like #utility's !clear command)?
Syrius
« Consul »
1546268940000
    • Syrius#8114
    • Profil
    • Derniers messages
    • Tribu
#3032
  0
Hypermousem a dit :
I can't figure out how to use tfm.exec.removeObject. Could someone give me a script that instantly removes a shaman object as soon as a shaman is done summoning it (eventSummoningEnd) unless it's a cannonball (object id 17)? And, now that I'm asking, could someone also do a command that deletes all shaman objects in the room (like #utility's !clear command)?

I found code for clear:

Code Lua

1
2
3
4
5
6
7
8
9
function clear()
local objects={}
for k,v in pairs(tfm.get.room.objectList) do
table.insert(objects,k)
end
for i,object in ipairs(objects) do
tfm.exec.removeObject(object)
end
end

Call the function to clear.
Coraborra
« Citoyen »
1548287820000
    • Coraborra#0000
    • Profil
    • Derniers messages
    • Tribu
#3033
  0
This project is quite a handful but I don't think it's been done before. I'd like a shimeji for transformice tribe houses. Basically a little pet that climbs on the edges of the screen and does whatever it wants unless you command it to do something else (sort of by using sprites?). I can make the frames of the character itself but can't figure out how to give it a walk and climb cycle.


If that seems complicated just do code for something that walks in any way and I'll work with it.

Thanks!
Bolodefchoco
« Sénateur »
1548288180000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3034
  0
^ Hey. The problem is that you can't use images. The API won't let you unless you're part of the Module Team :/

Could you draw a little sketch of the pet movement? Does it move randomly around the map or just in the edges? etc

If you draw it, and if you give me the sprites, I can help you ^_^
Coraborra
« Citoyen »
1548288600000
    • Coraborra#0000
    • Profil
    • Derniers messages
    • Tribu
#3035
  0
Bolodefchoco a dit :
^ Hey. The problem is that you can't use images. The API won't let you unless you're part of the Module Team :/

Could you draw a little sketch of the pet movement? Does it move randomly around the map or just in the edges? etc

If you draw it, and if you give me the sprites, I can help you ^_^

Yeah actually I was thinking I'd use transformice objects to draw it but if you could help that'd be awesome

and yeah it moves randomly

here's an example of some sprites from a super basic shimeji (I did not make this one)

https://imgur.com/a/U9DxEVM

this one has walking, falling, climbing, and multiplying animations
Bolodefchoco
« Sénateur »
1548290760000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3036
  0
Haha, he is cute!

Should it detect the ground or act like pacman? :P
Coraborra
« Citoyen »
1548291660000
    • Coraborra#0000
    • Profil
    • Derniers messages
    • Tribu
#3037
  0
Bolodefchoco a dit :
Haha, he is cute!

Should it detect the ground or act like pacman? :P

detect the ground
Bolodefchoco
« Sénateur »
1548291720000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#3038
  0
Oof. That would be a pain to make.

I believe the best you could reach without runtime issues is something like the !pet command in #shamousey rooms.
Do you know them?
Coraborra
« Citoyen »
1548296820000
    • Coraborra#0000
    • Profil
    • Derniers messages
    • Tribu
#3039
  1
Bolodefchoco a dit :
Oof. That would be a pain to make.

I believe the best you could reach without runtime issues is something like the !pet command in #shamousey rooms.
Do you know them?

Yeah I'll see if I can tweak anything
Thanks for the help!
Overjoy06
« Citoyen »
1549685880000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#3040
  0
if t==60 then
i dont get how that code works. I've tried to test it but it doesnt work like it was supposed to be in my head
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 152 / 160 › »
© Atelier801 2018

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

Version 1.27