Compare commits
5 Commits
54112a540b
...
0845729f2a
Author | SHA1 | Date |
---|---|---|
Zughy | 0845729f2a | |
Zughy | a8fa133ed5 | |
MisterE | a142d7f860 | |
MisterE | dc078ff05c | |
MisterE | b7a0546ad0 |
4
init.lua
4
init.lua
|
@ -8,6 +8,8 @@ quikbild.version = "05.29.2022.2"
|
||||||
quikbild.storage = minetest.get_mod_storage()
|
quikbild.storage = minetest.get_mod_storage()
|
||||||
arena_lib.register_minigame("quikbild", {
|
arena_lib.register_minigame("quikbild", {
|
||||||
prefix = "[QuikBild] ",
|
prefix = "[QuikBild] ",
|
||||||
|
name = "QuikBild",
|
||||||
|
icon = "magiccompass_quikbild.png",
|
||||||
show_minimap = false,
|
show_minimap = false,
|
||||||
show_nametags = true,
|
show_nametags = true,
|
||||||
time_mode = "incremental",
|
time_mode = "incremental",
|
||||||
|
@ -36,6 +38,7 @@ quikbild.storage = minetest.get_mod_storage()
|
||||||
state_time = 0,
|
state_time = 0,
|
||||||
artist = nil,
|
artist = nil,
|
||||||
word = '',
|
word = '',
|
||||||
|
has_built = {},
|
||||||
word_list = {},
|
word_list = {},
|
||||||
answer_list = {},
|
answer_list = {},
|
||||||
win_guesser = '',
|
win_guesser = '',
|
||||||
|
@ -46,7 +49,6 @@ quikbild.storage = minetest.get_mod_storage()
|
||||||
|
|
||||||
player_properties = {
|
player_properties = {
|
||||||
role = "",
|
role = "",
|
||||||
has_built = false,
|
|
||||||
score = 0,
|
score = 0,
|
||||||
lang = 1,
|
lang = 1,
|
||||||
kickvotes = 0,
|
kickvotes = 0,
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
sounds CC0, various authors
|
sounds CC0, various authors
|
||||||
|
|
||||||
|
magiccompass_quikbild.png - CC BY SA Zughy https://creativecommons.org/licenses/by-sa/4.0/
|
||||||
|
|
||||||
|
|
||||||
|
otherwise,
|
||||||
textures are or are released to the public domain
|
textures are or are released to the public domain
|
||||||
|
|
||||||
lua_csv is MIT, see its license
|
lua_csv is MIT, see its license
|
||||||
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 3, 29 June 2007
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
|
|
@ -60,26 +60,26 @@ end)
|
||||||
arena_lib.on_time_tick('quikbild', function(arena)
|
arena_lib.on_time_tick('quikbild', function(arena)
|
||||||
|
|
||||||
-- kick players who have been voted out
|
-- kick players who have been voted out
|
||||||
if arena.state ~= "game_over" and arena.in_celebration == false then
|
-- if arena.state ~= "game_over" and arena.in_celebration == false then
|
||||||
local num_players = 0
|
-- local num_players = 0
|
||||||
for pl_name,stats in pairs(arena.players) do
|
-- for pl_name,stats in pairs(arena.players) do
|
||||||
num_players = num_players + 1
|
-- num_players = num_players + 1
|
||||||
end
|
-- end
|
||||||
for pl_name,stats in pairs(arena.players) do
|
-- for pl_name,stats in pairs(arena.players) do
|
||||||
if stats.kickvotes > num_players/3 and num_players > 4 then
|
-- if stats.kickvotes > num_players/3 and num_players > 4 then
|
||||||
arena_lib.remove_player_from_arena(pl_name, 2)
|
-- arena_lib.remove_player_from_arena(pl_name, 2)
|
||||||
local msg = S("You were kicked by vote. Feel free to play again, but try not to be AFK during your turn, build letters, or tell players what your word is when you are the builder.")
|
-- local msg = S("You were kicked by vote. Feel free to play again, but try not to be AFK during your turn, build letters, or tell players what your word is when you are the builder.")
|
||||||
minetest.chat_send_player(pl_name,minetest.colorize("#7D7071",">> "..msg))
|
-- minetest.chat_send_player(pl_name,minetest.colorize("#7D7071",">> "..msg))
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
|
||||||
|
|
||||||
if arena.state == 'choose_artist' then
|
if arena.state == 'choose_artist' then
|
||||||
--choose the artist
|
--choose the artist
|
||||||
local artist_canidates = {}
|
local artist_canidates = {}
|
||||||
for pl_name,stats in pairs(arena.players) do
|
for pl_name,stats in pairs(arena.players) do
|
||||||
if stats.has_built == false then
|
if arena.has_built[pl_name] ~= true then
|
||||||
table.insert(artist_canidates,pl_name)
|
table.insert(artist_canidates,pl_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -129,7 +129,7 @@ arena_lib.on_time_tick('quikbild', function(arena)
|
||||||
|
|
||||||
local rand_art_idx = math.random(1,#artist_canidates)
|
local rand_art_idx = math.random(1,#artist_canidates)
|
||||||
arena.artist = artist_canidates[rand_art_idx]
|
arena.artist = artist_canidates[rand_art_idx]
|
||||||
arena.players[arena.artist].has_built = true --indicate that they were the artist
|
arena.has_built[arena.artist] = true --indicate that they were the artist
|
||||||
arena.state = 'build_think' --change the arena state so we dont run this code again
|
arena.state = 'build_think' --change the arena state so we dont run this code again
|
||||||
--send info messages
|
--send info messages
|
||||||
arena_lib.HUD_send_msg("broadcast", arena.artist, S('You are the Artist. Build the word you see'), 4 ,nil,0xFF0000)
|
arena_lib.HUD_send_msg("broadcast", arena.artist, S('You are the Artist. Build the word you see'), 4 ,nil,0xFF0000)
|
||||||
|
@ -140,9 +140,13 @@ arena_lib.on_time_tick('quikbild', function(arena)
|
||||||
|
|
||||||
-- give everyone except the artist helpful tools
|
-- give everyone except the artist helpful tools
|
||||||
local l_player = minetest.get_player_by_name(pl_name)
|
local l_player = minetest.get_player_by_name(pl_name)
|
||||||
l_player:hud_set_hotbar_itemcount(3)
|
l_player:hud_set_hotbar_itemcount(2)
|
||||||
|
|
||||||
for idx ,itemname in pairs({"quikbild:lang","quikbild:help","quikbild:kick"}) do
|
for idx ,itemname in pairs({
|
||||||
|
"quikbild:lang",
|
||||||
|
"quikbild:help",
|
||||||
|
--"quikbild:kick"
|
||||||
|
}) do
|
||||||
local item = ItemStack(itemname)
|
local item = ItemStack(itemname)
|
||||||
l_player:get_inventory():set_stack("main", idx, item)
|
l_player:get_inventory():set_stack("main", idx, item)
|
||||||
end
|
end
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 194 B |
|
@ -1,15 +1,15 @@
|
||||||
cheese,formaggio,queso,fromage,käse
|
cheese,formaggio,queso,fromage,käse
|
||||||
bone,osso,hueso,os,knochen
|
bone,osso,hueso,os,knochen
|
||||||
socks,calzini,calcetines,chaussettes,socken
|
socks,calzini,calcetines,chaussettes,socken
|
||||||
leaf,foglia,hoja,feuille,blatt
|
leaf,foglia,hoja,feuille,blatt
|
||||||
whale,balena,ballena,baleine,wal
|
whale,balena,ballena,baleine,wal
|
||||||
pie,torta,pastel,tarte,torte
|
pie,tortino,pastel,tarte,torte
|
||||||
shirt,camicia,camisa,chemise,hemd
|
shirt,camicia,camisa,chemise,hemd
|
||||||
orange,arancione,naranja,orange,orange
|
orange,arancia,naranja,orange,orange
|
||||||
lollipop,lecca-lecca,piruleta,sucette,lollipop
|
lollipop,lecca-lecca,piruleta,sucette,lollipop
|
||||||
mouth,bocca,boca,bouche,mund
|
mouth,bocca,boca,bouche,mund
|
||||||
snake,serpente,serpiente,serpent,schlange
|
snake,serpente,serpiente,serpent,schlange
|
||||||
jar,vaso,tarro,bocal,krug
|
jar,vasetto,tarro,bocal,krug
|
||||||
lamp,lampada,lámpara,lampe,lampe
|
lamp,lampada,lámpara,lampe,lampe
|
||||||
kite,aquilone,cometa,cerf-volant,drache
|
kite,aquilone,cometa,cerf-volant,drache
|
||||||
monkey,scimmia,mono,singe,affe
|
monkey,scimmia,mono,singe,affe
|
||||||
|
@ -28,7 +28,7 @@ cow,mucca,vaca,vache,kuh
|
||||||
lips,labbra,labios,lèvres,lippen
|
lips,labbra,labios,lèvres,lippen
|
||||||
worm,verme,gusano,ver,wurm
|
worm,verme,gusano,ver,wurm
|
||||||
sun,sole,sol,soleil,sonne
|
sun,sole,sol,soleil,sonne
|
||||||
basketball,pallone da basket,baloncesto,basket-ball,basketball
|
basketball,pallacanestro,baloncesto,basket-ball,basketball
|
||||||
hat,cappello,sombrero,chapeau,hut
|
hat,cappello,sombrero,chapeau,hut
|
||||||
bus,autobus,autobús,bus,bus
|
bus,autobus,autobús,bus,bus
|
||||||
chair,sedia,silla,chaise,stuhl
|
chair,sedia,silla,chaise,stuhl
|
||||||
|
@ -61,7 +61,7 @@ nose,naso,nariz,nez,nase
|
||||||
house,casa,casa,maison,haus
|
house,casa,casa,maison,haus
|
||||||
beach,spiaggia,playa,plage,strand
|
beach,spiaggia,playa,plage,strand
|
||||||
airplane,aereo,avión,avion,flugzeug
|
airplane,aereo,avión,avion,flugzeug
|
||||||
inchworm,verme,inchworm,vermisseau,inchwurm
|
moth,falena,polilla,papillon de nuit,motte
|
||||||
light,luce,luz,lumière,licht
|
light,luce,luz,lumière,licht
|
||||||
turtle,tartaruga,tortuga,tortue,schildkröte
|
turtle,tartaruga,tortuga,tortue,schildkröte
|
||||||
ball,palla,bola,balle,kugel
|
ball,palla,bola,balle,kugel
|
||||||
|
@ -77,11 +77,11 @@ alligator,alligatore,caimán,alligator,alligator
|
||||||
bell,campana,campana,cloche,glocke
|
bell,campana,campana,cloche,glocke
|
||||||
robot,robot,robot,robot,roboter
|
robot,robot,robot,robot,roboter
|
||||||
smile,sorriso,sonrisa,sourire,lächeln
|
smile,sorriso,sonrisa,sourire,lächeln
|
||||||
bike,bicicletta,bicicleta,vélo,fahrrad
|
bike,bici,bicicleta,vélo,fahrrad
|
||||||
rocket,razzo,cohete,fusée,rakete
|
rocket,razzo,cohete,fusée,rakete
|
||||||
dinosaur,dinosauro,dinosaurio,dinosaure,dinosaurier
|
dinosaur,dinosauro,dinosaurio,dinosaure,dinosaurier
|
||||||
dog,cane,perro,chien,hund
|
dog,cane,perro,chien,hund
|
||||||
bunny,coniglietto,conejo,lapin,hase
|
bunny,coniglio,conejo,lapin,hase
|
||||||
cookie,biscotto,galleta,cookie,keks
|
cookie,biscotto,galleta,cookie,keks
|
||||||
bowl,ciotola,tazón,bol,schale
|
bowl,ciotola,tazón,bol,schale
|
||||||
door,porta,puerta,porte,tür
|
door,porta,puerta,porte,tür
|
||||||
|
@ -107,7 +107,6 @@ hockey,hockey,hockey,hockey,eishockey
|
||||||
plane,aereo,avión,avion,flugzeug
|
plane,aereo,avión,avion,flugzeug
|
||||||
pepper,pepe,pimienta,poivre,pfeffer
|
pepper,pepe,pimienta,poivre,pfeffer
|
||||||
key,chiave,llave,clé,schlüssel
|
key,chiave,llave,clé,schlüssel
|
||||||
iPad,iPad,iPad,iPad,ipad
|
|
||||||
whisk,frusta,batidor,fouet,schneebesen
|
whisk,frusta,batidor,fouet,schneebesen
|
||||||
cake,torta,pastel,gâteau,kuchen
|
cake,torta,pastel,gâteau,kuchen
|
||||||
circus,circo,circo,cirque,zirkus
|
circus,circo,circo,cirque,zirkus
|
||||||
|
@ -117,12 +116,11 @@ cowboy,cowboy,vaquero,cow-boy,cowboy
|
||||||
password,password,contraseña,mot de passe,passwort
|
password,password,contraseña,mot de passe,passwort
|
||||||
bicycle,bicicletta,bicicleta,vélo,fahrrad
|
bicycle,bicicletta,bicicleta,vélo,fahrrad
|
||||||
skate,pattino,patín,patin,schlittschuhlaufen
|
skate,pattino,patín,patin,schlittschuhlaufen
|
||||||
electric,elettrico,eléctrico,électrique,elektrisch
|
|
||||||
lightsaber,spada laser,sable de luz,sabre laser,lichtschwert
|
lightsaber,spada laser,sable de luz,sabre laser,lichtschwert
|
||||||
nature,natura,naturaleza,nature,natur
|
nature,natura,naturaleza,nature,natur
|
||||||
shallow,superficiale,poco profundo,peu profond,seicht
|
shallow,superficiale,poco profundo,peu profond,seicht
|
||||||
toast,brindisi,tostado,toast,toast
|
toast,brindisi,tostado,toast,toast
|
||||||
outside,esterno,exterior,extérieur,draußen
|
outside,fuori,exterior,extérieur,draußen
|
||||||
america,America,América,amerique,amerika
|
america,America,América,amerique,amerika
|
||||||
gingerbread,pan di zenzero,pan de jengibre,pain d'épice,lebkuchen
|
gingerbread,pan di zenzero,pan de jengibre,pain d'épice,lebkuchen
|
||||||
man,uomo,hombre,homme,mann
|
man,uomo,hombre,homme,mann
|
||||||
|
@ -135,7 +133,7 @@ popsicle,ghiacciolo,paleta,popsicle,eis am stiel
|
||||||
knee,ginocchio,rodilla,genou,knie
|
knee,ginocchio,rodilla,genou,knie
|
||||||
pineapple,ananas,piña,ananas,ananas
|
pineapple,ananas,piña,ananas,ananas
|
||||||
tusk,zanna,colmillo,défense,stoßzahn
|
tusk,zanna,colmillo,défense,stoßzahn
|
||||||
sprinkler,spruzzatore,aspersor,arroseur,sprinkleranlage
|
sprinkler,irrigatore,aspersor,arroseur,sprinkleranlage
|
||||||
money,denaro,dinero,argent,geld
|
money,denaro,dinero,argent,geld
|
||||||
spool,rocchetto,carrete,bobine,spule
|
spool,rocchetto,carrete,bobine,spule
|
||||||
lighthouse,faro,faro,phare,leuchtturm
|
lighthouse,faro,faro,phare,leuchtturm
|
||||||
|
@ -168,18 +166,17 @@ cello,violoncello,violonchelo,violoncelle,cello
|
||||||
rain,pioggia,lluvia,pluie,regen
|
rain,pioggia,lluvia,pluie,regen
|
||||||
clam,vongola,almeja,palourde,muschel
|
clam,vongola,almeja,palourde,muschel
|
||||||
pelican,pellicano,pelícano,pélican,pelikan
|
pelican,pellicano,pelícano,pélican,pelikan
|
||||||
stingray,pastinaca,raya,raie,stechrochen
|
stingray,manta,raya,raie,stechrochen
|
||||||
sheep,pecora,oveja,mouton,schaf
|
sheep,pecora,oveja,mouton,schaf
|
||||||
stoplight,fanalino di coda,semáforo,feu de signalisation,ampel
|
traffic light,semaforo,semáforo,feu de signalisation,ampel
|
||||||
coconut,noce di cocco,coco,noix de coco,kokosnuss
|
coconut,noce di cocco,coco,noix de coco,kokosnuss
|
||||||
crib,presepe,cuna,berceau,krippe
|
crib,culla,cuna,berceau,krippe
|
||||||
hippo,ippopotamo,hipopótamo,hippopotame,nilpferd
|
hippo,ippopotamo,hipopótamo,hippopotame,nilpferd
|
||||||
ring,anello,anillo,anneau,ring
|
ring,anello,anillo,anneau,ring
|
||||||
video,video,video,vidéo,video
|
video,video,video,vidéo,video
|
||||||
snowflake,fiocco di neve,copo de nieve,flocon de neige,schneeflocke
|
snowflake,fiocco di neve,copo de nieve,flocon de neige,schneeflocke
|
||||||
frame,cornice,marco,cadre,rahmen
|
frame,cornice,marco,cadre,rahmen
|
||||||
gel,gel,gel,gel,gel
|
gel,gel,gel,gel,gel
|
||||||
warmers,scaldini,calentadores,chaufferettes,wärmer
|
|
||||||
paint,vernice,pintura,peinture,farbe
|
paint,vernice,pintura,peinture,farbe
|
||||||
bath,bagno,baño,bain,bad
|
bath,bagno,baño,bain,bad
|
||||||
drill,trapano,taladro,perceuse,bohrer
|
drill,trapano,taladro,perceuse,bohrer
|
||||||
|
@ -211,7 +208,7 @@ bow,fiocco,arco,arc,schleife
|
||||||
flag,bandiera,bandera,drapeau,fahne
|
flag,bandiera,bandera,drapeau,fahne
|
||||||
fork,forchetta,tenedor,fourchette,gabel
|
fork,forchetta,tenedor,fourchette,gabel
|
||||||
tape,nastro adesivo,cinta,ruban adhésif,band
|
tape,nastro adesivo,cinta,ruban adhésif,band
|
||||||
tissue,tessuto,tejido,tissu,taschentuch
|
tissue,fazzoletto,tejido,tissu,taschentuch
|
||||||
balloon,palloncino,globo,ballon,luftballon
|
balloon,palloncino,globo,ballon,luftballon
|
||||||
lace,pizzo,encaje,dentelle,spitze
|
lace,pizzo,encaje,dentelle,spitze
|
||||||
needle,ago,aguja,aiguille,nadel
|
needle,ago,aguja,aiguille,nadel
|
||||||
|
@ -222,13 +219,11 @@ note,nota,nota,note,zettel
|
||||||
candy,caramella,caramelo,bonbons,bonbon
|
candy,caramella,caramelo,bonbons,bonbon
|
||||||
tooth paste,dentifricio,pasta de dientes,dentifrice,zahnpasta
|
tooth paste,dentifricio,pasta de dientes,dentifrice,zahnpasta
|
||||||
sharpie,temperino,sharpie,sharpie,edding
|
sharpie,temperino,sharpie,sharpie,edding
|
||||||
twister,twister,twister,twister,twister
|
|
||||||
pencil,matita,lápiz,crayon,bleistift
|
pencil,matita,lápiz,crayon,bleistift
|
||||||
bookmark,segnalibro,marcapáginas,marque-page,lesezeichen
|
bookmark,segnalibro,marcapáginas,marque-page,lesezeichen
|
||||||
spoon,cucchiaio,cuchara,cuillère,löffel
|
spoon,cucchiaio,cuchara,cuillère,löffel
|
||||||
outlet,presa di corrente,salida,sortie,steckdose
|
|
||||||
seatbelt,cintura di sicurezza,cinturón de seguridad,ceinture de sécurité,sicherheitsgurt
|
seatbelt,cintura di sicurezza,cinturón de seguridad,ceinture de sécurité,sicherheitsgurt
|
||||||
mouse pad,tappetino per mouse,alfombrilla de ratón,tapis de souris,mauspad
|
mouse pad,tappetino del mouse,alfombrilla de ratón,tapis de souris,mauspad
|
||||||
nail,chiodo,clavo,clou,nagel
|
nail,chiodo,clavo,clou,nagel
|
||||||
cork,sughero,corcho,liège,kork
|
cork,sughero,corcho,liège,kork
|
||||||
stopsign,segnale di stop,signo de parada,panneau d'arrêt,stoppschild
|
stopsign,segnale di stop,signo de parada,panneau d'arrêt,stoppschild
|
||||||
|
@ -237,11 +232,10 @@ rubberband,elastico,banda de goma,élastique,gummiband
|
||||||
zipper,cerniera,cremallera,fermeture à glissière,reißverschluss
|
zipper,cerniera,cremallera,fermeture à glissière,reißverschluss
|
||||||
canvas,tela,lona,toile,leinwand
|
canvas,tela,lona,toile,leinwand
|
||||||
sponge,spugna,esponja,éponge,schwamm
|
sponge,spugna,esponja,éponge,schwamm
|
||||||
eraser,gomma da cancellare,goma de borrar,gomme,radiergummi
|
eraser,gomma,goma de borrar,gomme,radiergummi
|
||||||
bottle,bottiglia,botella,bouteille,flasche
|
bottle,bottiglia,botella,bouteille,flasche
|
||||||
candle,candela,vela,bougie,kerze
|
candle,candela,vela,bougie,kerze
|
||||||
lip,labbro,labio,lèvre,lippe
|
buckle,fibbia,hebilla,bouclier,buckle
|
||||||
buckel,fibbia,hebilla,bouclier,buckel
|
|
||||||
shovel,pala,pala,pelle,schaufel
|
shovel,pala,pala,pelle,schaufel
|
||||||
slipper,ciabatta,zapatilla,pantoufle,pantoffel
|
slipper,ciabatta,zapatilla,pantoufle,pantoffel
|
||||||
cable,cavo,cable,câble,kabel
|
cable,cavo,cable,câble,kabel
|
||||||
|
@ -249,8 +243,8 @@ ice,ghiaccio,hielo,glace,eis
|
||||||
credit card,carta di credito,tarjeta de crédito,carte de crédit,kreditkarte
|
credit card,carta di credito,tarjeta de crédito,carte de crédit,kreditkarte
|
||||||
nail clippers,tagliaunghie,cortaúñas,coupe-ongles,nagelknipser
|
nail clippers,tagliaunghie,cortaúñas,coupe-ongles,nagelknipser
|
||||||
tweezers,pinzette,pinzas,pince à épiler,pinzette
|
tweezers,pinzette,pinzas,pince à épiler,pinzette
|
||||||
hair tie,cravatta per capelli,lazo para el pelo,attache cheveux,haargummi
|
hair tie,elastico per capelli,lazo para el pelo,attache cheveux,haargummi
|
||||||
charger,caricabatterie,cargador,chargeur,ladegerät
|
charger,caricatore,cargador,chargeur,ladegerät
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
Loading…
Reference in New Issue