×

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
« ‹ 145 / 160 › »
Script Requests
Overjoy06
« Citoyen »
1530098520000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2881
  0
can you make the player's name (above your mouse in the game) be invisible?
Massi
« Consul »
1530105480000
    • Massi#0095
    • Profil
    • Derniers messages
    • Tribu
#2882
  0
Overjoy06 a dit :
can you make the player's name (above your mouse in the game) be invisible?

Impossible
Overjoy06
« Citoyen »
1530179640000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2883
  0
Can you make a script that when you click on the screen on the direction you clicked you will spawn a arrow straight but what if the arrow can kill you intantly? like when it hit you and also (can you make the ammo like 5? and let it never regenerate)
Overjoy06
« Citoyen »
1530268560000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2884
  0
how about you divided the people in the room into two teams, and then both teams will be seperated you know their spawns will be changed..
Overjoy06
« Citoyen »
1530342840000
    • Overjoy06#8554
    • Profil
    • Derniers messages
    • Tribu
#2885
  0
is it impossible? why wont anyone answer my questions, is my english too bad?
Bolodefchoco
« Sénateur »
1530410160000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2887
  1
Overjoy06 a dit :
Can you make a script that when you click on the screen on the direction you clicked you will spawn a arrow straight but what if the arrow can kill you intantly? like when it hit you and also (can you make the ammo like 5? and let it never regenerate)

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
eventNewPlayer = function(n)
system.bindMouse(n, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventMouse = function(n, x, y)
local px, py = tfm.get.room.playerList[n].x, tfm.get.room.playerList[n].y
local mx, my = (x - px), (y - py)

local angle = math.deg(math.atan2(my, mx))

local d = (mx^2 + my^2) ^ .5

tfm.exec.addShamanObject(35, px + math.cos(30 * angle), py + math.sin(15 * angle) * 100, angle, (10 / d) * mx, (10 / d) * my)
end

I'll look for a better solution later.

Change the speed 10 in the last line of the eventMouse function (in 10/d)

Use AIE maps to kill w hits


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
local blue, red = {}, {}
local inBlue = false
local blueRespawn = { x = 600 , y = 100 }
local redRespawn = { x = 200, y = 100 }

function eventNewPlayer(name)
inBlue = not inBlue
if inBlue then
blue[name] = true
else
red[name] = true
end
end

for n in next, tfm.get.room.playerList do
eventNewPlayer(n)
end

function eventNewGame()
for n in next, blue do
tfm.exec.movePlayer(n, blueRespawn.x, blueRespawn.y)
end

for n in next, red do
tfm.exec.movePlayer(n, redRespawn.x, redRespawn.y)
end
end

Code provided by Heniyengui

Dernière modification le 1530410760000
Cocodear
« Citoyen »
1530723480000
    • Cocodear#0000
    • Profil
    • Derniers messages
#2888
  0
......

Dernière modification le 1531003020000
Bolodefchoco
« Sénateur »
1530724020000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2889
  0
Cocodear a dit :
how do i activate the codes with a / or just say it in chat

Hi!

Go to your tribe house, type /lua and insert your code in the box. Press submit to run the code and check the chat #lua (that is opened automatically when you run a code) to look for errors or any messages, even the ones you send with the function print

Dernière modification le 1530726120000
Dagaker
« Censeur »
1530808920000
    • Dagaker#3257
    • Profil
    • Derniers messages
#2890
  0
Is there any posibility to make a script that will automaticly change the font of the chat?
Bolodefchoco
« Sénateur »
1530809700000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2891
  0
Dagaker a dit :
Is there any posibility to make a script that will automaticly change the font of the chat?

tfm.exec.chatMessage("<font size='size_here'>")

Won't work if you are not a module member
Overjoy06
« Citoyen »
1530862260000
    • Overjoy06#8554
    • Profil
    • Derniers messages
    • Tribu
#2892
  0
im not a map expert what is AIE maps?
Onkei
« Citoyen »
1530862680000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#2893
  0
Overjoy06 a dit :
im not a map expert what is AIE maps?

AIE maps are maps that use the aie="" XML tag like so;


Code Xml

1
2
3
4
5
6
7
8
<C>
<P aie="" />
<Z>
<S />
<D />
<O />
</Z>
</C>


These maps will make the mice die from high falls and strong collision with any object. If you want to make an AIE map, you can just copy the XML I gave you and load it onto the map editeur.

Dernière modification le 1530862800000
Overjoy06
« Citoyen »
1530862860000
    • Overjoy06#8554
    • Profil
    • Derniers messages
    • Tribu
#2894
  0
thanks, but the arrow shooting lua is like infinite.. can you make the ammo 5? then let the mices see how many ammo they have left also can you fix the angle?

Dernière modification le 1530864360000
Onkei
« Citoyen »
1530864600000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#2895
  0
Overjoy06 a dit :
thanks, but the arrow shooting lua is like infinite.. can you make the ammo 5? then let the mices see how many ammo they have left also can you fix the angle?

my attempt at your request;


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
53
54
55
56
57
58
local arrows = {}
local MAX_ARROWS = 5
local ARROW_FORCE = 24

local timer = 0
local TIMER_LOOPAT = 8

function showArrows(n)
ui.addTextArea(0, "<font size='20'>Arrows: " .. arrows[n], n, 10, 20, nil, nil, 0x000000, 0x2e2e2e, 0.6, true)
end

function eventNewPlayer(n)
arrows[n] = MAX_ARROWS

showArrows(n)
system.bindMouse(n, true)
end

function eventMouse(n, x, y)
local data = tfm.get.room.playerList[n]

if not data.isDead and arrows[n] > 0 then
local angle = math.atan2(y - data.y, x - data.x)

tfm.exec.addShamanObject(
35,
data.x + 50 * math.cos(angle),
data.y + 50 * math.sin(angle),
math.deg(angle),
math.cos(angle) * ARROW_FORCE,
math.sin(angle) * ARROW_FORCE
)

arrows[n] = arrows[n] - 1
showArrows(n)
end
end

table.foreach(tfm.get.room.playerList, eventNewPlayer)

-- If you don't want arrows to automatically respawn, remove the code below

function eventLoop(passed, left)
timer = timer + 0.5

if timer >= TIMER_LOOPAT then
timer = 0

for n in next, arrows do
local arrowCount = arrows[n]

if arrowCount < MAX_ARROWS then
arrows[n] = arrowCount + 1
showArrows(n)
end
end
end
end

Dernière modification le 1530864660000
Bolodefchoco
« Sénateur »
1530881820000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2896
  0
Overjoy06 a dit :
thanks, but the arrow shooting lua is like infinite.. can you make the ammo 5? then let the mices see how many ammo they have left also can you fix the angle?

https://atelier801.com/topic?f=6&t=487197
Ticktoxic
« Citoyen »
1531001220000
    • Ticktoxic#0930
    • Profil
    • Derniers messages
    • Tribu
#2897
  0
if i use the tutorial for ffa, and enable autosham, how do i make it so the shaman cant use ffa?
Bolodefchoco
« Sénateur »
1531012500000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2898
  0
Ticktoxic a dit :
if i use the tutorial for ffa, and enable autosham, how do i make it so the shaman cant use ffa?

Maybe you want to kill him? Put this code inside the eventNewGame
Code Lua

1
2
3
4
5
6
for k, v in next, tfm.get.room.playerList do
if v.isShaman then
tfm.exec.killPlayer(k)
return
end
end
De_ja_vu
« Citoyen »
1531051740000
    • De_ja_vu#0000
    • Profil
    • Derniers messages
    • Tribu
#2899
  0
Does anyone have a script of or something similar to this
https://atelier801.com/topic?f=6&t=646696
Overjoy06
« Citoyen »
1531484700000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#2900
  0
how do you make the blue team fly (they are vampires and also why cant i make the vampire fly? the recent vamped mices wont fly)

--sorry for bad grammar :(
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 145 / 160 › »
© Atelier801 2018

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

Version 1.27