×

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
  • /
  • [Unofficial Module] #Iced!
1 / 9 › »
[Unofficial Module] #Iced!
Mousechris
« Censeur »
1382850900000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
http://i.imgur.com/7tegnf3.png
Please note this minigame is not yet official YET.


http://i.imgur.com/ZiRRvqZ.png?1
• What is #Iced!?

#Iced! is a unofficial minigame where you get to play as a mouse that constantly freezes over! It's winter and that means this little guy needs to find some food! Go to the cheese to get some food for the winter. But what's this? Icey Water, Snow, Ice, and Stone Walls are in your way! D: Fine the way to the cheese by climbing over of #Iced! mice, or by slipping through cracks in walls!

• How can I play it?
You can play #Iced! by putting in the LUA script here.

a dit :
http://pastebin.com/RZeXG4fQ

or

print("<N>Hello there! <font color='#89A7F5'>#Iced<N> is an unofficial minigame that can currently only be played in the tribe house. Please support <font color='#89A7F5'>#Iced!")

maps={4446416,4414828,4431469,4433446,4413886}
players={}

function returnMouseCount()
count=0
for player in pairs(tfm.get.room.playerList) do
if(tfm.get.room.playerList[player].isDead==false) then
count=count+1
elseif(players[player].id) then
count=count+1
end
end
return count
end

function eventLoop(time,remaining)
returnMouseCount()
if(remaining<=0 or count==0) then
newRound()
end
playerList=tfm.get.room.playerList
end

function newRound()
tfm.exec.newGame(maps[math.random(#maps)])
end

function eventNewGame()
tfm.exec.snow()
tfm.exec.setUIMapName("<N>Welcome to <font color='#89A7F5'>#Iced! <N>Press <font color='#89A7F5'>Z<N> to turn into an Ice Cube! <N>Press <font color='#89A7F5'>X<N> to turn into an Ice Plank! Have fun! \n")
end

function eventNewPlayer(name)
ui.addTextArea(1,"<p align='center'><b><N>Hello there! <font color='#89A7F5'>#Iced!<N> is an unofficial minigame that can currently only be played in the tribe house. Please support <font color='#89A7F5'>#Iced!</b></p>", name, 5,25, 790, 25, 0x000000, 0x000000, 0)
tfm.exec.bindKeyboard(name,87,true,true)
tfm.exec.bindKeyboard(name,88,true,true)
players[name]={timestamp=os.time()}
end

function eventKeyboard(name,key,down,x,y)
if players[name].timestamp < os.time()-800 then
if(key==87 and playerList[name].isDead==false) then
tfm.exec.killPlayer(name)
local id=tfm.exec.addShamanObject(54,x,y)
players[name]={id=id,x=x,y=y}
elseif(key==88 and playerList[name].isDead==false) then
tfm.exec.killPlayer(name)
local id=tfm.exec.addShamanObject(45,x,y)
players[name]={id=id,x=x,y=y}
else
if(players[name].x and players[name].y and players[name].id) then
local id=players[name].id
tfm.exec.respawnPlayer(name)
players[name].x=tfm.get.room.objectList[id].x
players[name].y=tfm.get.room.objectList[id].y
if(players[name].x==0) then tfm.exec.killPlayer(name)
else
tfm.exec.movePlayer(name,players[name].x,players[name].y)
end
tfm.exec.removeObject(id)
players[name].id=nil
end
end
players[name].timestamp=os.time()
end
end


function main()
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame(maps[math.random(#maps)])
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
end

main()

function eventPlayerWon(name)
players[name].x=nil
players[name].y=nil
players[name].id=nil
end

function eventPlayerGetCheese(name)
tfm.exec.playerVictory(name)
end

The Mouse


http://i.imgur.com/mPvanco.png?1
The Mouse is a 30x30 object that you can move. It CANNOT go into Icey Water and can freeze over into a Ice Cube or a Ice Plank.

The Ice Cube


http://i.imgur.com/nYLbB7U.png
The Ice Cube is a 60x60 object that cannot move unless pushed. It CAN go into Icey Water. You can turn into an Ice Cube by pressing Z.

The Ice Plank


http://i.imgur.com/hoHRNTc.png
The Ice Cube is a 100x10 object that cannot move unless pushed. It CAN go into Icey Water. You can turn into an Ice Plank by pressing X.

• Where can I play it?
For the momment only in your Tribe House. But I plan on doing everything I can to get a LUA coder to make it an Official Minigame.

• Screenshots
None for the momment

• Can I submit a map for it?
Yes! We only have 3 maps so far and one map maker is not enough! Please feel free to submit a map here untill a submission thread is made!

Rules you should follow when submitting maps
Remember the size of the objects being played (30x30, 60x60, 100x10)

All water MUST have an invisable ground on it preventing mice from entering and only ground based items from entering. This is called Icey Water.

There cannot be a way to die! Please make sure all ways of dieing are blocked off!

Ice Items can't move while being played unless pushed, so use gravity to your advantage, and think creatively!

Please place a 60x60 cloud/invis ground at the mice spawn so mice don't get pushed around! Look at the example maps to get a better idea on this.

Remember Ice Items have 0 friction, while mice have ~0.3.

(Example maps)
@4414828
@4431469
@4433446

• Credits!
Mousechris for original idea and putting everything together
Issey for extreme help with pretty much everything, and fixing bugs
Shamousey for getting the main few coding figured out
Jordynl for being such a kickass coder and cleaning up the script!
Mousechris
« Censeur »
1382850900000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
• Change Log
-Posted thread for #Iced! at 26/10/13
-
-
-

• Maps Added!
@4414828
@4431469
@4433446

• To Do List
[D] = Done
[N] = Not Done

[N] Make a Official Map Submmisions thread
[N] Make a room for it
[N] Gather more then 20 maps
[D] Make a banner

• Reviews on the Minigame

[Brkeeee] i like this! good job chris
Michealjacki
« Citoyen »
1382851920000
    • Michealjacki#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
hard to play o.o
Mousechris
« Censeur »
1382852040000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Michealjacki a dit :
hard to play o.o

You'l need map powers

type /lua in the tribe house and put in the pastebin code in the OP
Michealjacki
« Citoyen »
1382852040000
    • Michealjacki#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
oh i know lua
Brkeeee
« Censeur »
1382853720000
    • Brkeeee#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
i like this! good job chris
Mousechris
« Censeur »
1382854620000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Brkeeee a dit :
i like this! good job chris

thanks :) been working hard

edit: something isn't right with the script, checking it out

edit 2: seems it's just on my end, issey can play the script just fine???
Championrs
« Citoyen »
1382856660000
    • Championrs#0000
    • Profil
    • Derniers messages
#8
  0
Greaat Gj mouse
Jsilv
« Citoyen »
1382860800000
    • Jsilv#0000
    • Profil
    • Derniers messages
#9
  0
Woahhhh, cool minigame omg
Michealjacki
« Citoyen »
1382861940000
    • Michealjacki#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
now easy o yeah
Gulimon
« Citoyen »
1382862060000
    • Gulimon#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
why not work
Michealjacki
« Citoyen »
1382862720000
    • Michealjacki#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
u need /lua
Godlessboy
« Censeur »
1382865360000
    • Godlessboy#2478
    • Profil
    • Derniers messages
    • Tribu
#13
  0
So Good, Gj! :)
Derpysoul
« Citoyen »
1382866800000
    • Derpysoul#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Mousechris a dit :
Jordynl for being such a kickass coder and cleaning up the script!

Why do you make Jordy sound so bad :(
Hophipmice
« Citoyen »
1382870640000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Derpysoul a dit :
Why do you make Jordy sound so bad :(

That's not making any sound bad, but rather makes them sound good >.>
Papero
« Citoyen »
1382870880000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Hophipmice a dit :
That's not making any sound bad, but rather makes them sound good &gt;.&gt;

Depends on how one sees the words

this minigame is intriguing
Safwanrockz
« Censeur »
1382873460000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#17
  0
I liked this game :o in fact I made a banner for it~

http://i.imgur.com/7tegnf3.png
Hope you like it o/
Hophipmice
« Citoyen »
1382873820000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds.
[•] You can't call this function [tfm.exec.newGame] more than once per 3 seconds

Anyway, I like the script, It's amazing.
Leafileaf
« Citoyen »
1382880360000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
The game has an error. There is a chance that "
[•] Runtime Error : transformice.lua:11: attempt to index ? (a nil value)" on first load. Besides, the maps JUST aren't played :P until the timer reaches 0, that is.
Mikuhl
« Citoyen »
1382889720000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#20
  0
You should add
a dit :

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

To make everyone currently in the room also bind their keys. Because right now it only works for new players.

Also the map does not start instantly. You can do this by calling newRound() after you define it.
a dit :

function newRound()
tfm.exec.newGame(maps[math.random(#maps)])
end
newRound()

AutoNewGame should be disabled because the round ends when you transform with only one person.
a dit :

tfm.exec.disableAutoNewGame(true)
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Unofficial Module] #Iced!
1 / 9 › »
© Atelier801 2018

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

Version 1.27