Page 1 of 1

Playmaker variables for Conversation conditions

Posted: Sun Sep 12, 2021 5:42 pm
by Sul Nistoli
Hi, I'm really new to using Dialogue system, and Playmaker, and I searched through the forum but couldn't find anything on this - say I have a int or a float in playmaker that represents a stat, like money, or health, or reputation, is there any way to check the variables in an fsm and have dialogue system give different replies? Such as talking to a shop keeper, I want the choice to try and rob the shop to always be open, and for it to check strength, and give you different answers depending on the stat when it checks it. Is that possible at all? or would I need to make a separate c# script with a bunch of public floats for each of the stats, and have Playmaker set those, instead of having just the values in the fsms.

Thanks!

Re: Playmaker variables for Conversation conditions

Posted: Sun Sep 12, 2021 8:26 pm
by Tony Li
Hi,

You can use the Dialogue System's PlayMaker Variable Functions.

For example, say you have PlayerMaker global int variables named Stealth and Reputation. You could write a conversation like this:

checkPlayMakerVars.png
checkPlayMakerVars.png (29.74 KiB) Viewed 179 times