Gender: Male
Location: Melbourne, Australia
Rank: Ace Attorney
Joined: Thu Oct 08, 2009 10:56 am
Posts: 1371
Okay, I'm in the middle of cross-examination and before I started it, I ran AIGE to see if my script was working. In basically every place it was (except for one part for the Bailiff Name tag) and when I go to court. In court, I can't seem to get the Courtroom Overview to work along with answering a question. (It's the question called Case1_Question1 and this is the error from AIGE: waitsignal("qreply",[qreplysignal]);)
Also how do I get the GS4 backgrounds to work? I only just recently realized that I was using GS 1-3 sprites and not AJ Court backgrounds. How do I implement them? And can you use them in sliding?
Oh, I can't get the Take That sound to work as well.
Code:
#include(pwlib/pwlib.hlsl)
[game]
jumptoscript("setup");
[setup]
definekey("key_lclick",<null()>);
runscript("pw_initpwlib");
runscript("pw_initpwbgs");
runscript("charcreation");
runscript("load");
runscript("evidenceprofilecreation");
setvar([pw_episodepath],"episode/");
setvar([pw_episodes],1);
jumptoscript("run");
[load]
loadtexture(80900,"PW/evidence/lawyer badge.png");
loadtexture(80901,"PW/evidence/bracelet.png");
loadtexture(80902,"PW/evidence/autopsy report.png");
loadtexture(2001,"PW/evidence/en-goldsnackoo.png");
loadtexture(90900,"PW/profile/odoroki.png");
loadtexture(90901,"PW/profile/minuki.png");
loadtexture(90902,"PW/profile/romaine.png");
loadtexture(90903,"PW/profile/payne4.png");
loadtexture(90904,"PW/profile/skye.png");
loadtexture(70000,"PW/misc/default.png");
replacetexture(-7002,"PW/CRO/CROPrPayne3.png");
replacetexture(-7003,"PW/CRO/CROApolloTrucy.png");
replacetexture(-7000,"PW/CRO/CROJudge.png");
[pw_showcourtroomoverview]
setgenobjgraphic("pw_crowitness",-7000);
setgenobjgraphic("pw_crojudge",-7000);
setgenobjgraphic("pw_croprosecutor",-7002);
setgenobjgraphic("pw_croattorney",-7003);
[charcreation]
runscript("pw_createtrucy");
runscript("pw_createapollo");
runscript("pw_createhobophoenix");
runscript("pw_createzak");
runscript("pw_createjudge");
runscript("pw_createoldpayne");
runscript("pw_createemaskye");
[evidenceprofilecreation]
setvar([evidencenumber],900);
setvar([evidencegfs],80900);
setvar([evidencegfl],80900);
setvar([evidencesup],1);
setvar([evidencename],"Attorney's Badge");
setvar([evidencesdesc],"Type: Other\n One of my possessions.");
setvar([evidenceldesc],"It's my all important badge.\nIt show that I'm a defense attorney.");
runscript("createevidence");
setvar([evidencenumber],901);
setvar([evidencegfs],80901);
setvar([evidencegfl],80901);
setvar([evidencesup],1);
setvar([evidencename],"Bracelet");
setvar([evidencesdesc],"Type: Other\n One of my possessions.");
setvar([evidenceldesc],"My bracelet. It allows me to\nperceive.");
runscript("createevidence");
setvar([evidencenumber],902);
setvar([evidencegfs],80902);
setvar([evidencegfl],80902);
setvar([evidencesup],1);
setvar([evidencename],"Autopsy Report");
setvar([evidencesdesc],"Type: Report\n Autopsy report\nof Ryan Carter.");
setvar([evidenceldesc],"Autopsy report of Ryan Carter. Died\n from fatal shot to brain.");
runscript("createevidence");
setvar([evidencestex],7000);
runscript("setevidencepagesimple");
setvar([profilenumber],800);
setvar([profilegfs],90900);
setvar([profilegfl],90900);
setvar([profilename],"Apollo Justice");
setvar([profilesdesc],"Age: 23\nGender: Male");
setvar([profileldesc],"Me.");
runscript("createprofile");
setvar([profile number],801);
setvar([profilegfs],90901);
setvar([profilegfl],90901);
setvar([profilename],"Trucy Wright");
setvar([profilesdesc],"Age: 15\nGender: Female");
setvar([profileldesc],"A cheerful magician girl.");
runscript("createprofile");
setvar([profile number],802);
setvar([profilegfs],90902);
setvar([profilegfl],90902);
setvar([profilename],"Ryan Carter");
setvar([profilesdesc],"Age: 41\nGender: Male");
setvar([profileldesc],"Victim in this case.");
runscript("createprofile");
setvar([profile number],803);
setvar([profilegfs],90903);
setvar([profilegfl],90903);
setvar([profilename],"Winston Payne");
setvar([profilesdesc],"Age: \nGender: Male");
setvar([profileldesc],"A prosecutor who seems to have a grudge against me.");
runscript("createprofile");
setvar([profile number],804);
setvar([profilegfs],90904);
setvar([profilegfl],90904);
setvar([profilename],"Ema Skye");
setvar([profilesdesc],"Age: \nGender: Female");
setvar([profileldesc],"The detective in charge of this case.");
runscript("createprofile");
[pw_holdit]
runscript("pw_hidemessagebox");
loadandplaysfx("aholdit.wav",0);
runscript("pw_raiseholdit");
runscript("hidepwmenu");
[pw_objection]
runscript("pw_hidemessagebox");
loadandplaysfx("aobjection.wav",0);
runscript("pw_raiseobjection");
runscript("hidepwmenu");
[pw_takethat]
runscript("pw_hidemessagebox");
loadandplaysfx("atakethat.wav",0);
runscript("pw_raisetakethat");
runscript("hidepwmenu");
[pw_objectionp]
runscript("pw_hidemessagebox");
loadandplaysfx("01_Payne - Objection.wav",0);
runscript("pw_raiseobjectionp");
runscript("hidepwmenu");
[pw_whitemessagebox]
setmsgboxtextcolor(255,240,240,240);
[pw_bluemessagebox]
setmsgboxtextcolor(255,107,198,247);
[pw_greenmessagebox]
setmsgboxtextcolor(255,0,247,0);
[pw_orangemessagebox]
setmsgboxtextcolor(255,247,115,57);
[pw_redmessagebox]
setmsgboxtextcolor(255,255,0,0);
[pw_silentmessagebox]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
setmsgboxtickersound("");
[run]
setbg(70000);
changetitle("Apollo Justice Ace Attorney: Justice's Memoirs");
runscript("pw_showmain");
waitresponse();
runscript("pw_hidemain");
jumptoscript("casemenu");
[casemenu]
runscript("pw_caseselect");
waitresponse();
jumptoscript("begin_case1");
[begin_case1]
setbgsize(0,0);
jumptoscript("casestart");
waitresponse();
[casestart]
setvar([evidencenumber],900);
runscript("addevidence");
setvar([evidencenumber],901);
runscript("addevidence");
setvar([profilenumber],800);
runscript("addprofile");
jumptoscript("case1_intro");
[case1_intro]
loadandplaymp3("music/101 Gyakuten Kenji - Prologue.mp3",0,"O");
runscript("pw_showmessagebox");
runscript("pw_silentmessagebox");
wait(50);
messageauto("So why did you call me here?");
wait(200);
runscript("pw_redmessagebox");
messageauto("Isn't it obvious?");
wait(200);
runscript("pw_whitemessagebox");
messageauto("Oh yeah the game.");
wait(200);
messageappendauto("About that-");
runscript("pw_redmessagebox");
messageauto("No...");
wait(150);
runscript("pw_whitemessagebox");
messageauto("What...?");
wait(100);
runscript("pw_redmessagebox");
messageauto("I didn't want to talk about that...");
wait(140);
messageauto("I called you here for...");
wait(150);
runscript("pw_whitemessagebox");
messageauto("Wait...is that a...!");
loadandplaysfx("sfx-gunshot2.wav",0);
wait(100);
runscript("pw_redmessagebox");
messageauto("your...death...");
wait(150);
messageauto("Justice...");
wait(100);
messageappendauto("has been served.");
wait(150);
stopmp3(0);
jumptoscript("enterscene1");
[enterscene1]
runscript("pw_showadvarrowmenu");
runscript("pw_settypewritermsgbox");
runscript("pw_greenmessagebox");
runscript("pw_showmessagebox");
message(" February 7th, 9:50 AM\n District Court\n Defendant Lobby No. 2");
runscript("pw_hidemessagebox");
jumptoscript("scene1");
[scene1]
loadandplaymp3("music/102 Investigation ~ Opening 2009.mp3",0,"O");
runscript("pw_showadvarrowmenu");
runscript("pw_usepwbgcourthall");
runscript("setlipsynctonoone");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtoapollo");
runscript("pw_bluemessagebox");
message("It's been three months since I last stepped\ninto this courtroom.");
message("Three months since that trial...");
message("The trial of Vera Misham, or at least it\noriginally was.");
message("I helped prove Kristoph Gavin, my\nex-mentor guilty of Vera's father's murder.");
message("And in the process, showed Phoenix\nWright was framed for that forged\nevidence");
message("incident seven years ago.");
wait(50);
loadandplaysfx("sfx-lightbulb.wav",0);
message("Oh, I've forgotten something haven't I?");
message("My name is Apollo Justice.\nI'm a defense attorney.");
message("This is my second year. My first\n was quite busy so I expect the same.");
message("I work with Mr. Wright, former attorney,\n and his adopted daughter Trucy.");
loadandplaysfx("sfx-dooropens.wav",0);
message("Oh, there's Mr. Wright, Trucy and\nthe defendant.");
runscript("pw_whitemessagebox");
runscript("showpwchar");
runscript("setlipsynctochar");
runscript("pw_enablehobophoenixnormal");
runscript("pw_setnameboxtophoenix");
message("Good morning Apollo. Are you prepared\nfor today's trial?");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Yes Mr. Wright. I was up last night late\nfinishing looking over the files.");
runscript("setlipsynctochar");
runscript("pw_enablehobophoenixlaugh");
runscript("pw_setnameboxtophoenix");
message("I'm sure you'll do well then.");
runscript("pw_enabletrucynormal");
runscript("pw_setnameboxtotrucy");
message("I'll be helping you out today Polly!");
setvar([profilenumber],801);
runscript("addprofile");
runscript("pw_enabletrucyhattip");
message("So you can count on me to save\n your backside.");
runscript("pw_bluemessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Gee thanks for the moral support.");
runscript("pw_whitemessagebox");
runscript("setlipsynctochar");
runscript("pw_setnameboxtophoenix");
runscript("pw_enablehobophoenixnormal");
message("Ready to meet the defendant?");
runscript("pw_setnameboxtoapollo");
runscript("setlipsynctonoone");
message("Yes I'm ready. Show me to him.");
runscript("pw_enablezaknormal");
runscript("pw_bluemessagebox");
message("So this is the defendant, the famous\n Zak Daniels.");
runscript("pw_whitemessagebox");
message("Good morning Mr. Daniels. I'm your\nattorney, Apollo Justice.");
runscript("setlipsynctochar");
runscript("pw_enablezakhappy");
runscript("pw_setnameboxtozak");
message("You look a little weak. Are you sure you're\n up to today's trial punk?");
runscript("pw_bluemessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Did he just...insult me?");
runscript("setlipsynctochar");
runscript("pw_whitemessagebox");
runscript("pw_enablezakhappy");
runscript("pw_setnameboxtozak");
message("Haha, i'm just messing with you.\nNo need to get angry.");
runscript("pw_enablezaknormal");
message("So you're my attorney?");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Yes that's right, Mr. Daniels.");
runscript("setlipsynctochar");
runscript("pw_enablezaklaughs");
runscript("pw_setnameboxtozak");
message("Call me Zak.");
runscript("pw_enablezaknormal");
message("So have you finished acquainting yourself\nwith the details of the case?");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
runscript("pw_bluemessagebox");
message("(Oh that's right. The case.)");
runscript("pw_whitemessagebox");
message("I'm a bit confused at one point. Can\nyou explain it to me?");
runscript("setlipsynctochar");
runscript("pw_enablezaknormal");
runscript("pw_setnameboxtozak");
message("Huh? What confuses you?");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("The crime itself. Can you explain it?");
runscript("setlipsynctochar");
runscript("pw_enablezaknormal");
runscript("pw_setnameboxtozak");
message("Very well.");
runscript("pw_enablezakthinking");
message("It was Wednesday night and practise had\njust finished. I was packing away the\nequipment when BANG!");
message("A gunshot rang through the gym. I rushed\n to the sound and soon, a second shot\n went off.");
message("I came to the lockers and found Coach\nslumped on the ground.");
message("My team soon found me and seconds\nlater, I was arrested as police showed up.");
runscript("setlipsynctonoone");
runscript("pw_bluemessagebox");
runscript("pw_setnameboxtoapollo");
message("(My bracelet didn't react, so he musn't\n be lying.)");
runscript("pw_whitemessagebox");
message("They arrested you just like that?");
runscript("setlipsynctochar");
runscript("pw_enablezakmad");
runscript("pw_setnameboxtozak");
message("Yep. Apparently someone witnessed the\ncrime and said it was me.");
runscript("pw_bluemessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("(Ouch, that's bad.)");
runscript("pw_whitemessagebox");
message("Zak, I have one question to ask you.");
runscript("setlipsynctochar");
runscript("pw_enablezaknormal");
runscript("pw_setnameboxtozak");
message("Yes?");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Did you kill Ryan Carter?");
runscript("setlipsynctochar");
runscript("pw_enablezaknormal");
runscript("pw_setnameboxtozak");
wait(20);
message("No I didn't.");
runscript("pw_bluemessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("(No reaction. He's innocent.)");
runscript("pw_whitemessagebox");
runscript(pw_setnameboxtobailiff");
message("Will the defense and defendant enter the\ncourtroom now.");
message("The trial is about to commence.");
runscript("setlipsynctochar");
runscript("pw_enablehobophoenixbigeyes");
runscript("pw_setnameboxtophoenix");
message("Oh I nearly forgot. Here's the\nautopsy report Apollo.");
setvar([evidencenumber],902);
runscript("addevidence");
setvar([evidencenumber],902);
setvar([pw_headeviaddmsg],"");
setvar([pw_taileviaddmsg]," was added\nto the Court Record.");
runscript("pw_startevidenceadd");
runscript("pw_enablehobophoenixbigeyes");
runscript("pw_setnameboxtophoenix");
message("Good luck now!");
runscript("pw_enabletrucybounce");
message("Let's go Polly!");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
runscript("pw_enablezaknormal");
message("Are you ready Zak?");
runscript("setlipsynctochar");
runscript("pw_enablezakhappy");
runscript("pw_setnameboxtozak");
message("I'm ready. I have faith in you.");
stopmp3(0);
runscript("pw_hidemessagebox");
jumptoscript("case1_trialbegins");
[case1_trialbegins]
setbgsize(0,0);
setvar([profilenumber],802);
runscript("addprofile");
runscript("pw_showadvarrowmenu");
runscript("pw_settypewritermsgbox");
runscript("pw_greenmessagebox");
runscript("pw_showmessagebox");
message(" February 7th, 10:00 AM\n District Court\n Courtroom No. 2");
runscript("pw_showcourtroomoverview");
loadandplaysfx("sfx-gallery.wav",0);
wait(144);
runscript("pw_showcourtroomoverview");
runscript("pw_showgavelhit");
runscript("pw_whitemessagebox");
runscript("pw_showjudgestand");
runscript("showpwchar");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
runscript("setlipsynctochar");
runscript("pw_showmessagebox");
loadandplaymp3("music/103 Investigation ~ Middlegame 2009.mp3",0,"O");
message("Court is now in session for the\ntrial of Zak Daniels.");
message("Are the prosecution and defense\nready?");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynenormal");
runscript("pw_setnameboxtopayne");
message("The prosecution is ready,\nYour Honor.");
setvar([profilenumber],803);
runscript("addprofile");
runscript("pw_hidemessagebox");
setvar([sld_targetcharanim],"pw_enableapollonormal");
runscript("pw_slideprosecutortoattoney");
runscript("pw_setnameboxtoapollo");
messageauto("The defense is um...");
wait(10);
messageappendauto("Ready, Your Honour.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
message("Mr. Justice! It's been a while.");
message("Why I think the last time you\n were in here was for that trial.");
runscript("pw_showattorneystand");
runscript("pw_enableapollonormal");
runscript("pw_setnameboxtoapollo");
message("Yes that's um...correct, Your Honour.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgeno");
runscript("pw_setnameboxtojudge");
message("I see.");
runscript("pw_enablejudgenormal");
message("Mr. Justice. I noticed you stumbled\n with your statement.");
runscript("pw_showattorneystand");
runscript("pw_enableapollosweating");
runscript("pw_setnameboxtoapollo");
message("I did?");
runscript("pw_showjudgetable");
runscript("pw_enablejudgeno");
runscript("pw_setnameboxtojudge");
message("Yes, you did.");
runscript("pw_enablejudgenormal");
message("Mr. Justice, I'd like to ask you\na couple of questions, if that's alright?");
runscript("pw_showattorneystand");
runscript("pw_enableapollosweating");
runscript("pw_setnameboxtoapollo");
message("Questions, Your Honour?");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
message("Yes, a couple to test if you're ready\nand prepared for this trial.");
message("Will this be alright?");
runscript("pw_showattorneystand");
runscript("pw_enableapolloconfidenta");
runscript("pw_setnameboxtoapollo");
message("Of course! Throw them at me.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
message("Very well.");
runscript("pw_showcocouncilstand");
runscript("pw_enabletrucycourtnormal");
runscript("pw_setnameboxtotrucy");
message("Remember to check the Court Record\n if you forget Polly!");
jumptoscript("presentcarterprofile");
[presentcarterprofile]
loadandplaymp3("music/105 Logic ~ The Way to the Truth.mp3",0,"O");
runscript("pw_greenmessagebox");
definevar([signal],"int");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
messageauto("Who is the");
runscript("pw_redmessagebox");
messageappendauto("victim");
runscript("pw_greenmessagebox");
messageappendauto("in this trial?");
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
runscript("pw_hidemessagebox");
runscript("pw_raisetakethat");
wait(6);
if(<compare([currentitemcode],"equal",802)>,<jumptoscript("presentcarterevidencecorrect")>,<jumptoscript("presentcarterevidencewrong")>);
[presentcarterevidencecorrect]
runscript("pw_whitemessagebox");
runscript("pw_showadvarrowmenu");
runscript("pw_showattorneystand");
runscript("pw_enableapollodocument");
runscript("setlipsynctochar");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtoapollo");
message("The victim's name was Ryan Carter,\n,Your Honour.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenod");
runscript("pw_setnameboxtojudge");
message("That is correct, Mr. Justice");
runscript("pw_enablejudgenormal");
message("However, I am not satisfied.\nMr. Justice...");
jumptoscript("case1_question1");
[presentcarterevidencewrong]
runscript("pw_whitemessagebox");
runscript("pw_showjudgetable");
runscript("pw_showmessagebox");
runscript("pw_showadvarrowmenu");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
runscript("pw_showmessagebox");
message("...");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynefullfwoosh");
runscript("pw_setnameboxtopayne");
message("...");
runscript("pw_showcocouncilstand");
runscript("pw_enabletrucyprofile");
runscript("pw_setnameboxtotrucy");
message("...");
runscript("pw_showattorneystand");
runscript("pw_apollosweating2");
runscript("pw_setnameboxtoapollo");
runscript("pw_bluemessagebox");
message("(Er..better try that again)");
[case1_question1]
runscript("pw_enablejudgemad");
messageauto("How was the victim murdered?");
runscript("pw_showselectananswer");
setvar([pw_maxquestions],3);
replacetexture(30500,"PW/extra/choice1-1.png");
replacetexture(30501,"PW/extra/choice2-1.png");
replacetexture(30502,"PW/extra/choice3-1.png");
setvar([pw_q1gfx],30500);
setvar([pw_q2gfx],30501);
setvar([pw_q3gfx],30502);
runscript("hidepwmenu");
runscript("pw_setupquestions");
runscript("pw_showquestion");
waitsignal("qreply",[qreplysignal]);
runscript("pw_hideselectananswer");
runscript("hidepwmenu");
runscript("pw_showadvarrowmenu");if(<compare([qreplysignal],"equal",3)>,<jumptoscript("case1_q1a1")>,<jumptoscript("case1_q1a2")>,<jumptoscript("case1_q1a3")>);
[case1_q1a1]
runscript("pw_showattorneystand");
runscript("pw_showmessagebox");
runscript("pw_enableapolloconfidenta");
runscript("pw_setnameboxtoapollo");
message("The victim was shot in the brain,\nYour Honour.");
jumptoscript("continued_trial");
[case1_q1a2]
runscript("pw_showattorneystand");
runscript("pw_enableapolloconfidentb");
runscript("pw_setnameboxtoapollo");
runscript("pw_showmessagebox");
message("The victim was stabbed in the heart,\nYour Honour.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgeno");
runscript("pw_setnameboxtojudge");
message("I'm afraid that's incorrect.");
runscript("pw_showattorneystand");
runscript("pw_enableapollosweating");
runscript("pw_setnameboxtoapollo");
message("Oh...er...");
message("I'll..ah try again.");
runscript("case1_question1");
[case1_q1a3]
runscript("pw_showattorneystand");
runscript("pw_showmessagebox");
runscript("pw_enableapollonormal");
runscript("pw_setnameboxtoapollo");
message("The victim was strangled,\nYour Honour.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgeno");
runscript("pw_setnameboxtojudge");
message("That's incorrect.");
message("Please try again.");
runscript("case1_question1");
[continued_trial]
stopmp3(0);
runscript("pw_showadvarrowmenu");
runscript("pw_whitemessagebox");
runscript("pw_showjudgetable");
runscript("showpwchar");
runscript("pw_enablejudgenod");
runscript("pw_setnameboxtojudge");
runscript("setlipsynctochar");
runscript("pw_showmessagebox");
message("That's correct Mr. Justice.");
runscript("pw_enablejudgenormal");
message("I believe we can resume the trial\n now. You have shown that you\n are ready.");
message("Mr. Payne, your opening statement\nplease.");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynefwoosh");
runscript("pw_setnameboxtopayne");
message("Very well.");
loadandplaymp3("music/108 Tricks and Gimmicks.mp3",0,"O");
runscript("pw_enableoldpaynenormal");
message("As the court is aware, the victim Ryan\nCarter, was murdered 3 nights ago.");
message("This happened at the Californian Ring,\nthe home stadium of the Eagles, right after\npractise had just finished.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
message("Practise, Mr. Payne?");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynenormal");
runscript("pw_setnameboxtopayne");
runscript("pw_enableoldpaynenormal");
message("Yes. Their weekly session.");
message("They had just finished it and while\neveryone was in the lockers...");
message(" The defendant murdered the victim!");
stopmp3(0);
runscript("pw_showcourtroomoverview");
loadandplaysfx("sfx-gallery.wav",0);
wait(144);
runscript("pw_hidecourtroomoverview");
runscript("pw_showgavelhit");
runscript("pw_showjudgetable");
runscript("pw_showmessagebox");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
message("Mr. Payne! I hope you have evidence to support this!");
runcript("pw_showprosecutorstand");
runscript("pw_enableoldpaynetap");
runscript("pw_setnameboxtopayne");
message("Of course. Not only do I have evidence but\nI have a witness to the crime itself.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
message("A witness you say?");
runcript("pw_showprosecutorstand");
runscript("pw_enableoldpaynetap");
runscript("pw_setnameboxtopayne");
message("Yes, one of the defendant's team members\n in fact.");
runscript("pw_enableoldpaynenormal");
message("However before I call him, I would\n like to summon Detective Ema Skye to the stand.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenod");
runscript("pw_setnameboxtojudge");
message("Very well. Bailiff, escort Detective Skye\nto the stand.");
runscript("pw_showwitnessstand");
runscript("pw_enableemaskyesnack");
runscript("pw_setnameboxtoema");
loadandplaymp3("music/103 Investigation ~ Middlegame 2009.mp3",0,"O");
messageauto("Hey Apollo, Trucy.");
setvar([profilenumber],804);
runscript("addprofile");
runscript("pw_greenmessagebox");
messageappendauto("*munch*");
loadandplaysfx("munch1.wav",0);
runscript("pw_whitemessagebox");
message("What's up?");
runscript("pw_slidewitnesstoattorney");
runscript("pw_enableapollonormal");
runscript("pw_setnameboxtoapollo");
message("Oh just the usual. You know,\n trials and all that.");
runscript("pw_showcocouncilstand");
runscript("pw_enabletrucynormal");
runscript("pw_setnameboxtotrucy");
message("Yeah, just the usual.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgewarning");
runscript("pw_setnameboxtojudge");
message("This is a court of law, not a\n court of personal talk. Refrain\n yourselves from speaking personally.");
runscript("pw_greenmessagebox");
runscript("pw_enablejudgesurprised");
message("*katonk* *katonk*");
loadandplaysfx("sfx-snackood.wav",0);
loadandplaysfx("sfx-snackood.wav",0);
runscript("pw_whitemessagebox");
setvar([pw_evidtoshowinbox],2001);
runscript("pw_showflyingevidboxright");
message("Hm? What's this? Some sort\n of food?");
runscript("pw_hideflyingevidboxright");
runscript("pw_enablejudgewarning");
messageauto("I'm afraid I am going to have");
runscript("pw_greenmessagebox");
messageappendauto("*munch* *munch*");
loadandplaysfx("munch1.wav",0);
loadandplaysfx("munch2.wav",0);
runscript("pw_whitemessagebox");
runscript("pw_enablejudgesurprised");
message("Oh my. That's very tasty.");
runscript("pw_showwitnessstand");
runscript("pw_enableemaskyeadjust");
runscript("pw_setnameboxtoema");
messageauto("Of course it is");
runscript("pw_greenmessagebox");
runscript("pw_enableemaskyeeating");
messageappendauto("*munch* *munch*");
loadandplaysfx("munch1.wav",0);
loadandplaysfx("munch2.wav",0);
runscript("pw_whitemessagebox");
message("Have some more");
runscript("pw_showjudgetable");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
message("Thanks!");
runscript("pw_greenmessagebox");
message("*munch* *munch*");
loadandplaysfx("munch1.wav",0);
loadandplaysfx("munch2.wav",0);
runscript("pw_showattorneystand");
runscript("pw_enableapollonormal");
runscript("pw_setnameboxtoapollo");
message("*munch* *munch*");
loadandplaysfx("munch1.wav",0);
loadandplaysfx("munch2.wav",0);
runscript("pw_showcocouncilstand");
message("pw_enabletrucycourtnormal");
runscript("pw_setnameboxtotrucy");
message("*munch* *munch*");
loadandplaysfx("munch1.wav",0);
loadandplaysfx("munch2.wav",0);
runscript("pw_objectionp");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynesweating");
runscript("pw_setnameboxtopayne");
message("Your Honour, this is not the time to be\nsnacking. This is a murder trial!");
runscript("pw_showjudgetable");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
loadandplaysfx("sfx-lightbulb.wav",0);
message("Ah your right! Forgive me Mr. Payne");
runscript("pw_showprosecutorstand");
runscript("pw_enableoldpaynetap");
runscript("pw_setnameboxtopayne");
message("It's okay, Your Honour. The defense\n must have confounded you.");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenod");
runscript("pw_setnameboxtojudge");
message("Yes, your right");
runscript("pw_showattorneystand");
runscript("pw_enableapollosweating");
runscript("pw_setnameboxtoapollo");
runscript("pw_bluemessagebox");
message("(Your Honour, don't believe that!)");
runscript("pw_showjudgetable");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
message("Now Detective Skye. Testify about\n the police arriving to the scene.");
runscript("pw_showwitnessstand");
runscript("pw_enableemaskyeadjust");
runscript("pw_setnameboxtoema");
message("Very well.");
stopmp3(0);
runscript("pw_showwitnesstestimony");
runscript("pw_showtestimony");
[witnesstestimony]
loadandplaymp3("107 Confrontation ~ Moderato 2009.mp3",0,"O");
runscript("showpwchar");
runscript("pw_showwitnessstand");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
runscript("pw_enableemaskyeglasses");
messageinstantauto("\n --When we got there--");
setmsgboxtextcolor(255,255,255,255);
runscript("pw_showwitnesstestimony");
runscript("pw_showtestimony");
runscript("pw_setnameboxtoema");
runscript("pw_enableemaskyeglasses");
runscript("pw_greenmessagebox");
message("We received a call at exactly 5:10PM.");
message("The person said a murder had occured\nso we rushed to the Ring.");
message("We got there relatively quickly and\nfound the defendant standing over the victim's\nbody with a gun in hand.");
message("The victim was dead, slouched\nover.");
message("Thanks to Forensics, we were able\nto prove the defendant murdered the victim.");
message("We checked the ballistic markings of\n the bullet extracted from the victim's head and\nfound a perfect match with the gun.");
wait(10);
stopmp3(0);
jumptoscript("talk2");
[talk2]
runscript("showpwchar");
runscript("pw_showjudgetable");
runscript("pw_enablejudgesurprised");
runscript("pw_setnameboxtojudge");
runscript("pw_showmessagebox");
message("Hm, a decisive testimony. Well done\nDetective Skye.");
runscript("pw_showwitnessstand");
runscript("pw_enableemaskyeadjust");
runscript("pw_setnameboxtoema");
message("Thanks!");
runscript("pw_slidewitnesstoattorney");
runscript("pw_enableapollosweating");
runscript("pw_setnameboxtoapollo");
runscript("pw_bluemessagebox");
message("(That testimony was flawless! How can\nI prove my client's innocence now?");
runscript("pw_showjudgetable");
runscript("pw_whitemessagebox");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
message("Mr. Justice, your cross-examination please.");
runscript("pw_showcocouncilstand");
runscript("pw_enabletrucycourtnormal");
runscript("pw_setnameboxtotrucy");
message("Polly, do you remember what cross-examination is?");
jumptoscript("case1_question3");
[case1_question3]
runscript("pw_setnameboxtoapollo");
runscript("setlipsynctonoone");
messageauto("Um...");
runscript("pw_showmessagebox");
runscript("pw_");showselectananswer");
setvar([pw_maxquestions],2);
replacetexture(30503."PW/extra/choice1-2.png");
replacetexture(30504,"PW/extra/choice2-2.png");
setvar([pw_q1gfx],30503);
setvar([pw_q2gfx],30504);
runscript("pw_doquestion");
definevar([pw_answer],"string");
setvar([pw_answer],"case1_q3a");
appendtostring([pw_answer],[pw_qresponse]);
runscript("pw_hideselectananswer");
runscript([pw_answer]);
[case1_q3a]
runscript("pw_showcocouncilstand");
runscript("setlipsynctonoone");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtoapollo");
message("Of course Trucy. Why wouldn't I?");
runscript("pw_enabletrucycourtthinking");
runscript("pw_setnameboxtotrucy");
runscript("setlipsynctochar");
message("Um, no reason.");
runscript("pw_enabletrucycourtnormal");
message("Get ready Polly! It's about to begin.");
jumptoscript("crossstart");
[case1_q3b]
runscript("pw_enabletrucycourtnormal");
runscript("pw_showcocouncilstand");
runscript("pw_setnameboxtoapollo");
runscript("setlipsynctonoone");
message("Er..no");
runscript("pw_enabletrucycourtprofile");
runscript("pw_setnameboxtotrucy");
runscript("setlipsynctochar");
message("Polly how could you?");
runscript("pw_enabletrucycourtnormal");
message("Well basically, you are looking for contradictions\nin the testimony with the evidence in\n the court record.");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("So I object?");
runscript("setlipsynctochar");
runscript("pw_enabletrucycourtthinking");
runscript("pw_setnameboxtotrucy");
message("You can press for information and object\nfor when you discover contradictions but be\nccareful!");
message("If you present the wrong evidence,\n you'll be given a penalty.");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtoapollo");
message("Okay, I think I understand now.");
runscript("pw_enabletrucycourtnormal");
runscript("pw_setnameboxtoapollo");
message("I'm ready");
jumptoscript("crossstart");
Thanks.