The script block that sets the X#DyFlirt5 variable should trigger at a party rest after the final dream. If you have a save from before you manually tweaked the variable, I'd be interested to see the variable states and figure out why the block isn't firing.
IF %BGT_VAR%
Global("Chapter","GLOBAL",%tutu_chapter_7%)
Global("X#DyFlirt5","GLOBAL",0)
Global("X#DynahMatch","GLOBAL",1)
!Global("X#DynaheirRomanceInactive","GLOBAL",1)
Global("%bgdreams%","GLOBAL",%bgdream6%)
InParty(Myself)
!StateCheck(Player1,CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
PartyRested()
THEN
RESPONSE #100
SetGlobal("X#DyFlirt5","GLOBAL",1)
END
Oh, don't worry about it, it was definitely a fault on my part. Apparently, I didn't have that last dream sequence because I didn't rest enough times for it to trigger and also I finished the game with only one Draw Upon Holy Might when I should have gotten two, so that's another proof for that. And I checked the variables myself, so, yeah. I'm sorry to have been a bother, I know I should 'ave checked things out first before jumping the gun.
But just to be sure, I'd like to send you my save, but how do I go about attaching files to my reply? Or do I have to upload it on some place and just share a link? I apologize for asking this, it's really embarrassing.