×

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
« ‹ 144 / 160 › »
Script Requests
Borntolol
« Citoyen »
1525196160000
    • Borntolol#0000
    • Profil
    • Derniers messages
    • Tribu
#2861
  0
but i want it to only execute once at the start *-*
then therell be a loop after
Bolodefchoco
« Sénateur »
1525196700000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2862
  1
Borntolol a dit :
but i want it to only execute once at the start *-*
then therell be a loop after

It does execute only once. Nothing wrong with the code.

The problem is that you are using " n " as it was a variable and in your code it's not. :P

Use
Code Lua

1
2
3
4
5
6
Launcher={["Borntolol#0000"]=true}

for name in next, Launcher do
tfm.exec.setShaman(name)
tfm.exec.movePlayer(name, 400, 75, false, 0, 0, false)
end

Dernière modification le 1525196760000
Borntolol
« Citoyen »
1525196880000
    • Borntolol#0000
    • Profil
    • Derniers messages
    • Tribu
#2863
  0
okay thanks :d
Borntolol
« Citoyen »
1525241160000
    • Borntolol#0000
    • Profil
    • Derniers messages
    • Tribu
#2864
  0
Okay ill send you my current code of the game so far and what i need help with through a private message because i dont want others to steal my idea lol
Steelcookies
« Citoyen »
1526872020000
    • Steelcookies#0000
    • Profil
    • Derniers messages
#2865
  0
Can you give me a script that skips between an selection of maps after someone wins, or the time ends? Because I really want to know how deathmatch and such have a really wide selection of maps.
(If that is confusing I just want a script that tables you to have different maps a script can go through.)
Onkei
« Citoyen »
1526887500000
    • Onkei#0000
    • Profil
    • Derniers messages
    • Tribu
#2866
  0
Steelcookies a dit :
Can you give me a script that skips between an selection of maps after someone wins, or the time ends? Because I really want to know how deathmatch and such have a really wide selection of maps.
(If that is confusing I just want a script that tables you to have different maps a script can go through.)

Shamousey put together a really useful tutorial ab this already
Overjoy06
« Citoyen »
1528785540000
    • Overjoy06#8554
    • Profil
    • Derniers messages
    • Tribu
#2867
  0
you know the module mycity right?

im just wondering how do you get teleported to like a new map when you clicked "Go to" above a building
Syrius
« Consul »
1528792680000
    • Syrius#8114
    • Profil
    • Derniers messages
    • Tribu
#2868
  0
Overjoy06 a dit :
you know the module mycity right?

im just wondering how do you get teleported to like a new map when you clicked "Go to" above a building

You don't get moved to another map, it's a really big map with everything. I think it uses tfm.exec.movePlayer()?
Honorabilis
« Consul »
1528801020000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#2869
  0
Overjoy06 a dit :
you know the module mycity right?

im just wondering how do you get teleported to like a new map when you clicked "Go to" above a building

You can't. It's a trick that he used a map for everything. (:
Bolodefchoco
« Sénateur »
1528811220000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2870
  0
Overjoy06 a dit :
you know the module mycity right?

im just wondering how do you get teleported to like a new map when you clicked "Go to" above a building

You can make maps with size 999999 loading the XML in lua, for example
Mutluerkek
« Citoyen »
1528851600000
    • Mutluerkek#8315
    • Profil
    • Derniers messages
    • Tribu
#2871
  0
i want many data save
example:
i have x and y
i want x save and y but i can't
because I never used it before
Bolodefchoco
« Sénateur »
1528854420000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2872
  0
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y
Mutluerkek
« Citoyen »
1528854720000
    • Mutluerkek#8315
    • Profil
    • Derniers messages
    • Tribu
#2873
  0
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's
Bolodefchoco
« Sénateur »
1528855260000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2874
  0
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.
Mutluerkek
« Citoyen »
1528855500000
    • Mutluerkek#8315
    • Profil
    • Derniers messages
    • Tribu
#2875
  0
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.

bro i'm know lua okey ?

but i don't know

system.savePlayerData(playername, data)
this code
i can't use two or many save data
Bolodefchoco
« Sénateur »
1528911780000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#2876
  0
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.

bro i'm know lua okey ?

but i don't know

system.savePlayerData(playername, data)
this code
i can't use two or many save data

I'm don't know that you am know


What do you want then? system.loadPlayerData and system.savePlayerData. There's nothing to explain
Mutluerkek
« Citoyen »
1528919400000
    • Mutluerkek#8315
    • Profil
    • Derniers messages
    • Tribu
#2877
  0
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.

bro i'm know lua okey ?

but i don't know

system.savePlayerData(playername, data)
this code
i can't use two or many save data

I'm don't know that you am know


What do you want then? system.loadPlayerData and system.savePlayerData. There's nothing to explain

i want make data save system okey ?
you understand ?

because you not understand me
Honorabilis
« Consul »
1528922220000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#2878
  0
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.

bro i'm know lua okey ?

but i don't know

system.savePlayerData(playername, data)
this code
i can't use two or many save data

I'm don't know that you am know


What do you want then? system.loadPlayerData and system.savePlayerData. There's nothing to explain

i want make data save system okey ?
you understand ?

because you not understand me

Explain me what you want in Turkish, I'll contact with Bolo.

Also we are not able to use system.loadPlayerData and system.savePlayerData.

Dernière modification le 1528922400000
Mutluerkek
« Citoyen »
1528923000000
    • Mutluerkek#8315
    • Profil
    • Derniers messages
    • Tribu
#2879
  0
Honorabilis a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Mutluerkek a dit :
Bolodefchoco a dit :
Hard to understand what you need. Can you rewrite it? Ask a friend that speaks english...

You can take a player's coordinate using tfm.get.room.playerList[playerName].x and tfm.get.room.playerList[playerName].y

i know this code but i don't want this code

i want data saving

example:
i make a profile code i add kill count and win count
player leave room and retry join but not save count i want save this count's

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
-- A table that stores the data of the players
local info = {}

eventNewPlayer = function(n) -- when someone joins the room
if not info[n] then -- and his table doesn't exist yet
info[n] = {
win = 0, -- put the data (initial/default values)
kill = 0,
}
end
end
table.foreach(tfm.get.room.playerList, eventNewPlayer) -- does the same for the current players

Then you can do info["Bolodefchoco#0000"].win = 9999 and, if I leave and rejoin the room, I'll still have 9999.

bro i'm know lua okey ?

but i don't know

system.savePlayerData(playername, data)
this code
i can't use two or many save data

I'm don't know that you am know


What do you want then? system.loadPlayerData and system.savePlayerData. There's nothing to explain

i want make data save system okey ?
you understand ?

because you not understand me

Explain me what you want in Turkish, I'll contact with Bolo.

Also we are not able to use system.loadPlayerData and system.savePlayerData.

tribe lua yes but i making a module
Dagaker
« Censeur »
1529661960000
    • Dagaker#3257
    • Profil
    • Derniers messages
#2880
  0
I need a script that will be able to give me some of these following options:
1. Change The grounds to Lava, Trampoline, Chocolate, Wood and Cloud. (make them so i can change them with number)
2. To be able to edit my own height and width of the ground in the script.

Dernière modification le 1529662020000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 144 / 160 › »
© Atelier801 2018

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

Version 1.27