Need help with something I'm sure RPG M VX Ace can do without scripts

So I am trying to make conditional branches where NPCs will have different dialogue if certain stats are high enough.

Basic concept:

-------------------------------------

If

Strength (in this case Bravery), is >= 20 NPC will say "dialogue b"

Else

NPC will say their default "dialogue a"

-------------------------------------

It is just the bolded part I can't figure out. The only option in cond. branch I'm not familiar with is Variable, and I'm assuming that's what I{ll need. Instructions needed.

thanks!!!!!
Yeah, it's easy enough.

First, right before you call the branch, set up variables to save stat data to them.  (ex. 1 = ATK, 2 = DEF, etc.)

To do this, simply use Control Variables and set it to Game Data using Actor n and then the stat in question. (n = actor name)

The event should look like this: Control Variables: [0001: name_of_stat] = [n]'s ATK

Now, call the conditional branch to check the variable against the number you want it to check for.  Simple!

A couple more steps are required in the process, but it's easily done.  Hope this helps!
Himeworks also has a script that easily allows you to edit choices depending on data within your game.
Moved to Support.
Himeworks also has a script that easily allows you to edit choices depending on data within your game.
Though we try to encourage people (especially new users) NOT to use scripts unless they're actually needed. So if there's an easy way to do it via events, then that would be the preferred option.


The only issue here is that I don't see a parameter called STRENGTH, so you may have to find out what it's really called. Only the basic parameters that you see on the Class screen (not listed in features, but the one with the parameter curves) are available in Control Variables through the Game Data option. The others (listed as Sp-Parameter and Ex-Parameter in Features) would require you to use the Script box in Control Variables.
thanks to you both.... kind of scared to try scripts (never had any success in the past)
Though we try to encourage people (especially new users) NOT to use scripts unless they're actually needed. So if there's an easy way to do it via events, then that would be the preferred option.

The only issue here is that I don't see a parameter called STRENGTH, so you may have to find out what it's really called. Only the basic parameters that you see on the Class screen (not listed in features, but the one with the parameter curves) are available in Control Variables through the Game Data option. The others (listed as Sp-Parameter and Ex-Parameter in Features) would require you to use the Script box in Control Variables.
That is exactly what I am referring to. I would just change the name for my purposes. I would be using ATK DEF ect, that are pre-programmed into RPG M VX Ace. However, would a control variable also take into consideration equipment adjustments??
gvduck10, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Variables can do a lot of things. I suggest playing the Variables Guide and getting acquainted with them.
The guide was helpful, but left with me one question.... If I set my Variables to [actions]'s ATK, DEF, ect, at the beginning of the game, will the system check his current stat when it sees the variable within an event, or merely "record" his stat at the beginning of the game and always use that.

The difference being: would I always need to set the control variable command before the conditional branch, or is just using the variable enough once its been set?
You need to set it just before you use it in a conditional branch.


Control Variables puts a value into a variable, and it stays as that value until you change it again. It does not create a link between the variable and the Actor's stats that updates itself automatically.
It definitely takes equipment into account. I just tested that part. I also confirmed that I must use the Control Variable in each event, prior to any conditional branch, if I want the system to check the most current ATK, DEF, ect. stat. Thank you for all your help!!

Now I can build a dating component into my RPG where the "maidens" will have different reactions to your character depending on your levels of cuteness, affluence, wit, ect. HURRAY
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-something-im-sure-rpg-m-vx-ace-can-do-without-scripts.16746/