- Continuem desenvolupant l'història...

This commit is contained in:
2024-02-15 17:52:13 +01:00
parent 042e071ef2
commit 6332fa6d25
5 changed files with 139 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ levels["repro"]={
actors.add({name="comp",x=3,y=6,o="d",gfx={x=96,y=0}})
actors.add({name="impresora",x=5,y=6,o="d",gfx={x=176,y=16}})
actors.add({name="currante1",x=9,y=11,o="d",gfx={x=16,y=48}})
actors.add({name="currante1",x=9,y=11,o="d",gfx={x=128,y=48}})
actors.add({name="currante2",x=4,y=5,o="d",gfx={x=16,y=80}})
switches.add({x=9,y=16,w=1,h=1,action=
@@ -35,6 +35,7 @@ levels["repro"]={
switches.add({x=15,y=13,w=1,h=1,action=
function()
if not objects.collected("moneda") then table.insert(objects.list, "moneda") end
local hero = actors.search(actors.main.name)
if hero.o=="u" then
scene.start({
@@ -52,13 +53,46 @@ levels["repro"]={
currante1_action=function()
local hero = actors.search(actors.main.name)
scene.start({
function() balloon.show("BON DIA!",12,"currante1",false,{x=6,w=7,h=1}) end,
function() balloon.show("QUINS APUNTES\nNECESSITES?",12,"currante1",false,{x=6,w=8,h=2}) end,
function() balloon.show("NO TINC NI IDEA",2,"jailer",true,{x=5,w=10,h=1}) end,
function() balloon.show("POS MAL ANEM...",12,"currante1",false,{x=5,w=10,h=1}) end,
function() balloon.show("TORNA QUAN SAPIGUES\nEL QUE VOLS",12,"currante1",false,{x=4,w=12,h=2}) end,
})
flags.apuntes=1
if not flags.apuntes then
scene.start({
function() balloon.show("BON DIA!",12,"currante1",false,{x=6,w=7,h=1}) end,
function() balloon.show("QUINS APUNTES\nNECESSITES?",12,"currante1",false,{x=6,w=8,h=2}) end,
function() balloon.show("NO TINC NI IDEA",2,"jailer",true,{x=5,w=10,h=1}) end,
function() balloon.show("POS MAL ANEM...",12,"currante1",false,{x=5,w=10,h=1}) end,
function() balloon.show("TORNA QUAN SAPIGUES\nEL QUE VOLS",12,"currante1",false,{x=4,w=12,h=2}) end,
})
else
if not objects.collected("moneda") then
scene.start({
function() balloon.show("BON DIA!",12,"currante1",false,{x=6,w=7,h=1}) end,
function() balloon.show("QUINS APUNTES\nNECESSITES?",12,"currante1",false,{x=6,w=8,h=2}) end,
function() balloon.show("VULL ELS DE CMC",2,"jailer",true,{x=5,w=10,h=1}) end,
function() balloon.show("PERFECTE!\nVAL 1 MONEDA!",12,"currante1",false,{x=5,w=9,h=2}) end,
function() balloon.show("MONEDA!?\nNO DUC DINERS!",2,"jailer",true,{x=5,w=9,h=2}) end,
function() balloon.show("HO SENT MOLT, PERO\nSENSE PASTA NO HI HA\nAPUNTES...",12,"currante1",false,{x=3,w=12,h=3}) end,
})
else
scene.start({
function() balloon.show("BON D...\nTU ALTRA VEGADA?",12,"currante1",false,{x=4,w=10,h=2}) end,
function() balloon.show("QUINS APUNTES\nVOLIES?",12,"currante1",false,{x=6,w=8,h=2}) end,
function() balloon.show("ELS DE CMC!",2,"jailer",true,{x=6,w=8,h=1}) end,
function() balloon.show("PERO VALEN\n1 MONEDA...",12,"currante1",false,{x=5,w=8,h=2}) end,
function() balloon.show("ACI TENS!",2,"jailer",true,{x=6,w=7,h=1}) end,
function() objects.leave("moneda") scene.cont() end,
function() balloon.show("PERFECTE!\nDONAM UN SEGON...",12,"currante1",false,{x=3,w=11,h=2}) end,
function() actors.search("currante1").path={pos=0,route='ulluuur'} end,
function() wait.start(1) end,
function() actors.search("currante1").path={pos=0,route='uur'} end,
function() wait.start(1.5) end,
function() balloon.show("AH!\nACÍ ESTÀN",12,"currante1",true,{x=4,w=7,h=2}) end,
function() actors.search("currante1").path={pos=0,route='dddddrrd'} end,
function() balloon.show("ACÍ TENS!\nEL 1015 D'INFORMÀTICA",12,"currante1",false,{x=3,w=13,h=2}) end,
function() objects.collect("apuntes") end,
})
end
end
end,
}