Hi, guys. I made an NPC with some dialogue. Now, one of his dialogue branches goes like this: What would you like to change?(NPC) --> I'd like to change my wealth(Player)--> How wealthy are you?(NPC)--> I am rich! (2000 gold)(Player)
My question is, is there a way to script it so that when I click that dialogue, I am not gifted 2000 gold, but rather my gold amount is set to 2000 gold? In other words, let's say I have 100 gold and I click that dialogue option. I don't want to be gifted 2000 gold, to make 2100 gold. I just want to set my gold amount from 100 to 2000. Is there a way to do this? Thank you!