function ChristianAttacked()
DeployReserveHero("Christian", 98, 108, 0)
sleep(1)
MoveHero("Christian", 126, 139, -1)
if IsHeroAlive(hero) and GetObjectOwner("castle") == PLAYER_1 then
StartDialogScene("/DialogScenes/FallenKnight/S3/DialogScene.xdb#xpointer(/DialogScene)")
sleep(1)
SetObjectiveState("prim6", OBJECTIVE_ACTIVE, 1)
else SetObjectiveState("prim5", OBJECTIVE_FAILED, 1)
loose()
end;
end;
It seems like everything is correct, BUT - the function below doesn't work! Everything else, including the else part, works perfectly. What's the error? I'm sure the path to the video is correct...
if IsHeroAlive(hero) and GetObjectOwner("castle") == PLAYER_1 then
StartDialogScene("/DialogScenes/FallenKnight/S3/DialogScene.xdb#xpointer(/DialogScene)")
sleep(1)
SetObjectiveState("prim6", OBJECTIVE_ACTIVE, 1)