Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ PICTIONARY
- Shamans currently have to select arrows and press 'c' to get an anchor, will be changed when anchors come out for the api
- Make floor drop and kill all alive mice?
- ]]--
- debug.disableEventLog(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.newGame(3809991)
- words = {'cat','sun','cup','ghost','flower','pie','cow','banana','snowflake','bug','book','jar','snake','light','tree','lips','apple','slide','socks','smile','swing','coat','shoe','water','heart','hat','ocean','kite','dog','mouth','milk','duck','eyes','skateboard','bird','boy','apple','person','girl','mouse','ball','house','bed','whale','jacket','shirt','hippo','beach','egg','face','cookie','cheese','cone','drum','circle','spoon','worm','web','horse','door','song','trip','backbone','bomb','round','treasure','garbage','park','pirate','ski','state','whistle','palace','baseball','coal','queen','dominoes','photograph','computer','hockey','aircraft','hot dog','salt','pepper','key','iPad','whisk','frog','lawnmower','mattress','pinwheel','cake','circus','battery','mailman','cowboy','password','bicycle','skate','electricity','lightsaber','deep','spring','nature','shallow','toast','outside','America','roller blades','gingerbread man','bowtie','half','spare','wax','light bulb','platypus','music'}
- wordmax = table.getn(words)
- currentWord = words[math.random(1,#words)]
- function eventNewGame()
- tfm.exec.setGameTime(150, true)
- points = {}
- for p in pairs(tfm.get.room.playerList) do
- points[p] = 0
- tfm.exec.setPlayerScore(p, 0, false)
- end
- tfm.exec.chatMessage('<ROSE>A new round has started!')
- currentWord = words[math.random(1,#words)]
- guessed = false
- for playerName,player in pairs(tfm.get.room.playerList) do
- if(player.isShaman) then
- tfm.exec.chatMessage('<ROSE>You have to draw a <N><b>'..currentWord..'</b>. Make sure to move so you don\'t automatically die!',playerName)
- end
- end
- end
- function eventNewPlayer(playerName)
- tfm.exec.chatMessage('<J>WELCOME TO PICTIONARY! Type !help for info!',playerName)
- end
- function eventChatCommand(playerName,command)
- if command == 'help' then
- tfm.exec.chatMessage('<J>Welcome to Pictionary!',playerName)
- tfm.exec.chatMessage('<J>Every round the shaman is given a word that they must draw, and the mice have to guess it.',playerName) -- no, this is fine. im a nub at this.. remember
- tfm.exec.chatMessage('<J>As a mouse, type <N>!guess <J>into the chat, \'guess\' being your guess as to what the shaman is drawing.',playerName)
- end
- if (command == currentWord) and guessed == false then
- tfm.exec.chatMessage('<ROSE>' .. playerName .. ' guessed correctly! The word was ' .. currentWord)
- tfm.exec.setPlayerScore(playerName, 3, true)
- tfm.exec.movePlayer(playerName,400,200,0,0,0,0)
- tfm.exec.setGameTime(15, true)
- guessed = true
- end
- end
- function eventLoop(time,timeRemaining)
- if timeRemaining <= 5000 then
- tfm.exec.newGame(3809991)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment