Random Number During Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
RoguePimptastic
Posts: 22
Joined: Sat Dec 18, 2021 10:52 pm

Random Number During Conversation

Post by RoguePimptastic »

I want to add a little more chance to a conversation. My thought is to have what RPG Maker calls Common Events. I'm just trying to figure out the best way to make it happen.

The example I'll use is that you are trying to get a warrior to join your party. You have a couple of different options. You can try to pay them as a mercenary, or you can try to play off their altruism. If you pay them, they give you a price, and if you pay it they join. To convince them to join because it's the right thing to do, you basically roll a random number against a variable we'll call charisma. So my thought is that I'd like to have another conversation fire that I'd title Charisma Roll. It would create a random number, add that number to the Charisma variable, then return this number back to the recruitment conversation. This number would be used for a condition to see if the warrior joins your party, or if they deny you.

What would be the best way to make something like this happen?
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Random Number During Conversation

Post by Tony Li »

RoguePimptastic
Posts: 22
Joined: Sat Dec 18, 2021 10:52 pm

Re: Random Number During Conversation

Post by RoguePimptastic »

Awesome, thank you.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Random Number During Conversation

Post by Tony Li »

Glad to help! If you have any questions about the HOWTO, please let me know.
Post Reply