Good evening!
Could you please tell me how to make a dialog system dependent on the dialed number on the phone?
In my situation we have to contact the phone, where a certain number is entered, which causes a conversation with a certain person and different answers.
I need to have 4 different calls from the same phone to 4 different people and each one will have a different dialog with options.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @Thomas.
If you have each dial button be a separate Hotspot, you can use a "score" system whereby each time a button is pressed, you update a Score integer - increasing it by 1 if the correct button was pressed, or setting it to -1 otherwise.
That is, if the number is 571, then the Score should increase if 5 is pressed when it's zero, if 7 is pressed, when it's one, and if 1 is pressed when it's two. When the score reaches 3, you can run your Dialogue: Start conversation Action.
You can parameterise this logic to run a single ActionList each time a button is pressed.
It's a bit tricky to describe, but you can find an example of this logic in the "Puzzle template: Simple examples" package's "Combination lock" scene. This package is available over on the Downloads page.
This example covers a single-combination, but having the approach work for multiple combos should just be a case of having separate "Score" integers and keeping track of them simultaneously. I'd recommend picking the scene apart and getting it working with just one phone number, and taking things from there.