×

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
  • /
  • [Skrypt] Szymon Mówi
[Skrypt] Szymon Mówi
Rkubi
« Censeur »
1492950780000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  20

http://img.atelier801.com/a924f08e.png
Wersja: Beta

Cel: Wykonuj emotki wyświetlające się na polu tekstowym.
Początkowo masz 5 sekund na reakcję.
Wraz z wyświetleniem się kolejnej emotki czas na reakcję będzie coraz mniejszy!
Aktualnie w rotacji jest 10 emotek.


Kod

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
  player = {}

Settings = {
XML = [[<C><P F="1" /><Z><S><S X="400" L="800" Y="380" H="40" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D><P X="714" P="0,0" T="1" Y="360" /><P X="47" P="0,0" T="5" Y="361" /><P X="196" P="0,0" T="6" Y="360" /><P X="201" P="0,1" T="6" Y="359" /><DS X="401" Y="348" /><P X="545" P="0,0" T="0" Y="361" /><P X="589" P="0,0" T="2" Y="360" /></D><O /></Z></C>]],
mapName = "Szymon Mówi",
speed = 5,
time = 9,
odl = true,
}

Emotes = {
{name = "Tańcz", id = 0},
{name = "Śmiej się", id = 1},
{name = "Płacz", id = 2},
{name = "Wyślij serce", id = 3},
{name = "Złość się", id = 4},
{name = "Bij brawo", id = 5},
{name = "Śpij", id = 6},
{name = "Zrób facepalm", id = 7},
{name = "Usiądź", id = 8},
{name = "Rzuć konfetti", id = 9},
}

function SelectEmote()
local a,e = {},{}
local random = math.random(1,10)
for v, arg in pairs(Emotes) do
a[v] = arg["id"]
e[v] = arg["name"]
end
emote["id"] = a[random]
emote["name"] = e[random]
time = os.time()
end

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
done = {},
record = 0,
timeGame = 0,
counting = {},
}
end
end

for nick in pairs(tfm.get.room.playerList) do
eventNewPlayer(nick)
end

function eventEmotePlayed(nick, id)
if emote["id"] ~= nil then
if id == emote["id"] then
player[nick]["done"] = true
else
tfm.exec.killPlayer(nick)
end
end
end

function eventNewGame()
emote = {}
end

function Main()
for _, arg in pairs({"AfkDeath","AutoShaman","AutoNewGame","AutoScore","MortCommand","PhysicalConsumables"}) do
tfm.exec["disable"..arg](true)
end
for nick in pairs(tfm.get.room.playerList) do
player[nick]["done"] = true
player[nick]["timeGame"] = 0
player[nick]["counting"] = true
end
time = os.time()
Settings["speed"] = 5
ui.removeTextArea(0, nil)
end

Main()

function eventPlayerDied(nick)
local i = 0
for n, player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i = i + 1
end
end
if i == 0 then
for nick in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(nick)
end
eventNewGame()
Settings["odl"] = true
end
if player[nick]["timeGame"] > player[nick]["record"] then
player[nick]["record"] = player[nick]["timeGame"]
ui.addTextArea(4, "Twój rekord: <B><V>"..math.floor(player[nick]["record"]).."</V></B>", nick, 10, 370, nil, nil, 0x121212, 0x121212, 0.7, true)
end
end

function eventLoop()
if Settings["odl"] == true then
Settings["time"] = Settings["time"] - 0.5
ui.removeTextArea(0, nil)
ui.removeTextArea(1, nil)
ui.addTextArea(3, "<font size='80'><V><B>"..math.ceil(Settings["time"]).."</B></V></font>", nil, 370, 130, nil, nil, 0, 0, 0, true)
if Settings["time"] <= 0 then
Settings["odl"] = false
Settings["time"] = 10
ui.removeTextArea(3, nil)
Main()
end
end
if Settings["odl"] == false then
for nick in pairs(tfm.get.room.playerList) do
if player[nick]["counting"] == true then
player[nick]["timeGame"] = player[nick]["timeGame"] + 0.5
end
end
if time < os.time() - 1000 * Settings["speed"] then
if Settings["speed"] > 1.2 then
Settings["speed"] = Settings["speed"] - 0.2
end
for nick in pairs(tfm.get.room.playerList) do
if player[nick]["done"] == false then
tfm.exec.killPlayer(nick)
end
player[nick]["done"] = false
end
SelectEmote()
ui.addTextArea(0, "<p align='center'><font size='50'>"..Settings["mapName"]..":\n<font color='#"..string.format("%x", math.random(0x000000, 0xFFFFFF)).."'>"..emote["name"].."</font></font></p>", nil, 10, 80, 780, nil, 0x121212, 0x121212, 0.5, true)
end
for nick in pairs(tfm.get.room.playerList) do
ui.addTextArea(1, "Czas gry: <B><V>"..math.ceil(player[nick]["timeGame"]).."</V></B> sekund!", nick, 670, 370, nil, nil, 0x121212, 0x121212, 0.7, true)
ui.addTextArea(4, "Twój rekord: <B><V>"..math.floor(player[nick]["record"]).."</V></B>", nick, 10, 370, nil, nil, 0x121212, 0x121212, 0.7, true)
end
end
ui.setMapName("<font color='#"..string.format("%x", math.random(0x000000, 0xFFFFFF)).."'><B>"..Settings["mapName"].."!</B></font> - By Rkubi")
end

tfm.exec.newGame(Settings["XML"])

Lista aktualizacji

[23 / 04 / 2017] Wersja Beta skryptu
[24 / 04 / 2017] Dawniej rekord był ogólny, teraz każdy ma swój


Minigra jest dalej w budowie, jeżeli zauważyłeś jakieś błędy lub masz jakąś sugestię napisz mi o tym TUTAJ.


Dernière modification le 1493039460000
Sebafrancuz
« Consul »
1492951080000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  7
Nieźle! ;D
Natiibobr
« Consul »
1492951140000
    • Natiibobr#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  1
Byłam testerem :D
Trochę nas pozabijało, ale super!
Fajnie było, jak było Rkubi mówi xD
Ayrin
« Consul »
1492951500000
    • Ayrin#1123
    • Profil
    • Derniers messages
    • Tribu
#4
  0
zapowiada się ciekawie, nie powiem x)
Aranea
« Consul »
1492951860000
    • Aranea#1648
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Powodzenia w tworzeniu
Samantha
« Citoyen »
1492953960000
    • Samantha#3993
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Ciekawie się zapowiada
Niezdecydowanie
« Consul »
1492954140000
    • Niezdecydowanie#0000
    • Profil
    • Derniers messages
#7
  0
Szymon mówi wow
Powodzenia
Nat_a
« Consul »
1492962360000
    • Nat_a#9157
    • Profil
    • Derniers messages
#8
  0
Bardzo fajne!


Powodzenia!
Wilczaq
« Consul »
1492965300000
    • Wilczaq#9140
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Ciekawe. :o

Powodzenia! :)
Mlekowaty
« Consul »
1493045220000
    • Mlekowaty#4870
    • Profil
    • Derniers messages
    • Tribu
#10
  0
ciekawe,przydatne np do zawodów w plemku ^^
Zouiki
« Citoyen »
1493048880000
    • Zouiki#0000
    • Profil
    • Derniers messages
#11
  0
:O Świetny pomysł!
Machi
« Consul »
1493049360000
    • Machi#1159
    • Profil
    • Derniers messages
#12
  4
Ogólnie to jest świetnie
Tylko przydałoby się jakieś takie "win" z nickiem osoby która została najdłużej
Rkubi
« Censeur »
1493819700000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  8
Beletch a dit :
Ogólnie to jest świetnie
Tylko przydałoby się jakieś takie "win" z nickiem osoby która została najdłużej

Początkowo coś takiego chciałem zrobić tylko te rekordy przez to nie miały by sensu.

Dernière modification le 1493819760000
Niezdecydowanie
« Consul »
1499541660000
    • Niezdecydowanie#0000
    • Profil
    • Derniers messages
#14
  0
jej super gra mam rekord 103
polecam
Tinaijula
« Consul »
1499544420000
    • Tinaijula#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Fajne takie cuśko ^_^
Hyuna
« Citoyen »
1553944020000
    • Hyuna#7925
    • Profil
    • Derniers messages
#16
  0
super!! :D
Daria
« Citoyen »
1553946720000
    • Daria#4611
    • Profil
    • Derniers messages
#17
  0
Ciekawe, mam nadzieję że będzie to jakoś fajne wyglądało. . .
Kickaricka3
« Consul »
1657957920000
    • Kickaricka3#9256
    • Profil
    • Derniers messages
    • Tribu
#18
  3
Świetna gra!
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Skrypt] Szymon Mówi
© Atelier801 2018

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

Version 1.27