How to add responses via C# code
Posted: Sat Mar 04, 2023 9:31 am
Hello,
I want to add response options via C# code. I already have working Conversation, but just need to add player answers via C# code.
For example: scene have a trader and I want to buy someting.
I need to add array of options via C# code.
For example:
"I want to buy an apple for 10 gold"
"I want to buy sword for 50 gold"
"I want to buy a hat for 30 gold"
and then move to next dialogue entry with saved choice (this can be done with DialogueLua.SetVariable as I know).
I try to find ability to add response options via C# code, but no luck.
I want to add response options via C# code. I already have working Conversation, but just need to add player answers via C# code.
For example: scene have a trader and I want to buy someting.
I need to add array of options via C# code.
For example:
"I want to buy an apple for 10 gold"
"I want to buy sword for 50 gold"
"I want to buy a hat for 30 gold"
and then move to next dialogue entry with saved choice (this can be done with DialogueLua.SetVariable as I know).
I try to find ability to add response options via C# code, but no luck.