Quick Reference Entry Actor
Posted: Tue Jul 21, 2020 9:35 am
So I have it so more than two characters talk in each conversation and would like to know how to have them say something as simple as "I am NAME".
I know about the [var=Actor] markup tag, however that seems to only use the conversation actor and not the actor who is currently speaking in the Dialogue entry.
My situation is like this, I have the player and three NPCs talking with each other. Each one will want to introduce themselves by just saying their names. However, I can only seem to store one actor and one conversant to use the markup tag. Of course, I can also create multiple other variables for each of the others names, but I don't want that since it will spam the variable list, and some actors will have similar names since they are assigned one randomly from a list of names(They're generic encounter NPCs as well, such as bandits who are only there to rob you in one scene, so storing their name in a variable is useless).
I have made use of a new variable called TActor, short for This Actor, which changes based on who's currently the actor talking in the dialogue entry. However, to make this work, every dialogue entry I will have to call the UpdateActors() script I made, which to me feels kind of wasteful. And if I accidentally forget to add it for one dialogue entry, which is a huge possibility, it can of course cause inconsistencies.
Is there some simpler way I am missing to insert the name of the actor of the current dialogue entry into the dialogue text? It's fine if not, the way I'm doing now works, but I just wanted to know.
I know about the [var=Actor] markup tag, however that seems to only use the conversation actor and not the actor who is currently speaking in the Dialogue entry.
My situation is like this, I have the player and three NPCs talking with each other. Each one will want to introduce themselves by just saying their names. However, I can only seem to store one actor and one conversant to use the markup tag. Of course, I can also create multiple other variables for each of the others names, but I don't want that since it will spam the variable list, and some actors will have similar names since they are assigned one randomly from a list of names(They're generic encounter NPCs as well, such as bandits who are only there to rob you in one scene, so storing their name in a variable is useless).
I have made use of a new variable called TActor, short for This Actor, which changes based on who's currently the actor talking in the dialogue entry. However, to make this work, every dialogue entry I will have to call the UpdateActors() script I made, which to me feels kind of wasteful. And if I accidentally forget to add it for one dialogue entry, which is a huge possibility, it can of course cause inconsistencies.
Is there some simpler way I am missing to insert the name of the actor of the current dialogue entry into the dialogue text? It's fine if not, the way I'm doing now works, but I just wanted to know.