Dynamic Conversations without too many variables?
Posted: Mon Jun 17, 2024 6:36 am
Hi, thank you for bearing with this question of mine:
To explain - I want a subtitled conversation (not a bark) that explains the current situation of a card game, like which player won a hand or not.
Problem is that while I have the actors' names/which characters are present in the game, I'm not super sure how to pass 'winning' players to the conversation to have fields in the text update? I imagine I could use conditionals to also check how many players won if at all, to condense all the possible outcomes in the conversation itself.
I know I can register C# Methods to help with this but there's a lot of moving parts so I'm unsure what the best route forward is.
To summarize:
- I want dialog to update based on winner amount + who the winners are.
- This means I'll have to read the game's values (I have arrays with the right player objects in them), but it's feeding the right strings and quantities to the LUA-side of the conversation that confuse me, since I don't understand when I'd get the timing for it or when it happens.
Oh, and if I want the game to wait until the conversation's done, do I just use a while loop checking for whether the conversation's ended or not? (And apologies for the simpler question, but what's the method that checks whether there's any ongoing conversations or not? I assume that would return a bool which I could feed into this loop.)
To explain - I want a subtitled conversation (not a bark) that explains the current situation of a card game, like which player won a hand or not.
Problem is that while I have the actors' names/which characters are present in the game, I'm not super sure how to pass 'winning' players to the conversation to have fields in the text update? I imagine I could use conditionals to also check how many players won if at all, to condense all the possible outcomes in the conversation itself.
I know I can register C# Methods to help with this but there's a lot of moving parts so I'm unsure what the best route forward is.
To summarize:
- I want dialog to update based on winner amount + who the winners are.
- This means I'll have to read the game's values (I have arrays with the right player objects in them), but it's feeding the right strings and quantities to the LUA-side of the conversation that confuse me, since I don't understand when I'd get the timing for it or when it happens.
Oh, and if I want the game to wait until the conversation's done, do I just use a while loop checking for whether the conversation's ended or not? (And apologies for the simpler question, but what's the method that checks whether there's any ongoing conversations or not? I assume that would return a bool which I could feed into this loop.)