×

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
  • /
  • [Module] SPACE
1 / 3 › »
[Module] SPACE
Sourialp
« Citoyen »
1483779120000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  2
  • Pour jouer
  • mise à jour

SPACE by Sourialp aidé de Jtmlucie

Ce module est une petite map aventure/parcours dans une petite station spatiale. Vous êtes normalement là pour effectuer des expériences chimiques 2.1 , malheureusement vous allez avoir quelques contretemps...

Peut se jouer seul ou à plusieurs.

Pour faire cette petite aventure, allez dans votre maison de tribu, et tapez "/lua"
dans le tchat. Une sorte de menu s'ouvrira, dedans vous copier/coller le code si dessous puis cliquez sur "validé";
(si vous n'avez pas les droits, demandez à quelqu'un qui possèdes les droits de tribu de lancé le jeu)


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
142
143
144
145
146
147
148
149
150
151
152
153
function main()
tfm.exec.disableMinimalistMode (true)
tfm.exec.disableDebugCommand (true)
tfm.exec.disableMortCommand (true)
tfm.exec.disableWatchCommand (true)
tfm.exec.disableAfkDeath (true)
tfm.exec.disableAutoScore (true)
tfm.exec.disableAutoShaman (true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
tfm.exec.newGame ("@6998650")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="0"}
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, tu es dans la station spatiale nyancat. Ici se déroulera les expériences chimiques 2.1 je te souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", nil, 150, 200, 500, 500, true)
end


function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

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

function eventNewPlayer (name)
if maTable.event=="1" then
tfm.exec.respawnPlayer (name)
tfm.exec.bindKeyboard(name,32,true,true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
else
tfm.exec.bindKeyboard(name,32,true,true)
tfm.exec.respawnPlayer (name)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
end
end

function eventPlayerDied (name)
tfm.exec.respawnPlayer (name)
end

function eventChatCommand(name, message)
if maTable.event=="0" then
if message=="start" then
tfm.exec.newGame ("@6998690")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, allez chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
if maTable.event=="0" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Faites: ''<font color='#000000'>!start</font>'' </font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="1" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Aller chercher des outils dans l'armoire.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="2" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_2</font> Ouvir le conduit d'aération grâce aux outils.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="3" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_3</font> Aller enclencher l'alarme incendie grace au ordinateurs principaux.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>S'enfuir</font> dans le module de sauvetage!!! Se situant à gauche du vaisseau!!!</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="5" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>Départ dans 15 s !!!</font></font>", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_</font> Faites '<font color='#000000'>!restart</font>' Pour recommencer.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="restart" then
tfm.exec.newGame ("@6998690")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, allez chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
end

function eventKeyboard(name, key, down, x, y)
if maTable.event=="1" then
if 186<x and x<242 and y==587 and key==32 then -- pour l'armoire
maTable = { event="2"}
tfm.exec.displayParticle(3, x, y)
end
end
if maTable.event=="2" then
if 732<x and x<750 and y==775 and key==32 then -- pour les conduits d'aération
maTable = { event="3"}
tfm.exec.playEmote (name, 26)
tfm.exec.displayParticle(3, x, y)
tfm.exec.removePhysicObject(id)
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
end
end
if maTable.event=="3" then
if 1088<x and x<1149 and y==775 and key==32 then -- pour la salle de contrôle
maTable = { event="4"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.newGame ("@6998666")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par une énorme météorite!!! Le mur est détruit!! Vite, l'air s’échappe, allez rapidement dans la cabine de sauvetage!!!", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if 144<x and x<187 and y==775 and key==32 then -- pour la cabine de sauvetage
maTable = { event="5"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.movePlayer (name, 119, 777, false, 0, 0, false)
tfm.exec.disableAutoNewGame (false)
tfm.exec.disableAutoTimeLeft (false)
tfm.exec.setGameTime (15, true)
end
end
end

function eventNewGame ()
if maTable.event=="5" then
tfm.exec.newGame ('<C><P aie="" L="3000" G="0,2" H="800" mc="" defilante="0,0,0,1" /><Z><S><S P="0,0,0,0,0,0,0,0" X="2600" L="3000" o="0" H="3000" c="4" Y="479" T="12" /><S P="0,0,0,0,0,0,0,0" H="3000" L="3000" o="0" X="-375" c="4" Y="593" T="12" /><S P="0,0,0,0,0,0,0,0" H="400" L="1300" o="ffffff" X="789" c="4" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="337" L="110" o="3d3d3d" X="817" c="4" Y="625" T="12" /><S P="0,0,0.3,0,0,0,0,0" X="785" L="1300" o="3d3d3d" H="61" c="4" Y="434" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="1380" o="797979" X="749" c="1" N="" Y="795" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff0000" H="10" X="148" Y="774" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="928" H="305" X="1897" Y="647" T="8" /><S m="" P="0,0,0,0,0,0,0,0" L="10" o="eff00" H="1000" X="1441" N="" Y="0" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="400" X="140" N="" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="1300" o="797979" H="10" X="785" N="" Y="405" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="1435" Y="450" T="12" /><S P="0,0,0,0,3,0,0,0" H="330" L="10" o="797979" X="859" c="1" Y="631" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="28" o="797979" H="10" X="784" Y="754" T="12" /><S P="0,0,0.3,0.2,3,0,0,0" H="297" L="10" o="797979" X="802" c="1" Y="610" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="674" o="797979" H="10" X="478" N="" Y="466" T="12" /><S P="0,0,1,0,0,0,0,0" H="330" L="10" o="797979" X="868" c="1" N="" Y="629" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="292" X="767" N="" Y="613" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="632" Y="769" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" L="71" o="0" H="10" X="631" Y="787" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="79" o="ffffff" H="88" c="4" Y="749" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="352" c="1" Y="472" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="442" o="797979" H="10" X="361" N="" Y="607" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="203" o="0" H="88" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="224" o="797979" H="10" X="975" N="" Y="466" T="12" /><S P="0,0,4,0.2,0,0,0,0" L="294" o="797979" H="10" X="1288" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="199" o="ffffff" H="81" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="57" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="85" o="797979" H="10" X="94" Y="704" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="15" o="0" X="97" c="4" Y="749" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="13" o="2786b6" X="97" c="4" Y="749" T="13" /><S P="0,0,4,0.2,0,0,0,0" H="21" L="10" o="797979" X="1235" c="1" Y="481" T="12" /><S P="0,0,,,,0,0,0" L="171" H="10" X="347" Y="788" T="9" /><S P="0,0,,,,0,0,0" L="135" H="10" X="337" Y="600" T="9" /><S P="0,0,0.3,0.2,-30,0,0,0" L="325" H="133" X="1516" Y="507" T="8" /><S P="0,0,0.3,0.2,20,0,0,0" L="325" H="133" X="1543" Y="789" T="8" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="230" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="689" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="363" L="10" o="797979" H="21" c="1" Y="612" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="666" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="245" Y="645" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="280" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="27" o="0" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="ffffff" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="347" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="ffffff" H="54" X="328" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="324" Y="667" T="12" /><S P="0,0,0.3,0.2,45,0,0,0" L="60" o="0" H="10" X="302" Y="667" T="12" /></S><D><DS Y="773" X="93" /><P X="391" P="1,0" Y="551" T="11" /><P X="213" P="1,0" Y="601" T="29" /><P X="329" P="1,0" C="46788e" Y="601" T="24" /><P X="442" P="1,0" Y="563" T="25" /><P X="441" P="1,0" Y="601" T="33" /><P X="213" P="1,0" Y="509" T="41" /><P X="517" P="1,0" Y="602" T="28" /></D><O /></Z></C>')
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, " GAME OVER", nil, 150, 200, 500, 500, true)
tfm.exec.setGameTime (15, true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
maTable = { event="6"}
end
end
main()


Une fois cela fait, un joueur pourra faire "!start" dans le tchat pour commencer le jeu.

Mode EASY:
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
142
143
144
145
146
147
148
149
150
151
152
153
function main()
tfm.exec.disableMinimalistMode (true)
tfm.exec.disableDebugCommand (true)
tfm.exec.disableMortCommand (true)
tfm.exec.disableWatchCommand (true)
tfm.exec.disableAfkDeath (true)
tfm.exec.disableAutoScore (true)
tfm.exec.disableAutoShaman (true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
tfm.exec.newGame ("@6998650")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="0"}
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", nil, 150, 200, 500, 500, true)
end


function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

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

function eventNewPlayer (name)
if maTable.event=="1" then
tfm.exec.respawnPlayer (name)
tfm.exec.bindKeyboard(name,32,true,true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
else
tfm.exec.bindKeyboard(name,32,true,true)
tfm.exec.respawnPlayer (name)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
end
end

function eventPlayerDied (name)
tfm.exec.respawnPlayer (name)
end

function eventChatCommand(name, message)
if maTable.event=="0" then
if message=="start" then
tfm.exec.newGame ('<C><P aie="" H="800" mc="" defilante="0,0,0,1" L="3000" /><Z><S><S P="0,0,0,0,0,0,0,0" X="2595" L="3000" o="0" H="3000" c="4" Y="526" T="12" /><S P="0,0,0,0,0,0,0,0" H="3000" L="3000" o="0" X="-375" c="4" Y="593" T="12" /><S P="0,0,0,0,0,0,0,0" H="400" L="1300" o="ffffff" X="789" c="4" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="708" L="1500" o="0" H="77" c="4" N="" Y="838" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="337" L="110" o="3d3d3d" X="817" c="4" Y="625" T="12" /><S P="0,0,0.3,0,0,0,0,0" X="785" L="1300" o="3d3d3d" H="61" c="4" Y="434" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="1380" o="797979" X="749" c="1" N="" Y="795" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff0000" H="10" X="148" Y="774" T="12" /><S m="" P="0,0,0,9999,0,0,0,0" L="200" o="eff00" H="30" X="374" N="" Y="778" T="12" /><S m="" P="0,0,0,0,-70,0,0,0" L="10" o="eff00" H="142" X="211" N="" Y="746" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="400" X="140" N="" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="1300" o="797979" H="10" X="785" Y="405" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="400" X="1436" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="363" L="10" o="797979" H="21" c="1" Y="612" T="12" /><S P="0,0,0,0,5,0,0,0" H="330" L="10" o="797979" X="854" c="1" N="" Y="631" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="28" o="797979" H="10" X="784" N="" Y="754" T="12" /><S P="0,0,0.3,0.2,3,0,0,0" H="297" L="10" o="797979" X="802" c="1" N="" Y="610" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="674" o="797979" H="10" X="478" N="" Y="466" T="12" /><S P="0,0,0,0,0,0,0,0" H="330" L="10" o="797979" X="868" c="1" N="" Y="629" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="292" X="767" N="" Y="613" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="632" Y="769" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" L="71" o="0" H="10" X="631" Y="787" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="79" o="ffffff" H="88" c="4" Y="749" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="352" c="1" Y="472" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="442" o="797979" H="10" X="361" N="" Y="607" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="15" L="10" o="0" X="1118" c="4" Y="761" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="23" L="28" o="0" X="1118" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="20" L="26" o="2786b6" X="1118" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="24" L="100" o="0" X="1118" c="4" Y="779" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="1158" L="28" o="0" H="23" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="1158" L="10" o="0" H="15" c="4" Y="765" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="1158" L="26" o="2786b6" H="20" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="1080" L="10" o="0" H="15" c="4" Y="764" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="1080" L="28" o="0" H="23" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="20" L="26" o="2786b6" X="1080" c="4" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="224" o="797979" H="10" X="975" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="294" o="797979" H="10" X="1288" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="57" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="85" o="797979" H="10" X="94" Y="704" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="15" o="0" H="10" X="97" Y="749" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="13" o="2786b6" H="10" X="97" Y="749" T="13" /><S P="0,0,1,0,0,0,0,0" L="10" o="797979" H="15" X="765" Y="713" T="12" /><S P="0,0,0.8,0.2,0,0,0,0" L="10" o="797979" H="15" X="765" Y="665" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="635" Y="650" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="1235" c="1" Y="475" T="12" /><S m="" P="0,0,,,,0,0,0" L="500" H="10" X="1139" Y="714" T="9" /></S><D><DS Y="778" X="554" /><P X="328" P="1,0" Y="868" T="44" /><P X="284" P="1,0" Y="863" T="44" /><P X="307" P="1,0" Y="867" T="44" /><P X="350" P="1,0" Y="866" T="44" /><P X="397" P="1,0" Y="869" T="44" /><P X="375" P="1,0" Y="869" T="44" /><P X="414" P="1,0" Y="869" T="44" /><P X="438" P="1,0" Y="865" T="44" /><P X="468" P="1,0" Y="866" T="44" /><P X="318" P="1,0" Y="870" T="44" /><P X="362" P="1,0" Y="868" T="44" /><P X="211" P="1,0" Y="578" T="44" /><P X="391" P="1,0" Y="551" T="11" /><P X="213" P="1,0" Y="601" T="29" /><P X="329" P="1,0" C="46788e" Y="601" T="24" /><P X="442" P="1,0" Y="561" T="25" /><P X="441" P="1,0" Y="601" T="33" /><P X="213" P="1,0" Y="509" T="41" /><P X="960" P="1,0" Y="835" T="44" /><P X="517" P="1,0" Y="602" T="28" /><P X="956" P="1,0" Y="541" T="23" /><P X="962" P="1,0" C="48230c" Y="790" T="20" /><P X="1257" P="1,0" Y="685" T="44" /><P X="1248" P="1,0" Y="789" T="42" /></D><O /></Z></C>')
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, aller chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
if maTable.event=="0" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Faites: ''<font color='#000000'>!start</font>'' </font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="1" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Aller chercher des outils dans l'armoire.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="2" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_2</font> Ouvir le conduit d'aération grâce aux outils.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="3" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_3</font> Aller enclencher l'alarme incendie grace au ordinateurs principaux.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>S'enfuir</font> dans le module de sauvetage!!! Se situant à gauche du vaisseau!!!</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="5" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>Départ dans 15 s !!!</font></font>", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_</font> Faites '<font color='#000000'>!restart</font>' Pour recommencer.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="restart" then
tfm.exec.newGame ("@6998690")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, allez chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
end

function eventKeyboard(name, key, down, x, y)
if maTable.event=="1" then
if 186<x and x<242 and y==587 and key==32 then -- pour l'armoire
maTable = { event="2"}
tfm.exec.displayParticle(3, x, y)
end
end
if maTable.event=="2" then
if 732<x and x<750 and y==775 and key==32 then -- pour les conduits d'aération
maTable = { event="3"}
tfm.exec.playEmote (name, 26)
tfm.exec.displayParticle(3, x, y)
tfm.exec.removePhysicObject(id)
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
end
end
if maTable.event=="3" then
if 1088<x and x<1149 and y==775 and key==32 then -- pour la salle de contrôle
maTable = { event="4"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.newGame ('<C><P aie="" mc="" L="3000" G="15,2" H="800" defilante="0,0,0,1" /><Z><S><S P="0,0,0,0,0,0,0,0" X="2600" L="3000" o="0" H="3000" c="4" Y="479" T="12" /><S P="0,0,0,0,0,0,0,0" H="3000" L="3000" o="0" X="-375" c="4" Y="593" T="12" /><S P="0,0,0,0,0,0,0,0" H="400" L="1300" o="ffffff" X="789" c="4" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="337" L="110" o="3d3d3d" X="817" c="4" Y="625" T="12" /><S P="0,0,0.3,0,0,0,0,0" X="785" L="1300" o="3d3d3d" H="61" c="4" Y="434" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="1380" o="797979" X="749" c="1" N="" Y="795" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff0000" H="10" X="148" Y="774" T="12" /><S m="" P="0,0,0,0,0,0,0,0" L="10" o="eff00" H="1000" X="1441" N="" Y="0" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="400" X="140" N="" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="1300" o="797979" H="10" X="785" N="" Y="405" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="1435" Y="450" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="363" L="10" o="797979" H="21" c="1" Y="612" T="12" /><S P="0,0,0,0,5,0,0,0" H="330" L="10" o="797979" X="854" c="1" N="" Y="631" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="28" o="797979" H="10" X="784" N="" Y="754" T="12" /><S P="0,0,0.3,0.2,3,0,0,0" H="297" L="10" o="797979" X="802" c="1" N="" Y="610" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="674" o="797979" H="10" X="478" N="" Y="466" T="12" /><S P="0,0,1,0,0,0,0,0" H="330" L="10" o="797979" X="868" c="1" N="" Y="629" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="292" X="767" N="" Y="613" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="632" Y="769" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" L="71" o="0" H="10" X="631" Y="787" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="79" o="ffffff" H="88" c="4" Y="749" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="352" c="1" Y="472" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="442" o="797979" H="10" X="361" N="" Y="607" T="12" /><S P="0,0,0.3,0.2,-20,0,0,0" H="20" L="26" o="2786b6" X="1779" c="4" Y="593" T="12" /><S P="0,0,0.3,0.2,20,0,0,0" X="1556" L="26" o="2786b6" H="20" c="4" Y="695" T="12" /><S P="0,0,0.3,0.2,20,0,0,0" X="1741" L="10" o="ffffff" H="15" c="4" Y="543" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="20" L="26" o="2786b6" X="1858" c="4" Y="502" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="224" o="797979" H="10" X="975" N="" Y="466" T="12" /><S P="0,0,4,0.2,0,0,0,0" L="294" o="797979" H="10" X="1288" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="57" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="85" o="797979" H="10" X="94" Y="704" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="15" o="0" H="10" c="4" Y="749" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="13" o="2786b6" H="10" c="4" Y="749" T="13" /><S P="0,0,4,0.2,0,0,0,0" H="21" L="10" o="797979" X="1235" c="1" Y="481" T="12" /><S P="0,0,,,,0,0,0" L="171" H="10" X="347" Y="788" T="9" /><S P="0,0,,,,0,0,0" L="135" H="10" X="337" Y="600" T="9" /><S P="0,0,0.3,0.2,-30,0,0,0" L="10" o="797979" H="80" X="1573" Y="519" T="12" /><S P="0,0,0.3,0.2,40,0,0,0" L="10" o="797979" H="104" X="1544" Y="753" T="12" /><S P="0,0,0.3,0.2,80,0,0,0" L="10" o="797979" H="105" X="1734" Y="642" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="928" H="305" X="1897" Y="648" T="8" /><S P="0,0,0.3,0.2,-30,0,0,0" L="325" H="133" X="1530" Y="522" T="8" /><S P="0,0,0.3,0.2,20,0,0,0" L="325" H="133" X="1555" Y="785" T="8" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="1232" Y="498" T="9" /></S><D><DS Y="773" X="1108" /><P X="391" P="1,0" Y="551" T="11" /><P X="213" P="1,0" Y="601" T="29" /><P X="329" P="1,0" C="46788e" Y="601" T="24" /><P X="442" P="1,0" Y="563" T="25" /><P X="441" P="1,0" Y="601" T="33" /><P X="213" P="1,0" Y="509" T="41" /><P X="517" P="1,0" Y="602" T="28" /></D><O /></Z></C>')
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par une énorme météorite!!! Le mur est détruit!! Vite, l'air s’échapper, allez rapidement dans la cabine de sauvetage!!!", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if 144<x and x<187 and y==775 and key==32 then -- pour la cabine de sauvetage
maTable = { event="5"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.movePlayer (name, 119, 777, false, 0, 0, false)
tfm.exec.disableAutoNewGame (false)
tfm.exec.disableAutoTimeLeft (false)
tfm.exec.setGameTime (15, true)
end
end
end

function eventNewGame ()
if maTable.event=="5" then
tfm.exec.newGame ('<C><P aie="" mc="" L="3000" G="0,2" H="800" defilante="0,0,0,1" /><Z><S><S P="0,0,0,0,0,0,0,0" H="3000" L="3000" o="0" X="2600" c="4" Y="479" T="12" /><S P="0,0,0,0,0,0,0,0" X="-375" L="3000" o="0" H="3000" c="4" Y="593" T="12" /><S P="0,0,0,0,0,0,0,0" X="789" L="1300" o="ffffff" H="400" c="4" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="817" L="110" o="3d3d3d" H="337" c="4" Y="625" T="12" /><S P="0,0,0.3,0,0,0,0,0" H="61" L="1300" o="3d3d3d" X="785" c="4" Y="434" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="749" L="1380" o="797979" H="10" c="1" N="" Y="795" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff0000" H="10" X="148" Y="774" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="928" H="305" X="1897" Y="647" T="8" /><S m="" P="0,0,0,0,0,0,0,0" L="10" o="eff00" H="1000" X="1441" N="" Y="0" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="400" X="140" N="" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="1300" o="797979" H="10" X="785" N="" Y="405" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="1435" Y="450" T="12" /><S P="0,0,0,0,5,0,0,0" X="854" L="10" o="797979" H="330" c="1" Y="631" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="28" o="797979" H="10" X="784" Y="754" T="12" /><S P="0,0,0.3,0.2,3,0,0,0" X="802" L="10" o="797979" H="297" c="1" Y="610" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="674" o="797979" H="10" X="478" N="" Y="466" T="12" /><S P="0,0,1,0,0,0,0,0" X="868" L="10" o="797979" H="330" c="1" N="" Y="629" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="292" X="767" N="" Y="613" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="632" Y="769" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" L="71" o="0" H="10" X="631" Y="787" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="88" L="79" o="ffffff" X="97" c="4" Y="749" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="352" L="10" o="797979" H="21" c="1" Y="472" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="442" o="797979" H="10" X="361" N="" Y="607" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="203" o="0" H="88" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="224" o="797979" H="10" X="975" N="" Y="466" T="12" /><S P="0,0,4,0.2,0,0,0,0" L="294" o="797979" H="10" X="1288" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="199" o="ffffff" H="81" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="57" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="85" o="797979" H="10" X="94" Y="704" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="15" o="0" H="10" c="4" Y="749" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="13" o="2786b6" H="10" c="4" Y="749" T="13" /><S P="0,0,4,0.2,0,0,0,0" X="1235" L="10" o="797979" H="21" c="1" Y="481" T="12" /><S P="0,0,,,,0,0,0" L="171" H="10" X="347" Y="788" T="9" /><S P="0,0,,,,0,0,0" L="135" H="10" X="337" Y="600" T="9" /><S P="0,0,0.3,0.2,-30,0,0,0" L="325" H="133" X="1516" Y="507" T="8" /><S P="0,0,0.3,0.2,20,0,0,0" L="325" H="133" X="1543" Y="789" T="8" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="230" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="689" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="363" c="1" Y="612" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="666" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="245" Y="645" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="280" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="27" o="0" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="ffffff" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="347" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="ffffff" H="54" X="328" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="324" Y="667" T="12" /><S P="0,0,0.3,0.2,45,0,0,0" L="60" o="0" H="10" X="302" Y="667" T="12" /></S><D><DS Y="773" X="93" /><P X="391" P="1,0" Y="551" T="11" /><P X="213" P="1,0" Y="601" T="29" /><P X="329" P="1,0" C="46788e" Y="601" T="24" /><P X="442" P="1,0" Y="563" T="25" /><P X="441" P="1,0" Y="601" T="33" /><P X="213" P="1,0" Y="509" T="41" /><P X="517" P="1,0" Y="602" T="28" /></D><O /></Z></C>')
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, " GAME OVER", nil, 150, 200, 500, 500, true)
tfm.exec.setGameTime (15, true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
maTable = { event="6"}
end
end
main()



Mode HARD:

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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
function main()
tfm.exec.disableMinimalistMode (true)
tfm.exec.disableDebugCommand (true)
tfm.exec.disableMortCommand (true)
tfm.exec.disableWatchCommand (true)
tfm.exec.disableAfkDeath (true)
tfm.exec.disableAutoScore (true)
tfm.exec.disableAutoShaman (true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
tfm.exec.newGame ("@6998650")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="0"}
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, tu es dans la station spatiale nyancat. Ici se déroulera les expériences chimiques 2.1 je te souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", nil, 150, 200, 500, 500, true)
end


function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

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

function eventNewPlayer (name)
if maTable.event=="1" then
tfm.exec.respawnPlayer (name)
tfm.exec.bindKeyboard(name,32,true,true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
else
tfm.exec.bindKeyboard(name,32,true,true)
tfm.exec.respawnPlayer (name)
ui.addPopup(1, 0, "<font color='#FFFFFF'>Bienvenue, vous êtes dans la station spatiale nyan cat. Ici se déroulera les expériences chimiques 2.1 je vous souhaite bonne chance. (<font color='#000000'>Maître du jeu</font>: faites espace aux endroits indiqués pour faire les actions demandées. Faites <font color='#000000'>!help</font> pour voir les objectifs.) </font>", name, 150, 200, 500, 500, true)
end
end

function eventPlayerDied (name)
tfm.exec.newGame ("@6832679")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="6"}
ui.addPopup(1, 0, "<font color='#000000'>GAME OVER TRY AGAIN</font>", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end

function eventChatCommand(name, message)
if maTable.event=="0" then
if message=="start" then
tfm.exec.newGame ("@6998690")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, aller chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
if maTable.event=="0" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Faites: ''<font color='#000000'>!start</font>'' </font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="1" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_1</font> Aller chercher des outils dans l'armoire.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="2" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_2</font> Ouvir le conduit d'aération grâce aux outils.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="3" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_3</font> Aller enclencher l'alarme incendie grace au ordinateurs principaux.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>S'enfuir</font> dans le module de sauvetage!!! Se situant à gauche du vaisseau!!!</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="5" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#FF0000'>Départ dans 15 s !!!</font></font>", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="help" then
ui.addPopup(1, 0, "<font color='#000000'>Objectifs</font><font color='#FFFFFF'>: <font color='#000000'>_</font> Faites '<font color='#000000'>!restart</font>' Pour recommencer.</font>", name, 150, 200, 500, 500, true)
end
end
if maTable.event=="6" then
if message=="restart" then
tfm.exec.newGame ("@6998690")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
maTable = { event="1"}
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par des météorites!!! l'ascenseur gravitationnel et le couloir sont détruits, allez chercher des outils dans l’armoire pour ouvrir et passer dans les conduits d'aération. Une fois cela fait, enclenchez manuellement l'alarme incendie dans la salle de contrôle pour éteindre le feu!!!", nil, 150, 200, 500, 500, true)
definition = {type=12,width=10,height=40,foreground=0,friction=0.1,color=0x797979,inearDamping=3}
id = 10
tfm.exec.addPhysicObject(id, 765, 775, definition)
end
end
end

function eventKeyboard(name, key, down, x, y)
if maTable.event=="1" then
if 186<x and x<242 and y==587 and key==32 then -- pour l'armoire
maTable = { event="2"}
tfm.exec.displayParticle(3, x, y)
end
end
if maTable.event=="2" then
if 732<x and x<750 and y==775 and key==32 then -- pour les conduits d'aération
maTable = { event="3"}
tfm.exec.playEmote (name, 26)
tfm.exec.displayParticle(3, x, y)
tfm.exec.removePhysicObject(id)
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
end
end
if maTable.event=="3" then
if 1088<x and x<1149 and y==775 and key==32 then -- pour la salle de contrôle
maTable = { event="4"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.newGame ("@6998666")
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, "Oh non!!! Nous avons été percuté par une énorme météorite!!! Le mur est détruit!! Vite, l'air s’échappe, allez rapidement dans la cabine de sauvetage!!!", nil, 150, 200, 500, 500, true)
end
end
if maTable.event=="4" then
if 144<x and x<187 and y==775 and key==32 then -- pour la cabine de sauvetage
maTable = { event="5"}
tfm.exec.displayParticle(3, x, y)
tfm.exec.movePlayer (name, 119, 777, false, 0, 0, false)
tfm.exec.disableAutoNewGame (false)
tfm.exec.disableAutoTimeLeft (false)
tfm.exec.setGameTime (15, true)
end
end
end

function eventNewGame ()
if maTable.event=="5" then
tfm.exec.newGame ('<C><P aie="" L="3000" G="0,2" H="800" mc="" defilante="0,0,0,1" /><Z><S><S P="0,0,0,0,0,0,0,0" X="2600" L="3000" o="0" H="3000" c="4" Y="479" T="12" /><S P="0,0,0,0,0,0,0,0" H="3000" L="3000" o="0" X="-375" c="4" Y="593" T="12" /><S P="0,0,0,0,0,0,0,0" H="400" L="1300" o="ffffff" X="789" c="4" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="337" L="110" o="3d3d3d" X="817" c="4" Y="625" T="12" /><S P="0,0,0.3,0,0,0,0,0" X="785" L="1300" o="3d3d3d" H="61" c="4" Y="434" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="1380" o="797979" X="749" c="1" N="" Y="795" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff0000" H="10" X="148" Y="774" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="928" H="305" X="1897" Y="647" T="8" /><S m="" P="0,0,0,0,0,0,0,0" L="10" o="eff00" H="1000" X="1441" N="" Y="0" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="400" X="140" N="" Y="600" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="1300" o="797979" H="10" X="785" N="" Y="405" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="1435" Y="450" T="12" /><S P="0,0,0,0,3,0,0,0" H="330" L="10" o="797979" X="859" c="1" Y="631" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="28" o="797979" H="10" X="784" Y="754" T="12" /><S P="0,0,0.3,0.2,3,0,0,0" H="297" L="10" o="797979" X="802" c="1" Y="610" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="674" o="797979" H="10" X="478" N="" Y="466" T="12" /><S P="0,0,1,0,0,0,0,0" H="330" L="10" o="797979" X="868" c="1" N="" Y="629" T="12" /><S P="0,0,0,0,0,0,0,0" L="10" o="797979" H="292" X="767" N="" Y="613" T="12" /><S m="" P="0,0,,,,0,0,0" L="70" H="30" X="632" Y="769" T="9" /><S P="0,0,0.3,0.2,0,0,0,0" L="71" o="0" H="10" X="631" Y="787" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="97" L="79" o="ffffff" H="88" c="4" Y="749" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="21" L="10" o="797979" X="352" c="1" Y="472" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="442" o="797979" H="10" X="361" N="" Y="607" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="203" o="0" H="88" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="224" o="797979" H="10" X="975" N="" Y="466" T="12" /><S P="0,0,4,0.2,0,0,0,0" L="294" o="797979" H="10" X="1288" N="" Y="466" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="199" o="ffffff" H="81" X="303" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="797979" H="100" X="57" Y="750" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="85" o="797979" H="10" X="94" Y="704" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="15" o="0" X="97" c="4" Y="749" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" H="10" L="13" o="2786b6" X="97" c="4" Y="749" T="13" /><S P="0,0,4,0.2,0,0,0,0" H="21" L="10" o="797979" X="1235" c="1" Y="481" T="12" /><S P="0,0,,,,0,0,0" L="171" H="10" X="347" Y="788" T="9" /><S P="0,0,,,,0,0,0" L="135" H="10" X="337" Y="600" T="9" /><S P="0,0,0.3,0.2,-30,0,0,0" L="325" H="133" X="1516" Y="507" T="8" /><S P="0,0,0.3,0.2,20,0,0,0" L="325" H="133" X="1543" Y="789" T="8" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="230" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="689" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="363" L="10" o="797979" H="21" c="1" Y="612" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="244" Y="666" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="32" o="0" H="10" X="245" Y="645" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="280" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="27" o="0" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="ffffff" H="10" X="350" Y="667" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="347" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="ffffff" H="54" X="328" Y="667" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="54" X="324" Y="667" T="12" /><S P="0,0,0.3,0.2,45,0,0,0" L="60" o="0" H="10" X="302" Y="667" T="12" /></S><D><DS Y="773" X="93" /><P X="391" P="1,0" Y="551" T="11" /><P X="213" P="1,0" Y="601" T="29" /><P X="329" P="1,0" C="46788e" Y="601" T="24" /><P X="442" P="1,0" Y="563" T="25" /><P X="441" P="1,0" Y="601" T="33" /><P X="213" P="1,0" Y="509" T="41" /><P X="517" P="1,0" Y="602" T="28" /></D><O /></Z></C>')
tfm.exec.setUIMapName("<font color='#000000'>SPACE <font color='#FFFFFF'>by Sourialp aidé de Jtmlucile</font></font>")
ui.addPopup(1, 0, " GAME OVER", nil, 150, 200, 500, 500, true)
tfm.exec.setGameTime (15, true)
tfm.exec.disableAutoTimeLeft (true)
tfm.exec.disableAutoNewGame (true)
maTable = { event="6"}
end
end
main()


(ONE LIFE)

/!\ N'oubliez pas que vous pouvez faire !help à chaque objectifs.


Les prochaines mise à jour potentielles sont:

_ une suite
_ peut être traduits si ce jeu plait à beaucoup de personnes


Correction des faux raccords/détails plus le mode hard et easy fait.

Dernière modification le 1484115960000
Tortuegreen
« Censeur »
1483784340000
    • Tortuegreen#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Je l'ai testé du début à la fin et c'est un joli petit casse-tête au début mais on se prends facilement au jeu.
J'aime bien le système des maps qui changent en même temps que l'histoire.

J'aimerais vous donner quelques conseils tout d'abord. En premier, corrigez toutes les fautes d'orthographes qui sont aussi présentes sur le topic. Ensuite, pourquoi "GAME OVER" à la fin ? Même en voulant dire "jeu terminé" c'est dans le sens "vous avez perdu" alors que je crois qu'on est sauvé à la fin donc pourquoi pas le remplacer par "Vous êtes sauvé !" ? Maintenant pour l'alignement du code, c'est pas trop ça même si les tabulations en triangle sont jolies aussi :P . Jtmlucile devrait comprendre de quoi je parle.

Pour résumé c'est pas mal pour un premier module et l'histoire est assez cohérente. Donc bravo à vous deux !
Athesdrake
« Citoyen »
1483787460000
    • Athesdrake#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Je tiens à préciser qu'il a tout fait. Je l'ai seulement aidé pour corriger des bugs ^^
Je lui avais dis pour le "GAME OVER" mais je n'ai pas insisté ... (il fait comme il veut hein ^^)
Il y a beaucoup de fautes d'orthographes, je vais t’envoyer une correction Sourialp ^^
La tabulation rend un code plus propre, mais elle n'est pas indispensable pour avoir un code correct. (sauf en Python)

Je tiens à te dire Bravo pour ce premier code. Il fonctionne bien et il y a peu de choses à améliorer.
Cubeman74
« Censeur »
1483788120000
    • Cubeman74#7337
    • Profil
    • Derniers messages
#4
  0
est-ce que c'est normal que on peut pas aller de l'autre coté?

http://img.atelier801.com/44a4f02f.png
Sourialp
« Citoyen »
1483788480000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
OUI XD merci, mais j'ai déjà vue des game over en fin de jeu mm si l'on a gagner (ex: taken) et j'aime bien se coté retro XD

_ pour les fautes d'ortho je suis désolé certaine mon échappées et je vais vite corriger cela

cubeman30 a dit :
est-ce que c'est normal que on peut pas aller de l'autre coté?

http://img.atelier801.com/44a4f02f.png




alors enfaites tu peux y aller en grimpant, mais la paroi est très glissante, il faut le coup de main (à moins que se soit un bug qui arrive au chargement de la carte, il faut alors relancer le jeu, c'est le seul moyen)

Dernière modification le 1483788720000
Cubeman74
« Censeur »
1483788780000
    • Cubeman74#7337
    • Profil
    • Derniers messages
#6
  0
j'ai essayé de WJ et de restart le module mais sa ne fonctionne pas :c
Sourialp
« Citoyen »
1483792860000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
je l'ai refait avec ma tribu, et non il marche bien, c'est juste que c'est dure ;)

Dernière modification le 1483797300000
Lunewie
« Sénateur »
1483797420000
    • Lunewie#9101
    • Profil
    • Derniers messages
    • Tribu
#8
  0
le module a l'air bien sympa mais j'arrive pas à passer l'épreuve du wj, dommage x)
bravo à toi tout de même !
Sourialp
« Citoyen »
1483798800000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
je vais faire une version en mode "easy" ;) et very easy

Dernière modification le 1483806060000
Cubeman74
« Censeur »
1483888740000
    • Cubeman74#7337
    • Profil
    • Derniers messages
#10
  0
j'ai enfin terminer le module et franchement je voudrais bien une suite :)

et bravo sourialp et jtmlucile pour votre module
Sourialp
« Citoyen »
1483890480000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
merci ;) mais la suite n'est pas pour tout de suite je pense faire une autre aventure... mais mieux réaliser (sans tout les pti défaut comme le début de ce module) mais ce n'est pas pour très longtemps non plus ;) je vous laisse la surprise...
Sydilenie
« Citoyen »
1483901040000
    • Sydilenie#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
quelque bug sur le mode hard

quand j'ai touché un murs sa ma tuer et les potion devient en flamme je saute sur les flammes 2 fois je meurs et je revis pas normal?
Sourialp
« Citoyen »
1483904520000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
enfaite tu revis à partir de l'explosion (donc précisément là où tu es au début) mais je vais essayer de faire quelque choses de plus jolie qui séparera bien ;)
Par contre le mur... sa je ne sais pas( si c'est lorsque tu saute lorsque tu est entre 2 sol sa te tue, c'est normal c'est comme sa, sinon XD juste un bug)

merci d'avoir prévenu
Lunewie
« Sénateur »
1483905600000
    • Lunewie#9101
    • Profil
    • Derniers messages
    • Tribu
#14
  0
elle peut pas revivre si elle joue en mode hard si ? x)
Yaewns
« Citoyen »
1483906800000
    • Yaewns#0000
    • Profil
    • Derniers messages
#15
  0
pq j'arrive pas a wj?
Evancal
« Censeur »
1483910520000
    • Evancal#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Le module a l'air super bien !
Je l'éseillerais demain.
Sourialp
« Citoyen »
1483945380000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
Voilà j'ai corrigé les défauts et fais le mode easy (je ne ferrais pas de "very easy", il faut aussi du chalenge.. :D )
Pour tous ceux qui n'arrivent pas à wj allez en mode easy car l'on peut wj mais c'est difficile.

Dernière modification le 1483945440000
Evancal
« Censeur »
1483965660000
    • Evancal#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
En faite c'est pas un jeu d'être fort en wj mais de trouvé des tactiques pour avoir des chemins faciles :p (enfin a la fin)
Sourialp
« Citoyen »
1483968480000
    • Sourialp#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
eu avec la 2ieme météorite ???
Evancal
« Censeur »
1483980360000
    • Evancal#0000
    • Profil
    • Derniers messages
    • Tribu
#20
  0
Oui ^^
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Module] SPACE
1 / 3 › »
© Atelier801 2018

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

Version 1.27