×

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
« ‹ 16 / 160 › »
Script Requests
Fuzzykeldeo
« Citoyen »
1382746320000
    • Fuzzykeldeo#0000
    • Profil
    • Derniers messages
#301
  0
Can anyone make a script for raining random stuff? Like not JUST shaman items, but items for events and such, such as darts, snowballs, ect?


Edit; #pageget :P
Shamousey
« Consul »
1382748120000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#302
  0
Fuzzykeldeo a dit :
Can anyone make a script for raining random stuff? Like not JUST shaman items, but items for events and such, such as darts, snowballs, ect?

Things like the valentines arrow and snowballs are actually classed as shaman objects and you can spawn them with tfm.exec.addShamanObject(), just find their IDs from the ID list.
Safwanrockz
« Censeur »
1382748120000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#303
  0
Xanmeow a dit :
how about one where you can change the speed of a mouse by doing !speed speedhere if not possile then just one where a mouse speed will be that and stay that...

this is what I heard works but... idk

vx,vy (velocity)

Edit: 300th post :D

That's the best I could do :x
Speed a dit :
function eventNewPlayer(name)
for i,keys in pairs({37,39}) do
tfm.exec.bindKeyboard(name,keys,true,true)
end
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventChatCommand(name,cmd)
local arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(arg, argument);
end
if arg[1]=="speed" then
speedon=true
vx=arg[2]
vy=arg[3]
end
end

function eventKeyboard(name,key,down,x,y)
if key==37 and speedon then
tfm.exec.movePlayer(name,0,0,true,-vx,vy,false)
elseif key==39 and speedon then
tfm.exec.movePlayer(name,0,0,true,vx,vy,false)
end
end

 
Mousechris
« Censeur »
1382758620000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#304
  0
i'm confused on how to add a 2nd key here I got key 87 working (Z) but I still need to get key 88 (X) on it to make a 2nd transformation for sham item 45
Ordboka
« Citoyen »
1382765040000
    • Ordboka#0000
    • Profil
    • Derniers messages
    • Tribu
#305
  0
Mousechris a dit :
i'm confused on how to add a 2nd key here I got key 87 working (Z) but I still need to get key 88 (X) on it to make a 2nd transformation for sham item 45

You have to add another

tfm.exec.bindKeyboard(name,87,true,true).

Also inside you eventkeyboard add elseif key==*KeyCodeOfYourChoice*
Mousechris
« Censeur »
1382765280000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#306
  0
Nvm everything is fixed
Ordboka
« Citoyen »
1382766720000
    • Ordboka#0000
    • Profil
    • Derniers messages
    • Tribu
#307
  0
Mousechris a dit :
tfm.exec.disableAutoNewGame(true)
maps={4414828}
function eventLoop(time,remaining)
if remaining<=0 then tfm.exec.newGame(maps[math.random(#maps)]) end
end

tfm.exec.disableAutoTimeLeft(true)
players={}
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(name,87,true,true)
tfm.exec.bindKeyboard(name,45,true,true)
players[name]={}
end
function eventKeyboard(name,key,down,x,y)
if key==87 then
if tfm.get.room.playerList[name].isDead then
if players[name].x and players[name].y and players[name].id then
tfm.exec.respawnPlayer(name)
tfm.exec.movePlayer(name,tfm.get.room.objectList[players[name].id].x,tfm.get.room.objectList[players[name].id].y)
tfm.exec.removeObject(players[name].id)
end
end
else
tfm.exec.killPlayer(name)
local id=tfm.exec.addShamanObject(54,x,y)
players[name]={id=id,x=x,y=y}
end
end

Try this. Pressing insert should now kill you. Haven't tested, so tell me if something doesn't work.
Issey
« Citoyen »
1382767200000
    • Issey#0000
    • Profil
    • Derniers messages
#308
  0
Ordboka a dit :
Try this. Pressing insert should now kill you. Haven't tested, so tell me if something doesn't work.

nvm i already helped him
Meltedfruit
« Citoyen »
1382773320000
    • Meltedfruit#0000
    • Profil
    • Derniers messages
    • Tribu
#309
  0
Countdown script for spawning, and if spawned before the countdown kill that shaman!
Linhta
« Citoyen »
1382790000000
    • Linhta#0000
    • Profil
    • Derniers messages
    • Tribu
#310
  0
Soulmates share firsts (sorry if this doesn't qualify)
Jordy
« Consul »
1382791920000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#311
  0
Linhta a dit :
Soulmates share firsts (sorry if this doesn't qualify)

Lua isn't able to touch the stats in-game.
Ronan
« Citoyen »
1382795220000
    • Ronan#3434
    • Profil
    • Derniers messages
#312
  0
FFA script ?
Jordy
« Consul »
1382800740000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#313
  0
Ronanresende a dit :
FFA script ?

Take a look here: Topic-457951
Enginfener
« Citoyen »
1382802300000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#314
  0
Shamousey a dit :
What do you mean by this?

The status board
Nicknamepll
« Citoyen »
1382804700000
    • Nicknamepll#0000
    • Profil
    • Derniers messages
    • Tribu
#315
  0
How to create Double jump?
Hophipmice
« Citoyen »
1382805120000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#316
  0
Nicknamepll a dit :
How to create Double jump?

Safwanrocks a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyboard(name,key,down,x,y)
if key==38 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end

Text.
Shamousey
« Consul »
1382805240000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#317
  0
Hophipmice a dit :
Text.

That's infinite jumping, not a double jump. As I've said before, it's almost impossible to make a working double jump.
Issey
« Citoyen »
1382805960000
    • Issey#0000
    • Profil
    • Derniers messages
#318
  0
Nicknamepll a dit :
How to create Double jump?

a dit :
players={}

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
players[name]={i=1,c=0}
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventLoop(ct,tr)
for name in pairs(tfm.get.room.playerList) do
if(players[name].i==2) then
players[name].c=players[name].c+1
end
if(players[name].c==4) then
players[name].i=1
end
end
end

function eventKeyboard(name,key,down,x,y)
if key==38 then
if(players[name].i==1) then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
players[name].i=2
players[name].c=0
end
end
end

it's not exactly a double jump. It lets you just for a couple of seconds then disables jumping in air.
Papero
« Citoyen »
1382805960000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#319
  0
Shamousey a dit :
That's infinite jumping, not a double jump. As I've said before, it's almost impossible to make a working double jump.

The airjump thingy in derby is quite okay imho as a double jump
Shamousey
« Consul »
1382806380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#320
  0
Paperonaruto a dit :
The airjump thingy in derby is quite okay imho as a double jump

That's only really because they're limited as to how many you can use though, right?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 16 / 160 › »
© Atelier801 2018

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

Version 1.27