×

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
  • /
  • [Minigame] #AutoSurvive
[Minigame] #AutoSurvive
Epicsouris
« Citoyen »
1394241120000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#1
  2

http://i.imgur.com/hX086Jz.jpg?1
Hey there.
Today I present to you. A minigame I want to extend and develop further.
But since my paranoia kicked in and I didn't want anyone to steal this idea, I decided to put it up right now.

[R][U][L][E][S]
-So like any game, this game as rules, altought more like instructions. Cannons spawn at random places at the top then bounce off a trampoline and then come to hit you. You must dodge them otherwise YOU WILL DIE.

-You can play this game in the tribe house only. It is recommended that you play it multiplayer to see who is the best. It will not work if you play it solo but you must restart the lua everytime you play.


Current levels. (FROM 1-3)
Level 1 Level 2 Level 3 |INSANITY LEVELS
4877779 4988630 4867614 |1) 4877960

Script...
[quote=#Autosurvive!]

--Stats thanks to Abdeltif!
stats={}
Id = {}
pop = 0
keys = {71,70}
function eventNewPlayer(name)
stats[name]={won=0, played=0, lost=0, shaman=0, streak=0}
Id[name] = pop
for k,v in pairs(keys) do
tfm.exec.bindKeyboard(name, v, true, true)
end
end

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

function eventNewGame()
for k,v in pairs(stats) do
stats[k].played = stats[k].played + 1
end
for k,v in pairs(tfm.get.room.playerList) do
if v.isShaman then
stats[k].shaman = stats[k].shaman + 1
end
end
end

function eventPlayerWon(name)
stats[name].won=stats[name].won+1
stats[name].streak=stats[name].streak+1
end

function eventPlayerDied(name)
stats[name].lost=stats[name].lost+1
stats[name].streak=0
end
function eventKeyboard(name, key, down, x, y)
local form = [[
Wins : %d
Rounds played : %d
Current win streak : %d
]]
if key == 70 then
form = form:format(stats[name].won, stats[name].lost, stats[name].played, stats[name].shaman, stats[name].streak)
ui.addTextArea(Id[name], form, name, nil, 100, nil, nil, nil, nil, 0.923, true)

end
if key == 71 then
ui.removeTextArea(Id[name], name)

end
end

maps={4877779, 4867614, 4877960, 4988630}
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAllShamanSkills(true)
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.disableAutoShaman(true) tfm.exec.setGameTime(600)


function giveWin(p)
tfm.exec.giveCheese(p)
tfm.exec.playerVictory(p)
end

function eventPlayerDied(dp)
local c=0
local pname
local p
local _
for p,_ in pairs(tfm.get.room.playerList) do

if not(tfm.get.room.playerList

.isDead) then
c=c+1
pname=p
end
end
if(c==1) then
giveWin(pname)
ui.addTextArea(0,pname.." had survived last round!")
tfm.exec.newGame(maps[math.random(#maps)])
end
end





function eventLoop()


tfm.exec.addShamanObject(tfm.enum.shamanObject.cannon, math.random()*800, 30)
end



function eventNewGame()

tfm.exec.setShaman(n)
tfm.exec.setNameColor("Epicsouris", 0xFF00FF)
tfm.exec.setUIMapName("<CH><B>#AutoSurvive!</CH></B>")
tfm.exec.setGameTime(86400)
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.giveMeep(name)
end
end

function eventChatCommand(name,command)
if command=="mort" then
tfm.exec.killPlayer(name)
elseif command=="help" then
ui.addPopup(1, 0, "Welcome to #Autosurvive. Survive the endless Cannons. Press 'F' to see your stats! Press 'G' to close the stats. We currently have 4 maps. Created by Epicsouris with help from Abdeltif!", name, 586, 250, nil)


end
end


ui.addTextArea(1,"<a href='event:help'>Help",nil,760,360,30,nil)

function eventTextAreaCallback(id,n,cb)
if cb=="help" then
ui.addPopup(2,0,"Welcome to #Autosurvive. Survive the endless Cannons. Press 'F' to see your stats! Press 'G' to close the stats. We currently have 4 maps. Created by Epicsouris with help from Abdeltif!",n,586,250,nil,nil)
end
end

function eventSummoningEnd(name,objectType,x,y,angle,xSpeed,ySpeed,other)
if objectType~=0 then
tfm.exec.removeObject(other.id)
end
end

n="Epicsouris"
tfm.exec.setShaman(n)


n="Epicsouris"
system.bindMouse(n,true)

function eventMouse(name, x, y)
tfm.exec.addConjuration(x/10, y/10, 10000)
end

[/quote]
ADDED MAP SUBMISSIONS. LOOK IN FR FLAG
Created by Epicsouris. 2014. All rights reserved. WITH HUGE HELP BY TWEETIS, DEIMANTEXXXX AND EVERYONE WHO HAS HELPED ME. YOU GUYS ROCK!

Map submissions~

These map submissions are for Insanity mode only.
You must use the following XML.
For all the grounds that are there. DO NOT CHANGE THE CLOUD GROUNDS.
XML a dit :

<C><P /><Z><S><S H="449" P="0,0,0.3,2,0,0,0,0" L="69" X="-54" Y="222" T="8" /><S P="0,0,0.3,2,0,0,0,0" L="69" H="449" X="857" Y="215" T="8" /></S><D /><O /></Z></C>

Just look at some examples like the ones in deathmatch. Make sure it is aligned properly and looks nice. MAKE SURE THE GROUNDS YOU PUT MUST BE ABLE TO PASS CANNONS THRU. THAT MEANS THAT THEY SHOULD NOT COLLIDE WITH GROUNDS. SO TOGGLE IT OFF.
Rebornaddict
« Citoyen »
1394271180000
    • Rebornaddict#0000
    • Profil
    • Derniers messages
#2
  0
isn't this a little hard to survive ?
Epicsouris
« Citoyen »
1394312520000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#3
  0
CHANGELOG
V.0.0.1 Game released
V.0.0.2 Added Insanity mode
V.0.0.3 Updated Print box, Added Level 1, Updated normal code
V----- Failed to update. Lua failure. Restarted minigame
V.0.0.4 Tested in tribe house with tribemates, Loved it
V.0.0.5 Updated code to look more pretty
V.0.0.6 Added print box, UI text area, and Win cheese function
V.0.0.7 Has map rotations
V.0.0.8 Added TH functions/Admin commands just for me. Might release them
V.0.0.9 Changed code slightly
V.0.1.0 TESTED
V.0.1.1 Added new maps to rotation. Added Racing Mode
V.0.1.2 Added Mort command (for bugs so it would not crash)
V.0.1.3 Added Pastebin
V.0.1.4 Added forum banner. REMOVED RACING LEVEL. Adding after developpment
V.0.1.5 ADDED STATS!
V.0.1.6 Added New level 2 map! @4988630!!
V.0.1.7 Disabled Shaman.
V.0.1.8 Changed Stats keys. Edited help. Working on admin commands.
V.0.1.9 ADDED MEEP
V.0.2.0 Added Stats "streak". Changed Pastebin
V.0.2.1 Changed help position. Added timer.
V.0.2.2 Added Callback Feature so now you can access help easier
V.0.2.3 Added Admin commands Testing next time!
V.0.2.4 ADDED LATEST ADMIN COMMAND: conjuration
Epicsouris
« Citoyen »
1394330340000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#4
  0
NOW HAS LEVEL 1
Gabrijelr
« Citoyen »
1394481660000
    • Gabrijelr#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Great job!

Addicting game (probably because it's hard) and that's why I like it! I am looking forward for future updates.
Epicsouris
« Citoyen »
1395690960000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#6
  0
We need map submissions D:

dont forget this xml
XML has a dit :
<C><P /><Z><S><S H="449" P="0,0,0.3,2,0,0,0,0" L="69" X="-54" Y="222" T="8" /><S P="0,0,0.3,2,0,0,0,0" L="69" H="449" X="857" Y="215" T="8" /></S><D /><O /></Z></C>
Epicsouris
« Citoyen »
1396014840000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#7
  0
./room *#Autosurvive
Thanks to Tweetis for letting it run
Epicwolfgirl
« Citoyen »
1397595900000
    • Epicwolfgirl#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
GJ Epic, I like it.
Epicsouris
« Citoyen »
1397595900000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#9
  0
Thanks also
-UPDATED BANNER :D
Epicsouris
« Citoyen »
1401497700000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#10
  0
Script stopped working but fixed it. When it gets tested I might put chat messages command instead of uipopup
Williamkang
« Citoyen »
1402176600000
    • Williamkang#0000
    • Profil
    • Derniers messages
#11
  0
Rebornaddict a dit :
isn't this a little hard to survive ?

yes
Epicsouris
« Citoyen »
1402183020000
    • Epicsouris#0000
    • Profil
    • Derniers messages
#12
  0
Williamkang a dit :

yes

It is the whole part of it, the game is like survivor just the shaman is a generator/machine
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Minigame] #AutoSurvive
© Atelier801 2018

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

Version 1.27