I thought you might want to create something similar to the second campaign, the second mission of the original game, where you could lose the final battle and still win the scenario.
If you just need to change the win/loss message, it's done like this, if I remember correctly: MapPropretiesTree->players->0->VictoryMessageRef (or DefeatMessageRef for losing).
Thank you.