This could be a possible bug, but I'd like to see if I'm actually doing anything wrong first, given this works in Ace as it should.
Basically, you speak to the soldier.
This brings up a common event which checks his faction.
Based on this faction, some dialogue is brought up. (this is separated for easy modification later, to give different results based on rep, etc)
The dialogue that is brought up can then be common or milestone-based. Alternatively, it could just skip all of this and show the person's regular dialogue.
Expected end result example:
However, what is actually happening is that the faction is not actually verified. Instead, MV seems to do something really rather odd, resulting in both the mercs AND the army being rolled for their checks TWICE EACH.
Putting the "if army, do this, else, if merc, do this" in the faction dialogue base common event prevents this loop, but inexplicably. It shouldn't have to be in an "if/else". The common event should only be running that specific "call" to the dialogue, if the variable is equal to the variable being checked, otherwise, to skip it.
Basically, the "faction check" and faction dialogue base common events are broken, meaning that "if NPC's Faction = army" variable is never verified, unless an if else statement is used.
Imgur is broken, so I've the images instead. I'll replace them once imgur uploading works again.
Events in order of sequence:
[images removed]
And here's the console output FROM THE SAME EVENT, ACTIVATED ONCE with some testing if you are so inclined: (Undefined:1 is probably not relevant here, someone tried to help me with this, found the same issue on their end, and sent me the debug and that bit just went a bit weird when I pasted it into my project but in general, it was just meant to simply print the string in question)
[console output removed]
Basically, you speak to the soldier.
This brings up a common event which checks his faction.
Based on this faction, some dialogue is brought up. (this is separated for easy modification later, to give different results based on rep, etc)
The dialogue that is brought up can then be common or milestone-based. Alternatively, it could just skip all of this and show the person's regular dialogue.
Expected end result example:
Spoiler
If army -> dialogue 1 -> well, hello
or
if army -> dialogue 2 -> well, hello
or
if army -> well, hello
If army -> dialogue 1 -> well, hello
or
if army -> dialogue 2 -> well, hello
or
if army -> well, hello
However, what is actually happening is that the faction is not actually verified. Instead, MV seems to do something really rather odd, resulting in both the mercs AND the army being rolled for their checks TWICE EACH.
Putting the "if army, do this, else, if merc, do this" in the faction dialogue base common event prevents this loop, but inexplicably. It shouldn't have to be in an "if/else". The common event should only be running that specific "call" to the dialogue, if the variable is equal to the variable being checked, otherwise, to skip it.
Basically, the "faction check" and faction dialogue base common events are broken, meaning that "if NPC's Faction = army" variable is never verified, unless an if else statement is used.
Imgur is broken, so I've the images instead. I'll replace them once imgur uploading works again.
Events in order of sequence:
[images removed]
And here's the console output FROM THE SAME EVENT, ACTIVATED ONCE with some testing if you are so inclined: (Undefined:1 is probably not relevant here, someone tried to help me with this, found the same issue on their end, and sent me the debug and that bit just went a bit weird when I pasted it into my project but in general, it was just meant to simply print the string in question)
[console output removed]