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.
thanks to you both.... kind of scared to try scripts (never had any success in the past)
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.