Executing multiple functions after a dialogue choice is made
Posted: Fri Jan 28, 2022 7:17 am
Hello!
I'm having a blast getting the dialogue system up and running for my game, but I'm having a lot of trouble trying to figure out how to execute multiple scripts when a dialogue choice is made.
I have an animation function that makes the character leave the screen after the dialogue ends, so I used a sendMessage function to call my "CharacterLeave()" function from the message sequence section on the inspector of every "END" node. Not sure exactly how that works, but it works.
Now I'm trying to make it so certain dialogue choices give + or - gold, faction points etc. How do I do this correctly?
I tried putting in multiple sendMessage lines separated by semicolons, but that doesn't seem to work.
Thank you!
I'm having a blast getting the dialogue system up and running for my game, but I'm having a lot of trouble trying to figure out how to execute multiple scripts when a dialogue choice is made.
I have an animation function that makes the character leave the screen after the dialogue ends, so I used a sendMessage function to call my "CharacterLeave()" function from the message sequence section on the inspector of every "END" node. Not sure exactly how that works, but it works.
Now I'm trying to make it so certain dialogue choices give + or - gold, faction points etc. How do I do this correctly?
I tried putting in multiple sendMessage lines separated by semicolons, but that doesn't seem to work.
Thank you!