Time custom script with sequence
Posted: Mon Feb 15, 2021 3:52 pm
Hi
I am trying to achieve this:
Have a way to fire off a think-bubble above a given characters head with a comment during and after conversations.
I'm doing this by using Bark UI and a registered function that fires it off.
The function takes 3 parameters.
My problem is that since my registered function can only be activated from the script field, I cannot control the timing of it.
Which I want to. I want to be able to do 2 things:
Fire ThinkBubble above "speaker X" containing text "XXXXX" at "X" seconds after sequence end.
and
Fire ThinkBubble above "speaker X" containing text "XXXXX" at "X" seconds into sequence.
So, I want to be able to fire it both in the middle of a sequence and at the end of conversations/sequences.
I have everything working except the timing bit.
As I understand it, you cannot send messages between the sequence field and the script field - but I see no other way to achieve what I want.
I cannot run my function from the sequence field via sendmessage as I cannot make it work with only a single string parameter.
I cannot use a custom sequencer command as I need to reference objects and other functions outside the Dialogue Manager.
I cannot just use the script field as I see no way to time it precisely with the sequencer (Currently, I have a delay parameter in the function, but this is very awkward to use as I need to manually adjust and test it for every node I use it with).
I am trying to achieve this:
Have a way to fire off a think-bubble above a given characters head with a comment during and after conversations.
I'm doing this by using Bark UI and a registered function that fires it off.
The function takes 3 parameters.
My problem is that since my registered function can only be activated from the script field, I cannot control the timing of it.
Which I want to. I want to be able to do 2 things:
Fire ThinkBubble above "speaker X" containing text "XXXXX" at "X" seconds after sequence end.
and
Fire ThinkBubble above "speaker X" containing text "XXXXX" at "X" seconds into sequence.
So, I want to be able to fire it both in the middle of a sequence and at the end of conversations/sequences.
I have everything working except the timing bit.
As I understand it, you cannot send messages between the sequence field and the script field - but I see no other way to achieve what I want.
I cannot run my function from the sequence field via sendmessage as I cannot make it work with only a single string parameter.
I cannot use a custom sequencer command as I need to reference objects and other functions outside the Dialogue Manager.
I cannot just use the script field as I see no way to time it precisely with the sequencer (Currently, I have a delay parameter in the function, but this is very awkward to use as I need to manually adjust and test it for every node I use it with).