I'm having problems with trying to use a number variable to add to a global variable inside of conditional branches. It breaks my game every time I try and I have no clue what's going wrong. If I remove the number variable, everything plays smoothly. Is there something special I have to do?
Like, let's say that it's a situation where your character is trying to raise the affection of an NPC. So you come to a choice of giving this NPC a rose or a teddy bear. The rose is worth +5 affection points and the teddy bear is worth +3. You can only give one of each item to this NPC. So you set up the choices for Rose and Bear, with the jump to labels and all of that. We'll use rose in this example. So you click rose and it will perform a Jump to Label: Rose. This is how I would set up everything within that label:
label: Rose
Condition: If Switch L:0001 Rose = ON
Show Message: You already gave her a rose!
Else
Switch L:0001 Rose On
Show Message: You give her a rose.
NV: Variable G:0001 Affection Add Value 5
Jump To Label: Continue
Why does this break my game? If I remove the Number Variable bit, it will work perfectly. Am I doing something wrong or is it just not a capability of VN Maker to use Number Variables within Conditional Branches?
Like, let's say that it's a situation where your character is trying to raise the affection of an NPC. So you come to a choice of giving this NPC a rose or a teddy bear. The rose is worth +5 affection points and the teddy bear is worth +3. You can only give one of each item to this NPC. So you set up the choices for Rose and Bear, with the jump to labels and all of that. We'll use rose in this example. So you click rose and it will perform a Jump to Label: Rose. This is how I would set up everything within that label:
label: Rose
Condition: If Switch L:0001 Rose = ON
Show Message: You already gave her a rose!
Else
Switch L:0001 Rose On
Show Message: You give her a rose.
NV: Variable G:0001 Affection Add Value 5
Jump To Label: Continue
Why does this break my game? If I remove the Number Variable bit, it will work perfectly. Am I doing something wrong or is it just not a capability of VN Maker to use Number Variables within Conditional Branches?