[NEW] Dialeg funcionant.

This commit is contained in:
2026-04-22 22:30:34 +02:00
parent a811ece34f
commit ea19c43865
4 changed files with 68 additions and 12 deletions

View File

@@ -69,7 +69,8 @@ function stages.stage1_init()
table.insert( actors, caco.new(74,3,2,false) )
table.insert( actors, caco.new(75,3,2,false) )
table.insert( actors, zombie.new(2, 3, 3,false) )
local zombie1 = zombie.new(2, 3, 3,false)
table.insert( actors, zombie1 )
table.insert( actors, zombie.new(2, 4, 3,true) )
table.insert( actors, zombie.new(2, 5, 3,false) )
table.insert( actors, zombie.new(3, 3, 3,true) )
@@ -84,7 +85,8 @@ function stages.stage1_init()
table.insert( actors, zombie.new(46, 3, 3,false) )
table.insert( actors, zombie.new(54, 3, 3,false) )
table.insert( actors, zombie.new(68, 3, 3,false) )
table.insert( actors, zombie.new(73, 3, 3,false) )
local zombie2 = zombie.new(73, 3, 3,false)
table.insert( actors, zombie2 )
table.insert( actors, zombie.new(73, 5, 3,false) )
table.insert( actors, zombie.new(73, 7, 3,false) )
table.insert( actors, zombie.new(75, 3, 3,true) )
@@ -119,6 +121,40 @@ function stages.stage1_init()
-- table.insert(actors,trigger.new(29,40,32,triggers.teleport_c))
-- table.insert(actors,trigger.new(61,8,32,triggers.teleport_d))
table.insert(
dialegs,
{ actor1=premiere,
actor2=abad,
distancia=150,
direccio = "h",
enabled=true,
text="Ma que cosa fare"
}
)
table.insert(
dialegs,
{ actor1=zombie1,
actor2=abad,
distancia=250,
direccio = "h",
enabled=true,
text="Sereeeeebrooooosssss"
}
)
table.insert(
dialegs,
{ actor1=zombie2,
actor2=abad,
distancia=250,
direccio = "h",
enabled=true,
text="Aaaaaargh... per ell!"
}
)
local abad_x, abad_y = coords.room_to_world ( 10, 4, 3 )
-- local abad_x, abad_y = coords.room_to_world ( 54, 8, 3 )
abad:move(abad_x, abad_y)