Share the same Dialogue, but different condition per Actor
Posted: Sun Jul 12, 2020 4:54 pm
Hello, let me explain my setup :
I have a Conversation setup with multiple dialogues. They all come from the START node with different conditions.
for example :
GenericDialogue:
START -> (if X == 1) "Line A"
START -> (if X== 2) "Line B"
START -> (if X== 3) "Line C"
START -> (if X== 4) "Line D"
...
This Dialogue is always said by the same Actor, called "ActorA"
In my Scene I multiple instance "ActorA".
Each one of those actor, has a c# defining some logic, and a unique value X.
How can have each actor check its own unique value X when I launch the converstation from this actor ?
I tried registering a custom Lua Function "GetValueofX" returning the Value of X, but it doesnt work with multiple instance of the same actor of course.
Is there a better way to do that ?
PS : I thought about creating custom variable, Its not viable to create one variable for each unique actor in my project
Thank you, and I really love this tool !
If you are interested, here is the game I am making with it :
I have a Conversation setup with multiple dialogues. They all come from the START node with different conditions.
for example :
GenericDialogue:
START -> (if X == 1) "Line A"
START -> (if X== 2) "Line B"
START -> (if X== 3) "Line C"
START -> (if X== 4) "Line D"
...
This Dialogue is always said by the same Actor, called "ActorA"
In my Scene I multiple instance "ActorA".
Each one of those actor, has a c# defining some logic, and a unique value X.
How can have each actor check its own unique value X when I launch the converstation from this actor ?
I tried registering a custom Lua Function "GetValueofX" returning the Value of X, but it doesnt work with multiple instance of the same actor of course.
Is there a better way to do that ?
PS : I thought about creating custom variable, Its not viable to create one variable for each unique actor in my project
Thank you, and I really love this tool !
If you are interested, here is the game I am making with it :