What is a proper way to add Fallout 3 like dialogue options
Posted: Sun May 02, 2021 7:01 pm
Hi everyone
First of all this is a great asset! Simplifies dialogues creation by a lot, recommending it to every team I deal with![Smile :)](./images/smilies/icon_e_smile.gif)
Now speaking of the question itself:
I'm trying to implement some kind of a fallout 3 like dialogue response options that indicate how much of a specific skill you've got and how much you need to perform a specific action. Here's a quick example
![Image](https://i.redd.it/tom6m4vf6b201.jpg)
Currently I'm using something like: "([var=MySkill]/20) I can do this myself" in the text block of the dialogue node and extra condition inside of the condition block of a dialogue node, something like: "Variables[MySkill] >= 20" however I get some kind of issues with it, specifically:
1. I have to remember to add the condition or else nothing would work
2. If I want dialogue to be able to pick just a specific option it doesn't work this way, I still get more than 1 response because I have to include blocked entries so player can see the requirements but can't interact with the line
Is there any better way to do what I'm doing? Any chance to simplify this whole thing?
I had a thought about modifying the response button to parse the body text for lua variables and replace the text accordingly AND with this approach I still don't have to block the condition itself so I can turn off the "include blocked entries" option and get my dialogue behave as expected
Thank you very much!
First of all this is a great asset! Simplifies dialogues creation by a lot, recommending it to every team I deal with
![Smile :)](./images/smilies/icon_e_smile.gif)
Now speaking of the question itself:
I'm trying to implement some kind of a fallout 3 like dialogue response options that indicate how much of a specific skill you've got and how much you need to perform a specific action. Here's a quick example
![Image](https://i.redd.it/tom6m4vf6b201.jpg)
Currently I'm using something like: "([var=MySkill]/20) I can do this myself" in the text block of the dialogue node and extra condition inside of the condition block of a dialogue node, something like: "Variables[MySkill] >= 20" however I get some kind of issues with it, specifically:
1. I have to remember to add the condition or else nothing would work
2. If I want dialogue to be able to pick just a specific option it doesn't work this way, I still get more than 1 response because I have to include blocked entries so player can see the requirements but can't interact with the line
Is there any better way to do what I'm doing? Any chance to simplify this whole thing?
I had a thought about modifying the response button to parse the body text for lua variables and replace the text accordingly AND with this approach I still don't have to block the condition itself so I can turn off the "include blocked entries" option and get my dialogue behave as expected
Thank you very much!