-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math do not support writing var to item #72891
Comments
So my testing seems to show items can do vars. This json is what I used
If you have an example of it failing I'm happy to take another look. |
Needs an example where it fails. There's nothing special on math's side and the var-writing behaviour is handled by the talker implementation. Are you perhaps trying to write a var with math and then access it in code, or the other way around? That will not work directly because dialogue variables are always pefixed by |
apparently something was wrong with my previous setup - using this clearly shows that the value is stored and read properly {
"id": "qwerty_test",
"type": "TOOL",
"name": { "str": "qwerty_test" },
"description": "qwerty_test",
"weight": "1 g",
"volume": "1 ml",
"symbol": "F",
"use_action": [ { "type": "effect_on_conditions", "description": "Write value", "effect_on_conditions": [ "TEST_EOC_1" ] } ]
},
{
"type": "effect_on_condition",
"id": "TEST_EOC_1",
"effect": [ { "math": [ "n_test_val", "=", "rand(100)" ] }, { "run_eocs": [ "TEST_EOC_2" ] } ]
},
{
"type": "effect_on_condition",
"id": "TEST_EOC_2",
"effect": [ { "u_message": "Random value: <npc_val:test_val>", "type": "good" } ]
} |
Is your feature request related to a problem? Please describe.
As title says, trying to write n_ value when beta talker is item, and then read the written value, result in returning null instead of the written value. It seems the functionality works only within u_add_var?
Solution you would like.
Being able to write val to item using math
Describe alternatives you have considered.
No response
Additional context
Gonna make an example eoc later
The text was updated successfully, but these errors were encountered: