From 5a451bb2e97a5c4826b4cd2be3aab9fca85ee236 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 7 May 2016 10:44:56 +0100 Subject: [PATCH] Allow for scripted challenge fails. --- src/battle/script.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle/script.c b/src/battle/script.c index 15c1d73..7d3380e 100644 --- a/src/battle/script.c +++ b/src/battle/script.c @@ -255,6 +255,11 @@ static void executeNextLine(ScriptRunner *runner) addHudMessage(colors.red, _("Mission Failed!")); failMission(); } + else if (strcmp(command, "FAIL_CHALLENGE") == 0) + { + addHudMessage(colors.red, _("Challenge Failed!")); + failMission(); + } else if (strcmp(command, "END_CHALLENGE") == 0) { game.currentMission->challengeData.scriptedEnd = 1;