#include(pwlib/pwlib.hlsl)
[game]
jumptoscript("setup");
[setup]
runscript("pw_initpwlib");
runscript("pw_initpwbgs");
runscript("charcreation");
runscript("load");
runscript("evidenceprofilecreation");
changetitle("Turnabout of Mice and Men");
jumptoscript("run");
[load]
loadtexture(80900, "PW/evidence/ev_case4_Pistol.png");
loadtexture(80901, "PW/evidence/autopsy report.png");
loadtexture(80902, "PW/evidence/envelope.png");
loadtexture(80903, "PW/profile/missile.png");
loadtexture(80904, "PW/evidence/article.png");
loadtexture(80905, "PW/evidence/lawyerbadge.png");
loadtexture(80910, "PW/black.png");
loadtexture(80911, "PW/autopsyreport.png");
loadtexture(80912, "PW/bank.png");
loadtexture(80913, "PW/slimstestimony.png");
loadtexture(80914, "PW/carlsontestimony.png");
loadtexture(80916, "PW/article.png");
loadtexture(80917, "PW/cover.png");
loadtexture(80920, "PW/pic1.png");
loadtexture(80921, "PW/pic2.png");
loadtexture(80922, "PW/pic3.png");
loadtexture(80923, "PW/pic4.png");
loadtexture(80924, "PW/pic5.png");
loadtexture(90900, "PW/profile/garyuu.png");
loadtexture(90901, "PW/profile/onamida.png");
loadtexture(90902, "PW/profile/edgeworth.png");
loadtexture(90903, "PW/profile/gumshoe.png");
loadtexture(90904, "PW/profile/judge.png");
loadtexture(90905, "PW/profile/takita.png");
loadtexture(90906, "PW/profile/regina.png");
loadtexture(90907, "PW/profile/igarashi.png");
replacetexture(-4800, "PW/misc/totaltransparent.png");
replacetexture(-4806, "PW/CRO/CROJudge.png");
replacetexture(-4807, "PW/CRO/CROPrEdgeworth.png");
replacetexture(-4808, "PW/CRO/CRODfPhoenix.png");
setgenobjgraphic("pw_crowitness",-4800);
setgenobjgraphic("pw_crojudge",-4806);
setgenobjgraphic("pw_croprosecutor",-4807);
setgenobjgraphic("pw_croattorney",-4808);
[charcreation]
runscript("pw_createkristoph");
runscript("pw_creategumshoe");
runscript("pw_createkudo");
runscript("pw_createwocky");
runscript("pw_createfawles");
runscript("pw_createjudge");
runscript("pw_createphoenix");
runscript("pw_createedgeworth");
[evidenceprofilecreation]
setvar([evidencenumber],900);
setvar([evidencegfs],80905);
setvar([evidencegfl],80905);
setvar([evidencesup], 0);
setvar([evidencename], "Attorney's Badge");
setvar([evidencesdesc], "Type: Other \nOne of my possesions.");
setvar([evidenceldesc], "A Lawyer's Badge. \nI will not present this as evidence.");
runscript("createevidence");
setvar([evidencenumber],901);
setvar([evidencegfs],80901);
setvar([evidencegfl],80901);
setvar([evidencesup], 1);
setvar([evidencename], "Autopsy Report");
setvar([evidencesdesc], "Type: Documents \nReceived before start of trial.");
setvar([evidenceldesc], "Press Check for more details.");
runscript("createevidence");
setvar([evidencestex], 80911);
runscript("setevidencepagesimple");
setvar([evidencenumber],902);
setvar([evidencegfs],80902);
setvar([evidencegfl],80902);
setvar([evidencesup], 1);
setvar([evidencename], "George's Bank Account");
setvar([evidencesdesc],"Type: Docs \nRecieved from George.");
setvar([evidenceldesc], "It's a bank statement. \nPress check for more info");
runscript("createevidence");
setvar([evidencestex], 80912);
runscript("setevidencepagesimple");
setvar([evidencenumber],903);
setvar([evidencegfs],80902);
setvar([evidencegfl],80902);
setvar([evidencesup], 1);
setvar([evidencename], "Slim's testimony");
setvar([evidencesdesc],"Type: Docs \nRecieved from George.");
setvar([evidenceldesc], "Slim couldn't make it. \nPress check for more info");
runscript("createevidence");
setvar([evidencestex], 80913);
runscript("setevidencepagesimple");
setvar([evidencenumber],904);
setvar([evidencegfs],80902);
setvar([evidencegfl],80902);
setvar([evidencesup], 1);
setvar([evidencename], "Carlson's testimony");
setvar([evidencesdesc],"Type: Docs \nRecieved from Edgeworth.");
setvar([evidenceldesc], "The Prosecution has these, too!. \nPress check for more info");
runscript("createevidence");
setvar([evidencestex], 80914);
runscript("setevidencepagesimple");
setvar([evidencenumber],906);
setvar([evidencegfs],80903);
setvar([evidencegfl],80903);
setvar([evidencesup], 0);
setvar([evidencename], "Dead Puppy");
setvar([evidencesdesc],"Type: Dead Thing \nRecieved from George.");
setvar([evidenceldesc], "Apparently, Lennie killed it before victim's death. \nHow does this help my case?");
runscript("createevidence");
setvar([evidencenumber],907);
setvar([evidencegfs],80904);
setvar([evidencegfl],80904);
setvar([evidencesup], 1);
setvar([evidencename], "Weed Daily");
setvar([evidencesdesc],"Type: Docs \nRecieved from George.");
setvar([evidenceldesc], "Lennie supposedly raped a woman in Weed. n\As if the situation wasn't bad enough.");
runscript("createevidence");
setvar([evidencestex], 80916);
runscript("setevidencepagesimple");
setvar([evidencenumber],908);
setvar([evidencegfs],80900);
setvar([evidencegfl],80900);
setvar([evidencesup], 0);
setvar([evidencename], "Luger");
setvar([evidencesdesc],"Type: A gun. Obviously. \nSiezed from George.");
setvar([evidenceldesc], "George shot Lennie with it. \nThis day just gets better and better.");
runscript("createevidence");
setvar([profilenumber],800);
setvar([profilegfs],90900);
setvar([profilegfl],90900);
setvar([profilename],"George Milton");
setvar([profilesdesc],"Age: 25\nGender: Male");
setvar([profileldesc],"A ranchhand who asked me to take this case.");
runscript("createprofile");
setvar([profilenumber],801);
setvar([profilegfs],90901);
setvar([profilegfl],90901);
setvar([profilename],"Lennie Smalls");
setvar([profilesdesc],"Age: 25\nGender: Male");
setvar([profileldesc],"A challenged farmhand. \nBest friends with George.");
runscript("createprofile");
setvar([profilenumber],802);
setvar([profilegfs],90902);
setvar([profilegfl],90902);
setvar([profilename],"Miles Edgeworth");
setvar([profilesdesc],"Age: 27\nGender: Male");
setvar([profileldesc],"A gifted Prosecuter who seeks the truth. \nPlay Ace Attorney Investigations.");
runscript("createprofile");
setvar([profilenumber],803);
setvar([profilegfs],90903);
setvar([profilegfl],90903);
setvar([profilename],"Dick Gumeshoe");
setvar([profilesdesc],"Age: 32\nGender: Male");
setvar([profileldesc],"A foolish Detective. \nShares a striking similarity to Lennie.");
runscript("createprofile");
setvar([profilenumber],804);
setvar([profilegfs],90904);
setvar([profilegfl],90904);
setvar([profilename],"The Judge");
setvar([profilesdesc],"Age: 25\nGender: Male");
setvar([profileldesc],"The naive judge. \nI see a pattern...");
runscript("createprofile");
setvar([profilenumber],805);
setvar([profilegfs],90905);
setvar([profilegfl],90905);
setvar([profilename],"Curley ???");
setvar([profilesdesc],"Age: 21\nGender: Male");
setvar([profileldesc],"Son of Ranch owner. \nHates George and Lennie.");
runscript("createprofile");
setvar([profilenumber],806);
setvar([profilegfs],90906);
setvar([profilegfl],90906);
setvar([profilename],"Curley's wife");
setvar([profilesdesc],"Age: 20\nGender: Female");
setvar([profileldesc],"The victim. Real name unKnown. \nAspired to be an actress.");
runscript("createprofile");
setvar([profilenumber],807);
setvar([profilegfs],90907);
setvar([profilegfl],90907);
setvar([profilename],"Candy ???");
setvar([profilesdesc],"Age: 68\nGender: Male");
setvar([profileldesc],"Senior Ranchhand. \nHe really needs a hug.");
runscript("createprofile");
[run]
setbg(80917);
runscript("pw_showmain");
waitresponse();
runscript("pw_hidemain");
placefadescreen(40,"I");
wait(40);
jumptoscript("intromovie");
[intromovie]
setbg(80920);
placefadescreen(40,"O");
wait(40);
loadandplaymp3("music/heartbroken.mp3",0,"N");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
messageauto("I've done another bad thing, haven't I?");
wait(200);
messageauto("I thought you were mad at me, George.");
wait(200);
loadandplaysfx("sfx-scenechange.wav",0);
placeflash(5);
setbg(80921);
messageauto("Naw, I'd never be mad at you, Lennie. \nI never been mad.");
wait(200);
messageauto("And...I ain't now. Just let you know that.");
wait(200);
loadandplaysfx("sfx-badum.wav",0);
placeflash(6);
setbg(80922);
messageauto("Grrrk...");
wait(100);
runscript("pw_hidemessagebox");
loadandplaysfx("sfx-badum.wav",0);
placeflash(6);
setbg(80923);
wait(80);
loadandplaysfx("sfx-badum.wav",0);
placeflash(7);
setbg(80924);
wait(50);
loadandplaysfx("sfx-gunshot3.wav",0);
placeflash(5);
setbg(80910);
wait(400);
runscript("pw_showmessagebox");
messageauto("I...");
wait(80);
messageauto("can't...");
wait(100);
messageauto("George, what was that?");
wait(100);
loadandplaysfx("sfx-sirens.wav",0);
messageauto("POLICE! FREEZE! \nYOU'RE COMIN' WITH US!");
wait(200);
messageauto("George! Heeeeellllllppppp!!!");
wait(300);
runscript("pw_bluemessagebox");
messageauto("(Don't worry, Lennie. I know someone...)");
wait(90);
runscript("pw_whitemessagebox");
runscript("pw_hidemessagebox");
placefadescreen(1,"I");
wait(1);
jumptoscript("enterscene1");
[enterscene1]
setvar([evidencenumber],900);
runscript("addevidence");
setvar([evidencenumber],901);
runscript("addevidence");
setvar([evidencenumber],902);
runscript("addevidence");
setvar([evidencenumber],903);
runscript("addevidence");
setvar([evidencenumber],906);
runscript("addevidence");
setvar([evidencenumber],907);
runscript("addevidence");
setvar([profilenumber],800);
runscript("addprofile");
setvar([profilenumber],801);
runscript("addprofile");
setvar([profilenumber],806);
runscript("addprofile");
jumptoscript("prescene1");
[prescene1]
runscript("pw_usepwbgcourthall");
runscript("pw_showadvarrowmenu");
loadandplaymp3("music/lounge.mp3",0,"N");
jumptoscript("scene1");
[scene1]
placefadescreen(50,"O");
wait(50);
runscript("setlipsynctochar");
runscript("pw_showmessagebox");
runscript("showpwchar");
runscript("pw_setnameboxtokristoph");
runscript("pw_enablekristophglare");
message("Are you sure you're up to this, Wright?");
runscript("pw_enablekristophtwitch");
message("You're a good lawyer and all, but...");
runscript("pw_setnameboxtophoenix");
runscript("setlipsynctonoone");
loadandplaysfx("sfx-realization.wav", 0);
message("What do you mean, but?");
wait(20);
runscript("pw_enablefawleschew");
wait(20);
loadandplaysfx("sfx-whoops.wav",0);
message("Oh. That explains a lot.");
runscript("pw_setnameboxtofawles");
runscript("setlipsynctochar");
message("I'm nervous, Mr. Wright. \nCan I pet hair?");
runscript("pw_setnameboxtophoenix");
runscript("setlipsynctonoone");
loadandplaysfx("sfx-angry.wav",0);
runscript("pw_shakescreen");
message("NOOO!!!!");
runscript("pw_setnameboxtofawles");
runscript("setlipsynctochar");
runscript("pw_enablefawlessad");
message("But the spikes, I wanna touch!");
runscript("pw_enablekristophglare");
runscript("pw_setnameboxtokristoph");
message("Do what the man says, Lennie.");
message("Or you'll get no rabbits.");
runscript("pw_setnameboxtophoenix");
runscript("setlipsynctonoone");
message("Heh. Lennie IS like a little kid");
stopmp3(0);
placefadescreen(50,"I");
wait(50);
jumptoscript("courtopening");
[courtopening]
placefadescreen(50,"O");
wait(50);
setbg(80910);
runscript("pw_crosizesalternative");
runscript("pw_hidemessagebox");
runscript("hidepwchar");
runscript("pw_settypewritermsgbox");
runscript("pw_greenmessagebox");
placefadescreen(1,"O");
runscript("pw_showmessagebox");
message(" April 1, 10:00 AM\n District Court\n Courtroom No. 2");
runscript("pw_hidemessagebox");
placefade("pw_bg","bg",0,"I");
runscript("pw_showcourtroomoverview");
loadandplaysfx("sfx-gallery.wav",0);
wait(144);
runscript("pw_hidecourtroomoverview");
runscript("pw_showgavelhit");
loadandplaymp3("music/courtstart.mp3",0,"N");
runscript("pw_whitemessagebox");
runscript("pw_showjudgetable");
runscript("showpwchar");
runscript("pw_enablejudgenormal");
runscript("pw_setnameboxtojudge");
runscript("setlipsynctochar");
runscript("pw_showmessagebox");
message("Court is now in session.");
runscript("pw_showprosecutorstand");
runscript("pw_setnameboxtoedgeworth");
runscript("pw_enableedgeworthconfident");
message("The prosecution is ready...as always.");
message("We have more than enough evidence...");
message("to convict the Defendant");
runscript("pw_enableedgeworthobjection");
wait(15);
runscript("pw_enableedgeworthhandondesk");
loadandplaysfx("sfx-objection.wav",0);
message("OF FIRST DEGREE MURDER!");
setvar([sld_targetcharanim],"pw_enablephoenixcertain");
runscript("pw_slideprosecutortoattoney");
runscript("pw_setnameboxtophoenix");
message("The defense can match the claim of \nthe Prosecution. Easily.");
message("In fact, our super evidence can win \nthe case for us!");
runscript("pw_showprosecutorstand");
loadandplaysfx("sfx-whoops.wav",0);
runscript("pw_enableedgeworthdamage");
wait(10);
runscript("pw_setnameboxtoedgeworth");
message("Grrrrrrrr...");
runscript("setlipsynctochar");
runscript("pw_enableedgeworthnormal");
message("The prosecution calls \nthe lead detective to the stand");
placefadescreen(120,"I");
stopmp3(0);
wait(120);
placefadescreen(120,"O");
wait(120);
loadandplaymp3("music/gumshoe.mp3",0,"N");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoenormal");
wait(100);
setvar([sld_targetcharanim], "pw_enableedgeworthpointing");
runscript("pw_slidewitnesstoprosecutor");
wait(10);
message("Name and Occupation, \nDetective Gumshoe.");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoehehe");
runscript("pw_setnameboxtogumshoe");
message("My name's Gumshoe. I'm a detective!");
message("Just like you said! \nWhy so redundant?");
loadandplaysfx("objectionedgeworth.wav", 0);
runscript("pw_raiseobjection");
setvar([sld_targetcharanim],"pw_enableedgeworthhandondesk");
runscript("pw_slidewitnesstoprosecutor");
runscript("pw_setnameboxtoedgeworth");
message("No Batman refrences!\nThat's a salary cut for you!");
runscript("setlipsynctonoone");
runscript("pw_orangemessagebox");
runscript("pw_setnameboxtogumshoe");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoedepressed");
messageauto("---Gumshoe's Salary--- \nOld:$23000");
wait(50);
loadandplaysfx("sfx-damage2.wav", 0);
messageappend("\nNew:$1899");
runscript("pw_bluemessagebox");
runscript("pw_showattorneystand");
runscript("pw_enablephoenixsweating");
message("Gumeshoe, just give your testimony");
message("We don't have time for this.");
stopmp3(0);
placefadescreen(50,"I");
jumptoscript("begintest1");
[begintest1]
placefadescreen(1,"O");
runscript("pw_orangemessagebox");
runscript("showpwchar");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoenormal");
runscript("pw_showtestimony");
setvar([pw_crossmessage],"\n --The Crime Scene--");
runscript("pw_showwitnesstestimony");
runscript("pw_whitemessagebox");
runscript("pw_showmessagebox");
runscript("setlipsynctochar");
runscript("pw_setnameboxtogumshoe");
loadandplaymp3("music/moderate.mp3",0,"N");
message("The body was reported to the local sheriff.");
message("We responded as quickly \nas we could!");
runscript("pw_enablegumshoeangry");
message("The crime scene was a mess,\nso we thought there was a struggle!");
message("And, we have multiple witnesses! \nDecisive ones!");
placefadescreen(120,"I");
wait(120);
stopmp3(0);
placefadescreen(80,"O");
wait(80);
runscript("pw_setnameboxtojudge");
runscript("pw_enablejudgethink");
runscript("pw_showjudgetable");
runscript("pw_setlipsynctochar");
message("Interesting.");
message("Feenie, you may cross \nexamine the witness!");
runscript("pw_setnameboxtophoenix");
runscript("pw_showattorneystand");
runscript("pw_enablephoenixsweating");
message("Feenie? How did he know THAT?");
placefadescreen(120,"I");
wait(120);
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoehehe");
runscript("setlipsynctonoone");
runscript("pw_hidemessagebox");
runscript("startce1");
[startce1]
placefadescreen(50,"O");
wait(50);
setvar([pw_crossexamattorneycode],36);
setvar([pw_crossexamprosecutorcode],30);
setvar([pw_lifemax], 100.0);
setvar([pw_lifecurrent], 100.0);
runscript("pw_showmessagebox");
runscript("pw_setnameboxtononone");
message("The Testimony");
runscript("pw_showcrossexaminationvs");
runscript("pw_showpwmenubasicrec");
loadandplaymp3("moderate.mp3",0,"N");
jumptoscript("bce1");
[bce1]
runscript("hidepwmenu");
setvar([pwcrossexamstages],4);
runscript("pw_showlifebar");
runscript("begincrossexamination");
runscript("ce1.1");
[ce1.1]
definevar([signal], "int");
runscript("pw_greenmessagebox");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoenormal");
runscript("setlipsynctochar");
message("The crime was reported to the local sheriff.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("ce1.1present")>,<null()>);
if(<compare([signal],"equal",2)>,<jumptoscript("ce1.1press")>,<null()>);
if(<compare([signal],"equal",4)>,<jumptoscript("ce1.2")>,<null()>);
[ce1.1present]
setvar([pwonetypepresent],1);
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
runscript("objectionfail");
jumptoscript("ce1.1");
[ce1.1press]
runscript("holditwrong");
runscript("nextpwcrossexamsimple");
jumptoscript("ce1.2");
[ce1.2]
definevar([signal], "int");
runscript("pw_greenmessagebox");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoenormal");
runscript("setlipsynctochar");
message("We responded as quickly as possible.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("ce1.2present")>,<null()>);
if(<compare([signal],"equal",2)>,<jumptoscript("ce1.2press")>,<null()>);
if(<compare([signal],"equal",3)>,<jumptoscript("ce1.1")>,<null()>);
if(<compare([signal],"equal",4)>,<jumptoscript("ce1.3")>,<null()>);
[ce1.2present]
setvar([pwonetypepresent],1);
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
runscript("objectionfail");
jumptoscript("ce1.2");
[ce1.2press]
runscript("holditwrong");
runscript("nextpwcrossexamsimple");
jumptoscript("ce1.3");
[ce1.3]
definevar([signal], "int");
runscript("pw_greenmessagebox");
runscript("pw_showwitnessstand");
runscript("pw_enablegumshoenormal");
runscript("setlipsynctochar");
message("The area around the body was a mess \nso we though there was a struggle.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("ce1.3present")>,<null()>);
if(<compare([signal],"equal",2)>,<jumptoscript("ce1.3press")>,<null()>);
if(<compare([signal],"equal",3)>,<jumptoscript("ce1.2")>,<null()>);
if(<compare([signal],"equal",4)>,<jumptoscript("ce1.4")>,<null()>);
[ce1.3present]
setvar([pwonetypepresent],1);
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
if(<compare([evidencenumber],"equal",901)>,<jumptoscript("truth1")>,<null()>);
runscript("objectionfail");
jumptoscript("ce1.3");
[ce1.3press]
runscript("holditwrong");
runscript("nextpwcrossexamsimple");
jumptoscript("ce1.4");
[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_silentmessagebox]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
setmsgboxtickersound("");
[pw_shakescreen]
placeshake("pw_bg","bg",20,9,19);
placeshake("","msgbox",20,9,19);
placeshake("pwnamebox","genobj",20,9,19);
placeshake("pw_char","char",20,9,19);
[objectionfail]
loadandplaysfx("objectionfeenie.wav",0);
runscript("pw_raiseobjection");
runscript("pw_hidemessagebox");
setvar([sld_targetcharanim],"pw_enablephoenixobjection2");
runscript("pw_slidewitnesstoattorney");
wait(20);
loadandplaysfx("sfx-deskslam.wav",0);
runscript("pw_enablephoenixdeskslam");
runscript("showmessagebox");
runscript("setnameboxtophoenix");
runscript("pw_whitemessagebox");
message("That statement is clearly \ncontradicted by this evidence!");
runscript("pw_showjudgetable");
runscript("pw_enablejudgeangry");
runscript("pw_setnameboxtojudge");
message("I'm afraid you're wrong.");
message("try to think before you object \nnext time.");
modifyvar([pw_lifecurrent], "subtract", 20.0);
loadandplaysfx("sfx-damage2.wav",0);
runscript("pw_setnameboxtophoenix");
runscript("pw_setlipsynctonoone");
runscript("pw_bluemessagebox");
message("(THAT could have gone better!");
runscript("pw_setlipsynctochar");
runscript("pw_greenmessagebox");
if(<compare([pw_lifecurrent], "equal", 0.0)>,<jumptoscript("gameover")>,<null()>);
[holditwrong]
loadandplaysfx("holditfeenie.wav",0);
runscript("pw_raiseholdit");
runscript("pw_setnameboxtophoenix");
runscript("pw_slidewitnesstoattorney");
setvar([sld_targetcharanim],"pw_enablephoenixhandsondesk");
messageauto("I...");
loadandplay("objectionedgeworth.wav", 0);
runscript("pw_setnameboxtoedgeworth");
runscript("pw_slideattorneytoprosecutor");
runscript("pw_edgeworthsmirk");
wait(200);
runscript("pw_edgeworthconfident");
messageauto("I belive the correct term here is:");
wait(30);
messageappend(\n"You Fail");
message("Witness, Continue");
[gameover]
runscript("pw_hidelifebar");
runscript("pw_hidemessagebox");
placefade("pw_bg","bg",1,"I");
runscript("pw_showgavelhit");
runscript("pw_enablejudgenormal");
runscript("pw_showjudgetable");
runscript("pw_setnameboxtojudge");
placefade("pw_char","char",1,"I");
runscript("pw_whitemessagebox");
runscript("pw_showmessagebox");
message("That's enough!");
stopmp3(0);
message("This court sees no reason to\nfurther prolong the trial.");
message("The defense has failed to give\nthe court sufficient reason to\ndoubt the prosecution's claim.");
runscript("pw_enablejudgemad");
messageauto("This court finds the\ndefendant, ");
wait(10);
messageappend("Mr. Lennie Small...");
runscript("pw_showguilty");
runscript("pw_showmessagebox");
message("The accused will surrender\nto the court immediately,");
message("to be held pending trial at\na higher court within a\nmonth from today's date.");
runscript("pw_enablejudgenormal");
message("That is all.\nThis court is adjourned!");
runscript("pw_hidemessagebox");
replacetexture(4805,"PW/CRO/CROWtFawles.png");
runscript("pw_showcourtroomoverview");
loadandplaysfx("sfx-gallery.wav",0);
wait(144);
runscript("pw_hidecourtroomoverview");
runscript("pw_showgavelhit");
placefadescreen(60,"I");
wait(60);
setbgsize(0,0);
runscript("hidepwmenu");
placefadescreen(60,"O");
jumptoscript([run]);
[end]
hidegenobj("pw_courtbench");
runscript("pw_hidemessagebox");
runscript("hidepwmenu");
runscript("pw_endcase");