Player with tooltips

This commit is contained in:
2023-02-24 19:28:52 +01:00
parent 8e72e44a4c
commit 825d38636a
12 changed files with 274 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
:action1
say "Parece una caja de herramientas"
:action2
say "Mela quedo!!"

View File

@@ -0,0 +1,44 @@
:action1
say current_player "Tiene pinta de que fuma"
:action2
set_global loom_conversation_done false
#set_gui_visible false
#turn_to eneko_smoking player
?
- "What is your name?"
say current_player "Who are you?"
say eneko_smoking "I'm the worker" [!name_known]
say eneko_smoking "You already asked me that" [name_known]
set_global name_known true
- "Why are you here?"
say current_player "Why are you here?"
say eneko_smoking "I'm waiting for you to give me the"
say eneko_smoking "filled form from room 5."
# This starts an inner subset of questions
- "Can I ask you about Loom?" [!loom_conversation_done]
say current_player "What do you know about Loom?"
say eneko_smoking "What do you want to know about Loom?"
?
- "Could it be created in Escoria?" [!loom_conversation_done]
say player "Could Loom be created in Escoria?"
say eneko_smoking "Yes!"
- "Is it a fun game?" [!loom_conversation_done, !fun_game_asked]
say player "Is Loom a fun game?"
say eneko_smoking "Yes!"
set_global fun_game_asked true
- "I don't want to talk at all any more." [!loom_conversation_done]
#turn_to eneko_smoking worker_face_down
stop
# This will take you back to the outer set of questions
- "I know enough about Loom." [!loom_conversation_done]
set_global loom_conversation_done true
!
- "I'm done."
say player "Bye!"
#turn_to eneko_smoking player
stop
!
set_gui_visible true

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=2]
[gd_scene load_steps=33 format=2]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=1]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_background.gd" type="Script" id=2]
@@ -7,7 +7,6 @@
[ext_resource path="res://gymkhana/rooms/trasera_cocina/HoverStartAnimation.gd" type="Script" id=5]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/background trasera cocina-1500x577-noItems.jpg" type="Texture" id=6]
[ext_resource path="res://gymkhana/characters/oier/oier.tscn" type="PackedScene" id=7]
[ext_resource path="res://game/items/inventory/wrench.png" type="Texture" id=8]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-014.png" type="Texture" id=9]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-011.png" type="Texture" id=10]
[ext_resource path="res://gymkhana/rooms/trasera_cocina/assets/eneko-anim/unscreen-002.png" type="Texture" id=11]
@@ -29,7 +28,7 @@
[ext_resource path="res://gymkhana/items/inventory/I_Bombona.tscn" type="PackedScene" id=27]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=28]
[ext_resource path="res://gymkhana/items/inventory/assets/bombona-inv.png" type="Texture" id=29]
[ext_resource path="res://gymkhana/characters/eneko/eneko-smoking.tscn" type="PackedScene" id=30]
[ext_resource path="res://gymkhana/characters/eneko/eneko_smoking.tscn" type="PackedScene" id=30]
[ext_resource path="res://gymkhana/items/inventory/I_caja_herramientas.tscn" type="PackedScene" id=31]
[sub_resource type="SpriteFrames" id=2]
@@ -66,6 +65,7 @@ script = ExtResource( 2 )
position = Vector2( 1154, 358 )
scale = Vector2( 0.867751, 0.867751 )
frames = SubResource( 2 )
frame = 11
playing = true
offset = Vector2( -0.09375, 20.0582 )
@@ -164,17 +164,29 @@ margin_right = 40.0
margin_bottom = 40.0
[node name="EnekoSmoking" parent="." instance=ExtResource( 30 )]
position = Vector2( 961, 382 )
is_movable = true
position = Vector2( 962, 375 )
tooltip_name = "Objervar sujeto"
dialog_color = Color( 0, 1, 0.462745, 1 )
action1_text = "Objervar sujeto"
action2_text = "Hablar"
tooltip2_name = "Hablar"
selectable = true
[node name="ESCLocation" type="Position2D" parent="EnekoSmoking"]
position = Vector2( -111, 102 )
position = Vector2( -124, 124 )
script = ExtResource( 3 )
global_id = "eneko_smoking"
[node name="ESCItemWithTooltip" parent="." instance=ExtResource( 31 )]
position = Vector2( 728, 424 )
esc_script = "res://gymkhana/rooms/trasera_cocina/esc/i_caja_herramientas.esc"
tooltip_name = "¿Que es esto?"
tooltip2_name = "Coger"
[node name="ESCLocation" type="Position2D" parent="ESCItemWithTooltip"]
position = Vector2( -51, 69 )
script = ExtResource( 3 )
global_id = "caja_herramientas"
[connection signal="mouse_entered" from="TextureRect" to="Area2D/CollisionPolygon2D" method="_on_TextureRect_mouse_entered"]
[connection signal="mouse_entered" from="Area2D" to="Area2D/CollisionPolygon2D" method="_on_Area2D_mouse_entered"]