Replies: 2 comments 8 replies
-
Actually this looks like the right way to do it. TextInput event will always return a string, but you should be able to convert it to a float just like you tried to. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
![4ad5341176d5e2dcc5e77751c61ff58b01d750f2](https://private-user-images.githubusercontent.com/170271202/331899256-662aa8ce-079f-4b26-a3b7-ed03e8e6076c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTc1OTgsIm5iZiI6MTcxODk1NzI5OCwicGF0aCI6Ii8xNzAyNzEyMDIvMzMxODk5MjU2LTY2MmFhOGNlLTA3OWYtNGIyNi1hM2I3LWVkMDNlOGU2MDc2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQwODA4MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jODUzNzBjN2Y2MjU3MjFhNzI4ZGJmNTdjN2I1MTJhYmJkMGI2MjY4MGM0NzFjYmFhMDlmMjc2YzAyMGYzYzkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8_iDC3-QCnfZR5q4Qqt5aEyj6kmHoTEyFNP6_hxcdmI)
I am trying to have the player insert a number in the text_input in Dialogic 2 so that the player can receive the money he is asking. The sommaprestito variable is not recognized as a number, and I get the error E 0:00:12:0901 subsystem_expression.gd:36 @ execute_string(): Invalid named index ‘sommaprestito’ for base type Object
<C++ Error> Condition “p_show_error” is true. Returning: Variant()
<C++ Source> core/math/expression.cpp:1507 @ execute()
subsystem_expression.gd:36 @ execute_string()
subsystem_expression.gd:44 @ execute_condition()
event_condition.gd:27 @ _execute() But I am not sure how to use it, I think maybe text_input only takes strings. How can I have the player insert a float instead?
Beta Was this translation helpful? Give feedback.
All reactions