This commit is contained in:
2023-08-27 01:35:14 +02:00
parent fa08453e65
commit 1ee9c339db
8 changed files with 51 additions and 32 deletions

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -1,6 +1,12 @@
:action1
say player "Que cosa tan curiosa"
inventory_add turno_cocina_bol
:action2
say player "No lo quiero coger"
:action3
say player "Un bol donde poner ingredientes"
:action3 turno_cocina_peso
inventory_remove turno_cocina_peso
inventory_remove turno_cocina_bol
inventory_add turno_cocina_peso_bol
say current_player "Ya puedo pesar ingredientes!"
# set_global caja_herramientas_with_wrench true

View File

@@ -12,23 +12,14 @@ pause_mode = 1
script = ExtResource( 1 )
global_id = "turno_cocina_bol"
esc_script = "res://gymkhana/items/inventory/turno_cocina_bol.esc"
combine_when_selected_action_is_in = [ "action4" ]
inventory_texture = ExtResource( 2 )
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "¿Que es esto?"
action2_text = "Coger"
action1_text = "Coger un bol"
action3_text = "Mirar"
action4_text = "Usar"
action3_target_texts = {
"turno_cocina_peso": "Poner el bol sobre el peso"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -2, 0 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1.5, -0.5 )
shape = SubResource( 1 )
[node name="ESCLocation" type="Position2D" parent="."]
position = Vector2( -51, 69 )
script = ExtResource( 3 )

View File

@@ -2,10 +2,15 @@
say player "Es un peso, con esto podría coger la cantidad exacta de algún ingrediente"
:action2
say player "NOT IMPLEMENTED"
say current_player "Podria ser útil!!"
set_active turno_cocina_peso false
inventory_add turno_cocina_peso
:action3
say player "Es un peso, con esto podría coger la cantidad exacta de algún ingrediente"
:action4
say player "NOT IMPLEMENTED"
:action3 turno_cocina_bol
inventory_remove turno_cocina_peso
inventory_remove turno_cocina_bol
inventory_add turno_cocina_peso_bol
say current_player "Ya puedo pesar ingredientes!"

View File

@@ -9,13 +9,17 @@ pause_mode = 1
script = ExtResource( 1 )
global_id = "turno_cocina_peso"
esc_script = "res://gymkhana/items/inventory/turno_cocina_peso.esc"
combine_when_selected_action_is_in = [ ]
combine_when_selected_action_is_in = [ "action4" ]
inventory_texture = ExtResource( 3 )
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "¿Que es esto?"
action2_text = "Coger"
action3_text = "Mirar"
action3_text = "¿Que es esto?"
action4_text = "Usar"
action3_target_texts = {
"turno_cocina_bol": "Poner el bol sobre el peso"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null
[node name="Sprite" type="Sprite" parent="."]

View File

@@ -1,17 +1,17 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=1]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_peso_bol_inventario.png" type="Texture" id=2]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_peso_bol.png" type="Texture" id=2]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 22.5, 12.5 )
[node name="turno_cocina_peso_bol_inventario" type="Area2D"]
[node name="turno_cocina_peso_bol" type="Area2D"]
pause_mode = 1
script = ExtResource( 1 )
global_id = "turno_cocina_peso_bol_inventario"
esc_script = "res://gymkhana/items/inventory/turno_cocina_peso_bol_inventario.esc"
global_id = "turno_cocina_peso_bol"
esc_script = "res://gymkhana/items/inventory/turno_cocina_peso_bol.esc"
combine_when_selected_action_is_in = [ "action4" ]
target_when_selected_action_is_in = [ "action3" ]
inventory_texture = ExtResource( 2 )