Hi there,
I'm getting back into AGS after having last used it over 5 years ago (Yikes!) for a university project. Now I'm hoping to construct an actual game where the player is a judge in a court of law. See this thread for more information.
I'll stick to using this thread for any technical queries I have - any help is appreciated.
1. Dialog after entering a room. The first trial begins in the court room, here's the room script:
--
if (case1_start == true)
Ace_Attorney_Court_Suite.Play();
{Display("Welcome to the courtroom.");
SenJudge.ChangeRoom(2, 250, 650);
{Display("A Senior Judge approaches you.");
d1SenJudge.Start();
SenJudge.ChangeRoom(0, 250, 650);
{Display("You switch on the court's computer system.");}
Computer.ChangeRoom(2, 250, 650);
}
}
}
--
I'm moving the player to the main court room, playing some music (It's placeholder) and want to have a senior judge character appear (It's just a static image), he speaks his dialog script and then leaves. A computer 'character' will then appear for the player to interact with so they can do their research and the trial can begin.
However, at the moment the dialog is happening _after_ the other parts (The judge moves to another room, the display message about the computer appears). The dialog file is just a series of text displays followed by a 'stop'.
I've had a look through the help file and tried different functions but nothing works so far. I've now realised that with the dialog:
"NOTE: The conversation will not start immediately; instead, it will be run when the current script function finishes executing."
How can I get around that?
I'm getting back into AGS after having last used it over 5 years ago (Yikes!) for a university project. Now I'm hoping to construct an actual game where the player is a judge in a court of law. See this thread for more information.
I'll stick to using this thread for any technical queries I have - any help is appreciated.
1. Dialog after entering a room. The first trial begins in the court room, here's the room script:
--
if (case1_start == true)
Ace_Attorney_Court_Suite.Play();
{Display("Welcome to the courtroom.");
SenJudge.ChangeRoom(2, 250, 650);
{Display("A Senior Judge approaches you.");
d1SenJudge.Start();
SenJudge.ChangeRoom(0, 250, 650);
{Display("You switch on the court's computer system.");}
Computer.ChangeRoom(2, 250, 650);
}
}
}
--
I'm moving the player to the main court room, playing some music (It's placeholder) and want to have a senior judge character appear (It's just a static image), he speaks his dialog script and then leaves. A computer 'character' will then appear for the player to interact with so they can do their research and the trial can begin.
However, at the moment the dialog is happening _after_ the other parts (The judge moves to another room, the display message about the computer appears). The dialog file is just a series of text displays followed by a 'stop'.
I've had a look through the help file and tried different functions but nothing works so far. I've now realised that with the dialog:
"NOTE: The conversation will not start immediately; instead, it will be run when the current script function finishes executing."
How can I get around that?