[Minigame] #AutoSurvive |
Epicsouris « Citoyen » 1394241120000
| 2 | ||
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 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 : 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
| 0 | ||
isn't this a little hard to survive ? |
Epicsouris « Citoyen » 1394312520000
| 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
| 0 | ||
NOW HAS LEVEL 1 |
Gabrijelr « Citoyen » 1394481660000
| 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
| 0 | ||
We need map submissions D: dont forget this xml XML has a dit : |
Epicsouris « Citoyen » 1396014840000
| 0 | ||
./room *#Autosurvive Thanks to Tweetis for letting it run |
Epicwolfgirl « Citoyen » 1397595900000
| 0 | ||
GJ Epic, I like it. |
Epicsouris « Citoyen » 1397595900000
| 0 | ||
Thanks also -UPDATED BANNER :D |
Epicsouris « Citoyen » 1401497700000
| 0 | ||
Script stopped working but fixed it. When it gets tested I might put chat messages command instead of uipopup |
Williamkang « Citoyen » 1402176600000
| 0 | ||
Rebornaddict a dit : yes |
Epicsouris « Citoyen » 1402183020000
| 0 | ||
Williamkang a dit : It is the whole part of it, the game is like survivor just the shaman is a generator/machine |