How to add and subtract a float based on conversational choices?
Posted: Fri Nov 01, 2024 3:19 pm
Hey. So I have a full conversation ready to go. I need to change a float parameter by a certain amount on a script that's on my character. That float controls blend shapes on my character to show anger, happiness, sadness, etc., from -100 to 100. At -100 the character is angry, 0 she's indifferent (no blend shapes), at 100 she's happy. That I have all set up already. One float parameter on that script from -100 to 100 adjusts the blend shape emotions.
When the conversation starts that outside float is at 0. Depending on the players responses, that float can fluctuate. If the player say something hurtful, I'd like to deduct 20 points for example, making that float a -20, which in turn updates the outside script for the emotional blend shapes.
Is it possible to change a float within Dialogue System per conversational node, and then tell an outside script that number?
Thanks!
When the conversation starts that outside float is at 0. Depending on the players responses, that float can fluctuate. If the player say something hurtful, I'd like to deduct 20 points for example, making that float a -20, which in turn updates the outside script for the emotional blend shapes.
Is it possible to change a float within Dialogue System per conversational node, and then tell an outside script that number?
Thanks!