diff --git a/switches.lua b/switches.lua index b17d157..ec6d2b3 100644 --- a/switches.lua +++ b/switches.lua @@ -3,6 +3,7 @@ switches={ wait=0, current_list=nil, current_index=-1, + [0]={[0]={20, 53,41}}, [11]={[21]={11, 57,45}}, [35]={[14]={32, 50,38,26,53,41,29}}, [53]={[14]={72, 42,30}}, diff --git a/tiles.gif b/tiles.gif index 675e715..731fff3 100644 Binary files a/tiles.gif and b/tiles.gif differ diff --git a/trigger.lua b/trigger.lua index 115cb89..41622e5 100644 --- a/trigger.lua +++ b/trigger.lua @@ -32,3 +32,17 @@ function triggers:escena_abad_corfes() start_scene(scenes.abad_corfes) remove_actor(self) end + +function triggers:escena_habitacio_batman() + if abad.objects.clau_premiere~=nil and abad.objects.clau_elalien~=nil then + switches.start(0,0) + abad.objects.clau_premiere=nil + abad.objects.clau_elalien=nil + remove_actor(self) + else + if batman.habitacio_porta_intro==nil then + start_scene(scenes.habitacio_batman) + batman.habitacio_porta_intro=true + end + end +end