Hi again everyone!
So I've reached a point in my game where my main character shoots and kills another character (simply called cVictim), but I want the main character to interact differently with cVictim, depending upon whether she's alive or dead. So I put in GlobalScript.ash:
Code: ags
and in GlobalScript.asc:
Code: agsfunction cVictim_Look()
{
if (IsVictimDead == false)
(
cChristian.FaceDirection (eDirectionUp))
cChristian.LockViewFrame (CHRISTIAN_NORMAL, 3, 1, eStopMoving);
cChristian.SayAt (15, 191, 300, "It appears to be a female but it's making a horrible sound...");
Wait (5);
cChristian.SayAt (15, 191, 300, "There's something very wrong here!");
Wait (5);
cChristian.UnlockView (eKeepMoving);
cChristian.LockView (1);
}
else
(
cChristian.Walk (150, 68, eBlock, eWalkableAreas);
cChristian.FaceDirection (eDirectionUp);
Wait (5);
cChristian.ChangeRoom (64);
}
}
But when I try to run the game, I'm getting a parse error at the line " if (IsVictimDead == false)".
I just can't seem to work out where I'm going wrong. Can anyone help, please? Remember - simplified instructions only please!
- Zephyr
So I've reached a point in my game where my main character shoots and kills another character (simply called cVictim), but I want the main character to interact differently with cVictim, depending upon whether she's alive or dead. So I put in GlobalScript.ash:
bool IsVictimDead = false;
and in GlobalScript.asc:
{
if (IsVictimDead == false)
(
cChristian.FaceDirection (eDirectionUp))
cChristian.LockViewFrame (CHRISTIAN_NORMAL, 3, 1, eStopMoving);
cChristian.SayAt (15, 191, 300, "It appears to be a female but it's making a horrible sound...");
Wait (5);
cChristian.SayAt (15, 191, 300, "There's something very wrong here!");
Wait (5);
cChristian.UnlockView (eKeepMoving);
cChristian.LockView (1);
}
else
(
cChristian.Walk (150, 68, eBlock, eWalkableAreas);
cChristian.FaceDirection (eDirectionUp);
Wait (5);
cChristian.ChangeRoom (64);
}
}
But when I try to run the game, I'm getting a parse error at the line " if (IsVictimDead == false)".
I just can't seem to work out where I'm going wrong. Can anyone help, please? Remember - simplified instructions only please!

- Zephyr