Sequencer Command To Set TMP Objects from Dialogue
Posted: Mon Nov 23, 2020 5:41 am
Hey Tony! I was hoping you could help me in the making of two custom sequencer commands for the dialogue system:
I'd like to be able to take a Dialogue System Text or Number Variable and use it to set the text of a TMP Object in the scene from within a conversation sequence.
Something like:
SetTMPUI(TMPObjectname, Variablename);
/
SetTMPUI(PlayerHealthText, Playerhealth);
So I guess the command would have to convert a Dialogue System text or number variable into a string and use it to set the TMP object.
Do you think that is possible in this way?
It would also be great to have the same sequencer command, but have it work with a TMP Object in world space (I am guessing this would need to be a separate command.)
So one could do something like this in a dialogue:
Dialogue: Hey Boss. What should we name our restaurant?
(Sequence:
TextInput(MyTextInputUI,Restaurant Name,RestaurantName); )
Next sequence:
SetTMP3D(TMPObjectname, Variablename);
/
SetTMP3D(RestaurantSign, RestaurantName);
Of course, if it was possible to do it all in one command, that would be the most convenient, I guess! But it looks like TMP itself uses two different ways of setting text, so I'm not sure if that is even possible or efficient.
In that case, the sequencer command could just be called something like SetTMP(TMPObjectname, Variablename).
I have tried it myself, but I am not succeeding. Do you think you help me with this?
Wishing you all the best, and keep up the great work on your Dialogue System asset. It is easily the best asset of the more than 60.000 on the asset store.
Keiji
I'd like to be able to take a Dialogue System Text or Number Variable and use it to set the text of a TMP Object in the scene from within a conversation sequence.
Something like:
SetTMPUI(TMPObjectname, Variablename);
/
SetTMPUI(PlayerHealthText, Playerhealth);
So I guess the command would have to convert a Dialogue System text or number variable into a string and use it to set the TMP object.
Do you think that is possible in this way?
It would also be great to have the same sequencer command, but have it work with a TMP Object in world space (I am guessing this would need to be a separate command.)
So one could do something like this in a dialogue:
Dialogue: Hey Boss. What should we name our restaurant?
(Sequence:
TextInput(MyTextInputUI,Restaurant Name,RestaurantName); )
Next sequence:
SetTMP3D(TMPObjectname, Variablename);
/
SetTMP3D(RestaurantSign, RestaurantName);
Of course, if it was possible to do it all in one command, that would be the most convenient, I guess! But it looks like TMP itself uses two different ways of setting text, so I'm not sure if that is even possible or efficient.
In that case, the sequencer command could just be called something like SetTMP(TMPObjectname, Variablename).
I have tried it myself, but I am not succeeding. Do you think you help me with this?
Wishing you all the best, and keep up the great work on your Dialogue System asset. It is easily the best asset of the more than 60.000 on the asset store.
Keiji