Auto-translated
After defeating the hero, a dialogue should start, followed by a cutscene, but instead, the victory is immediately recorded (i.e., neither the dialogue nor the cutscene plays). What's the problem?
SetObjectiveState("obj1",OBJECTIVE_COMPLETED)
SetObjectiveState("alive",OBJECTIVE_COMPLETED)to the place of Win(), it will probably work. Or, you can delve into the quest settings to prevent victory from being recorded upon their completion.