:setup action is not managed only once anymore (#358)
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
:setup
|
||||
set_global dialog_advance 0
|
||||
set_global dialog_popup_advance 0
|
||||
> [eq ESC_LAST_SCENE room2]
|
||||
teleport player r1_r_exit
|
||||
# Set player look left
|
||||
@@ -10,11 +8,19 @@
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
|
||||
|
||||
:ready
|
||||
set_sound_state bg_music res://game/sfx/contemplation.ogg true
|
||||
|
||||
walk player r1_destination_point
|
||||
wait 2
|
||||
walk player r1_destination_point2
|
||||
wait 2
|
||||
set_angle player 225 false
|
||||
> [!room1_visited]
|
||||
set_global room1_visited true
|
||||
set_global dialog_advance 0
|
||||
set_global dialog_popup_advance 0
|
||||
walk player r1_destination_point
|
||||
wait 2
|
||||
walk player r1_destination_point2
|
||||
wait 2
|
||||
set_angle player 225 false
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# THIS ROOMS FEATURES AN OPEN BRIDGE WITH A BUTTON TO USE IN ORDER TO OPEN
|
||||
|
||||
|
||||
:setup
|
||||
|
||||
> [r2_bridge_closed]
|
||||
@@ -25,15 +24,14 @@
|
||||
#set_global r2_bridge_closed true
|
||||
set_interactive r2_right_platform false
|
||||
#set_interactive r2_bridge false
|
||||
|
||||
stop
|
||||
|
||||
> [!last_scene]
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
#teleport player player_start
|
||||
|
||||
|
||||
:ready
|
||||
|
||||
# DEBUG
|
||||
#set_state r2_bridge bridge_close
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
# THIS ROOMS FEATURES AN OPEN BRIDGE WITH A ***BROKEN*** BUTTON TO USE IN ORDER TO OPEN
|
||||
|
||||
|
||||
:setup
|
||||
|
||||
> [!room3_visited]
|
||||
set_global room3_visited true
|
||||
set_global r3_bridge_closed false
|
||||
set_state r3_button button_broken
|
||||
set_global button_broken true
|
||||
|
||||
> [r3_bridge_closed]
|
||||
# Make set_state IMMEDIATE to reach the final frame immediately
|
||||
set_state r3_bridge bridge_close true
|
||||
@@ -21,16 +28,13 @@
|
||||
# If bridge not closed
|
||||
> [!r3_bridge_closed]
|
||||
set_interactive r3_right_platform false
|
||||
|
||||
stop
|
||||
> [!last_scene]
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
|
||||
:ready
|
||||
set_global r3_bridge_closed false
|
||||
set_state r3_button button_broken
|
||||
set_global button_broken true
|
||||
|
||||
# DEBUG
|
||||
#set_state r3_bridge bridge_close
|
||||
|
||||
@@ -9,11 +9,7 @@
|
||||
# Set player look left
|
||||
set_angle player 270
|
||||
stop
|
||||
> [eq ESC_LAST_SCENE ""]
|
||||
> [!last_scene]
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
teleport player player_start
|
||||
#walk player r_exit
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
stop
|
||||
|
||||
|
||||
:ready
|
||||
#walk player r5_wrench
|
||||
#set_global i/r5_wrench true
|
||||
#set_active r5_wrench false
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
:ready
|
||||
#set_global i/r5_pen true
|
||||
#set_active r5_pen false
|
||||
#set_global i/r5_empty_sheet true
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
# :SETUP is called EVERY TIME the room is loaded
|
||||
# :READY is called only the FIRST TIME the room is loaded
|
||||
|
||||
:setup
|
||||
set_state r7_button_push button_repaired
|
||||
set_state r7_button_shift button_repaired
|
||||
set_state r7_button_follow button_repaired
|
||||
set_state r7_button_zoom button_repaired
|
||||
|
||||
set_state r7_button_push button_repaired true
|
||||
set_state r7_button_shift button_repaired true
|
||||
set_state r7_button_follow button_repaired true
|
||||
set_state r7_button_zoom button_repaired true
|
||||
|
||||
> [eq ESC_LAST_SCENE room6]
|
||||
teleport player r7_l_exit
|
||||
@@ -22,17 +21,3 @@ set_state r7_button_zoom button_repaired
|
||||
stop
|
||||
|
||||
|
||||
:ready
|
||||
|
||||
#camera_push player 0 LINEAR
|
||||
#camera_push r7_object2 1 LINEAR
|
||||
#wait 3
|
||||
#camera_push player 1 LINEAR
|
||||
|
||||
#camera_set_drag_margin_enabled bool bool
|
||||
#camera_set_pos real int int
|
||||
#camera_set_target real
|
||||
#camera_set_zoom real
|
||||
#camera_set_zoom_height int
|
||||
#camera_shift int int
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# :SETUP is called EVERY TIME the room is loaded
|
||||
# :READY is called only the FIRST TIME the room is loaded
|
||||
|
||||
:setup
|
||||
|
||||
> [r8_m_door_open]
|
||||
@@ -20,7 +17,3 @@
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
|
||||
|
||||
:ready
|
||||
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
# :SETUP is called EVERY TIME the room is loaded
|
||||
# :READY is called only the FIRST TIME the room is loaded
|
||||
|
||||
:setup
|
||||
|
||||
> [!room09_visited]
|
||||
set_global room09_visited true
|
||||
set_global open_closets 0
|
||||
#set_state r9_closet_left closed
|
||||
#set_state r9_closet_middle closed
|
||||
#set_state r9_closet_right closed
|
||||
|
||||
> [eq ESC_LAST_SCENE room8]
|
||||
teleport player r9_l_exit
|
||||
# Set player look right
|
||||
@@ -17,9 +23,3 @@
|
||||
stop
|
||||
|
||||
|
||||
|
||||
:ready
|
||||
set_global open_closets 0
|
||||
#set_state r9_closet_left closed
|
||||
#set_state r9_closet_middle closed
|
||||
#set_state r9_closet_right closed
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
# :SETUP is called EVERY TIME the room is loaded
|
||||
# :READY is called only the FIRST TIME the room is loaded
|
||||
|
||||
:setup
|
||||
> [eq ESC_LAST_SCENE room8]
|
||||
teleport player r9_l_exit
|
||||
> [eq ESC_LAST_SCENE room9]
|
||||
teleport player r10_l_exit
|
||||
# Set player look right
|
||||
set_angle player 180
|
||||
stop
|
||||
> [eq ESC_LAST_SCENE room10]
|
||||
teleport player r9_r_exit
|
||||
> [eq ESC_LAST_SCENE room11]
|
||||
teleport player r10_r_exit
|
||||
# Set player look left
|
||||
set_angle player 270
|
||||
stop
|
||||
@@ -16,10 +14,3 @@
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
|
||||
|
||||
:ready
|
||||
set_global open_closets 0
|
||||
#set_state r9_closet_left closed
|
||||
#set_state r9_closet_middle closed
|
||||
#set_state r9_closet_right closed
|
||||
|
||||
@@ -84,10 +84,10 @@ position = Vector2( 22.6786, 212.927 )
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_stop_bg_music"]
|
||||
margin_left = -8.81946
|
||||
margin_top = -30.2381
|
||||
margin_right = 61.1805
|
||||
margin_bottom = -14.2381
|
||||
margin_left = -20.8195
|
||||
margin_top = -29.2381
|
||||
margin_right = 87.1805
|
||||
margin_bottom = -8.2381
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Stop bg music"
|
||||
__meta__ = {
|
||||
@@ -105,10 +105,10 @@ position = Vector2( 22.6786, 212.927 )
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_play_bg_music"]
|
||||
margin_left = -8.81946
|
||||
margin_top = -30.2381
|
||||
margin_right = 61.1805
|
||||
margin_bottom = -14.2381
|
||||
margin_left = -18.8195
|
||||
margin_top = -29.2381
|
||||
margin_right = 85.1805
|
||||
margin_bottom = -8.2381
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Play bg music"
|
||||
__meta__ = {
|
||||
@@ -126,10 +126,10 @@ position = Vector2( 22.6786, 212.927 )
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_play_sound"]
|
||||
margin_left = -8.81946
|
||||
margin_top = -30.2381
|
||||
margin_right = 61.1805
|
||||
margin_bottom = -14.2381
|
||||
margin_left = -10.8195
|
||||
margin_top = -29.2381
|
||||
margin_right = 72.1805
|
||||
margin_bottom = -8.2381
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Play sound"
|
||||
__meta__ = {
|
||||
@@ -145,9 +145,10 @@ animations = null
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_accept_input"]
|
||||
margin_left = -3.6864
|
||||
margin_top = -38.4435
|
||||
margin_right = 71.3136
|
||||
margin_bottom = -7.44354
|
||||
margin_top = -44.4435
|
||||
margin_right = 85.3136
|
||||
margin_bottom = 0.556503
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Test Accept
|
||||
Input"
|
||||
__meta__ = {
|
||||
@@ -167,10 +168,11 @@ tooltip_name = "Test slide"
|
||||
animations = null
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_slide"]
|
||||
margin_left = -3.6864
|
||||
margin_top = -38.4435
|
||||
margin_right = 71.3136
|
||||
margin_bottom = -7.44354
|
||||
margin_left = -9.6864
|
||||
margin_top = -28.4435
|
||||
margin_right = 66.3136
|
||||
margin_bottom = 2.55646
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Test Slide"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
@@ -189,10 +191,11 @@ tooltip_name = "Test turn_to"
|
||||
animations = null
|
||||
|
||||
[node name="Label" type="Label" parent="Hotspots/button_turn_to"]
|
||||
margin_left = -3.6864
|
||||
margin_top = -38.4435
|
||||
margin_right = 71.3136
|
||||
margin_bottom = -7.44354
|
||||
margin_left = -14.6864
|
||||
margin_top = -26.4435
|
||||
margin_right = 80.3136
|
||||
margin_bottom = 4.55646
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Test turn_to"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
||||
Reference in New Issue
Block a user