×

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
« ‹ 30 / 160 › »
Script Requests
Enginfener
« Citoyen »
1386342000000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#581
  0
[System] Arber Changed map to: @4556140!

?

this is how it is done
Safwanrockz
« Censeur »
1386343920000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#582
  0
Enginfener a dit :
[System] Arber Changed map to: @4556140!

?

this is how it is done

What do you mean by this?
Enginfener
« Citoyen »
1386345420000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#583
  0
Safwanrockz a dit :
What do you mean by this?

Jordyl I asked him was using, I think tfm.exec.spawnmouser
Safwanrockz
« Censeur »
1386346080000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#584
  0
Enginfener a dit :
Jordyl I asked him was using, I think tfm.exec.spawnmouser

There is no such function. I think you meant tfm.exec.respawnPlayer.
Sedaviv
1386355800000
    • Sedaviv#0000
    • Profil
    • Derniers messages
    • Tribu
#585
[Modéré par Ramenfrog, raison : Spam.]
Jordy
« Consul »
1386368880000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#586
  0
Enginfener a dit :
[System] Arber Changed map to: @4556140!

?

this is how it is done

I loaded an old script from my archive there.

a dit :

function eventChatCommand(name, line)
local args = split(line)
local c = table.remove(args,1)
print("<V>[<ROSE>Debug<V>/<ROSE>Command<V>]<BL> "..name..":<ROSE> !"..line)
if c == "np" and args[1] then
tfm.exec.chatMessage("<V>[<ROSE>System<V>]<BL> <ROSE> "..name.." <BL>Changed map to:<ROSE> " ..args[1].. "<BL>!")
tfm.exec.newGame(args[1])
map = args[1]
end
end

Enjoy.
Zyx
« Censeur »
1386370800000
    • Zyx#8690
    • Profil
    • Derniers messages
#587
  0
A script where something in the chat counts the number of votes for a topic.
Safwanrockz
« Censeur »
1386371940000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#588
  0
Swirlfire a dit :
A script where something in the chat counts the number of votes for a topic.

I don't get what you mean. Just something like room players have two choices to vote for for a specific time and then just show the number of votes?
Irishcow
« Citoyen »
1386377160000
    • Irishcow#0095
    • Profil
    • Derniers messages
    • Tribu
#589
  0
*posted in the wrong thread*

Anybody have a code for instant cannons? I noticed Arber created one but that only travels in one direction no matter where you spawn it (i.e. it only travels left). Could you possibly create a code which allow cannons to travel in the direction that they are pointing?
Safwanrockz
« Censeur »
1386377580000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#590
  0
Irishcow a dit :
*posted in the wrong thread*

Anybody have a code for instant cannons? I noticed Arber created one but that only travels in one direction no matter where you spawn it (i.e. it only travels left). Could you possibly create a code which allow cannons to travel in the direction that they are pointing?

Try this.
a dit :

for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name,true)
end

function eventMouse(name,x,y)
if x>tfm.get.room.playerList[name].x then
tfm.exec.addShamanObject(19,x,y)
elseif x<tfm.get.room.playerList[name].x then
tfm.exec.addShamanObject(20,x,y)
end
end

 
Shamousey
« Consul »
1386377580000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#591
  0
Irishcow a dit :
*posted in the wrong thread*

Anybody have a code for instant cannons? I noticed Arber created one but that only travels in one direction no matter where you spawn it (i.e. it only travels left). Could you possibly create a code which allow cannons to travel in the direction that they are pointing?

From my FFA Tutorial, which has example code in it that you can look at as you get to it. Topic-457951

a dit :
The playerList table has a variable called "isFacingRight". This boolean is true if the player is facing right at the time, and false if they're not. Using this can determine the direction the user is facing and which direction to shoot cannons.

When spawning the cannons, ID 19 will create a right-facing one while 20 will create a left-facing one.

Edit: v in that case, go with what you said ;)
Safwanrockz
« Censeur »
1386377700000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#592
  0
@Shamo, I think Irish meant spawning the cannon with a mouse click.
Irishcow
« Citoyen »
1386377940000
    • Irishcow#0095
    • Profil
    • Derniers messages
    • Tribu
#593
  0
Thanks guys for the quick answers!
Woebegone
« Citoyen »
1386385620000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#594
  0
Teleporting yourself with a mouse click?
Zyx
« Censeur »
1386386640000
    • Zyx#8690
    • Profil
    • Derniers messages
#595
  0
Safwanrockz a dit :
I don't get what you mean. Just something like room players have two choices to vote for for a specific time and then just show the number of votes?

Mhm. During it.
Bushmeister
« Consul »
1386401760000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#596
  0
Juliantwofan a dit :
Teleporting yourself with a mouse click?

code a dit :
userList = {}
tfm.exec.newGame(0)
for pName, player in pairs(tfm.get.room.playerList) do
system.bindMouse(pName, true)
end
function eventMouse(playerName, xPosition, yPosition)
tfm.exec.movePlayer(playerName, xPosition, yPosition, false, 0, 0, false)
end
function eventPlayerDied(playerName)
tfm.exec.respawnPlayer(playerName)
end

Pmcarpan
« Citoyen »
1386406620000
    • Pmcarpan#0000
    • Profil
    • Derniers messages
    • Tribu
#597
  0
Swirlfire a dit :
...

code a dit :


--set time limit in seconds
timeLim=30

displayed=false
answerYes=0
answerNo=0
--the question to be asked
ui.addPopup(0,1,"Yes/No",nil)

function eventPopupAnswer(id,pName,answer)
if timeLim>=0 then
if answer=="yes" and id==0 then
answerYes=answerYes+1
elseif answer=="no" and id==0 then
answerNo=answerNo+1
end

ui.addPopup(1,0,"Number of mice who:\nAnswered Yes= \t"..answerYes..
"\nAnswered No= \t"..answerNo,nil,40,200)
end
end

function eventLoop(t,r)
if timeLim>=0 then
timeLim=timeLim-0.5
ui.addPopup(2,0,"Time remaining for answering is \n"..timeLim.." seconds.",nil,40,300)
end
if timeLim<0 and displayed==false then
ui.addPopup(2,0,"Time remaining for answering is \n0 seconds. Time up!",nil,40,300)
displayed=true
end
end

Abdeltif
« Citoyen »
1386408060000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#598
  0
a dit :
Player={}

for name,player in pairs(tfm.get.room.playerList[name]) do
table.insert(Player[#Player+1], name)
end

I want to make a popup where You can find the names of players seperated with a comma , can we ?
Esh
« Censeur »
1386414720000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#599
  0
How i do to something happens in a specific map?
Bushmeister
« Consul »
1386418140000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#600
  0
Eshkation a dit :
How i do to something happens in a specific map?

function eventNewGame()
if tfm.get.room.currentMap("@868686") then
print("Okay!")
end
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 30 / 160 › »
© Atelier801 2018

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

Version 1.27