What is my liiiife?!?
Gender: Male
Location: UK
Rank: Admin
Joined: Tue Feb 27, 2007 11:02 am
Posts: 2504
It's not the code modifications that killed me, it really is my file. No idea why it's bricking AIGE though. I'll post the code here.
Code:
#include(pwlib/pwlib.hlsl)
[game]
jumptoscript("setup");
[setup]
runscript("pw_initpwlib");
runscript("pw_initpwbgs");
runscript("charcreation");
runscript("load");
runscript("evidenceprofilecreation");
changetitle("I'm a Trendy Tote Bag!");
jumptoscript("run");
[load]
loadtexture(80900,"PW/evidence/gun.png");
loadtexture(80901,"PW/evidence/lawyer badge.png");
loadtexture(80902,"PW/evidence/photo.png");
loadtexture(90900,"PW/profile/ema.png");
loadtexture(90901,"PW/profile/minuki.png");
loadtexture(70000,"cust/trucygs4.jpg");
loadtexture(70010,"cust/PWLibTutoMain.png");
loadtexture(-7000, "PW/CRO/CROIris.png");
loadtexture(-7001, "PW/CRO/CROJudge.png");
loadtexture(-7002, "PW/CRO/CROPayne.png");
loadtexture(-7003, "PW/CRO/CROPhoenixMaya.png");
[charcreation]
runscript("pw_createema");
runscript("pw_createtrucy");
[evidenceprofilecreation]
setvar([evidencenumber],900);
setvar([evidencegfs],80901);
setvar([evidencegfl],80901);
setvar([evidencesup],0);
setvar([evidencename],"Attorney's Badge");
setvar([evidencesdesc],"Type: Other\n One of my possessions.");
setvar([evidenceldesc],"It's my all important badge.\nIt shows that I'm a defense attorney.");
runscript("createevidence");
setvar([evidencenumber],901);
setvar([evidencegfs],80900);
setvar([evidencegfl],80900);
setvar([evidencesup],0);
setvar([evidencename],"Gun");
setvar([evidencesdesc],"Type:
Weapons\n Submitted as evidence\n by Prosecutor Von Karma.");
setvar([evidenceldesc],"The murder weapon.\nIt was shot once.");
runscript("createevidence");
setvar([evidencenumber],902);
setvar([evidencegfs],80902);
setvar([evidencegfl],80902);
setvar([evidencesup],1);
setvar([evidencename],"Trucy GS4 Promo");
setvar([evidencesdesc],"Type: Photo\nReceived from Trucy Wright.");
setvar([evidenceldesc],"A promo photo of Gyakuten Saiban \n4.");
runscript("createevidence");
setvar([evidencestex],7000);
runscript("setevidencepagesimple");
setvar([profilenumber],800);
setvar([profilegfs],90900);
setvar([profilegfl],90900);
setvar([profilename],"Ema Skye");
setvar([profilesdesc],"Age: 19\nGender: Female");
setvar([profileldesc],"An energetic girl that wants to be a \nforensic detective.");
runscript("createprofile");
setvar([profilenumber],801);
setvar([profilegfs],90901);
setvar([profilegfl],90901);
setvar([profilename],"Trucy Wright");
setvar([profilesdesc],"Age: 15\nGender: Female");
setvar([profileldesc],"A cheerful magician paradox.");
runscript("createprofile");
[run]
setbg(70010);
runscript("pw_showmain");
waitresponse();
runscript("pw_hidemain");
jumptoscript("casestart");
[casestart]
setvar([evidencenumber],900);
runscript("addevidence");
setvar([evidencenumber],901);
runscript("addevidence");
setvar([profilenumber],800);
runscript("addprofile");
setvar([profilenumber],801);
runscript("addprofile");
jumptoscript("enterscene1");
[enterscene1]
runscript("pw_usepwbgcourthall");
runscript("pw_showadvarrowmenu");
loadandplaymp3("music/02 Courtroom Lobby ~ New Prelude.mp3",0,"N");
jumptoscript("court");
[scene1]
runscript("setlipsynctochar");
runscript("showpwchar");
runscript("pw_showmessagebox");
runscript("pw_enableemanormal");
runscript("pw_setnameboxtoema");
message("Hi, I'm a Mac.");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("And I'm a PC.");
runscript("pw_enableemaexcited");
runscript("pw_setnameboxtoema");
message("Have you ever wondered what \nit would be like to live under \nthe sea?");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("That doesn't even fit.");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("To be honest I'm more of a \nDOS sort of person really.");
runscript("setlipsynctochar");
runscript("pw_enableemaexcited");
runscript("pw_setnameboxtoema");
message("That's because you're old!");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("That's from the dark ages even.");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("Hey! I was born around then!");
runscript("setlipsynctochar");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("Then that makes you a caveman.");
message("Here's a random picture of me, \ndaddy.");
runscript("addevidence");
setvar([evidencenumber],902);
setvar([pw_headeviaddmsg],"");
setvar([pw_taileviaddmsg]," was added\nto the Court Record.");
runscript("pw_startevidenceadd");
runscript("pw_hidemessagebox");
runscript("pw_raiseholdit");
runscript("pw_showmessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("Daddy?!?");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("It's easy to prove.");
jumptoscript("presenttrucyevidence");
[presenttrucyevidence]
definevar([signal],"int");
runscript("pw_setnameboxtonoone");
messageauto("(Show what proves that Trucy is \n Phoenix's paradox daughter!)");
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
runscript("pw_hidemessagebox");
loadandplaysfx("01_Phoenix - takethat.wav",0);
runscript("pw_raisetakethat");
wait(6);
if(<compare([currentitemcode],"equal",902)>,<jumptoscript("presenttrucyevidencecorrect")>,<jumptoscript("presenttrucyevidencewrong")>);
[presenttrucyevidencecorrect]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");
message("What about this?");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemahappy");
message("See! You have the same ears!");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("Well, actually I'm adopted.");
message("Ok, so who am I?");
jumptoscript("presenttrucyprofile");
[presenttrucyevidencewrong]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");
message("What about this?");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemanormal");
message("Nope.");
message("Now we'll have to start all \nover again.");
jumptoscript("scene1");
[presenttrucyprofile]
definevar([signal],"int");
runscript("pw_setnameboxtonoone");
runscript("setlipsynctonoone");
messageauto("(Answer the Obvious Question.)");
setvar([pwonetypepresent],2);
runscript("pw_forcepresent");
waitsignal("advance",[signal]);
runscript("pw_hidemessagebox");
loadandplaysfx("01_Phoenix - takethat.wav",0);
runscript("pw_raisetakethat");
wait(6);
if(<compare([currentitemcode],"equal",801)>,<jumptoscript("presenttrucyprofilecorrect")>,<jumptoscript("presenttrucyprofilewrong")>);
[presenttrucyprofilecorrect]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");
message("What about this?");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemahappy");
runscript("setlipsynctochar");
message("You got it!");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("I think it's time for an \narbitrary area search");
jumptoscript("simpleexamine");
[presenttrucyprofilewrong]
runscript("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");
message("What about this?");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemamad");
message("...");
message("Out of two possible easy choices \nyou got it wrong?");
message("We'll have to start again!");
jumptoscript("scene1");
[simpleexamine]
runscript("pw_showmessagebox");
setbuttonarea("pw_examinearea1",0,192,100,100);
setvar([pw_examinemaxplaces],1);
runscript("pw_showtouchananswer");
messageauto("So, what is wrong in this place?");
runscript("hidepwmenu");
runscript("pw_showspecialexamine");
runscript("pw_waitexaminetouch");
runscript("hidepwmenu");
runscript("pw_showadvarrowmenu");
runscript("pw_hidetouchananswer");
if(<compare([pw_examinearea],"equal",1)>,<jumptoscript("simpleexaminecorrect")>,<jumptoscript("simpleexaminewrong")>);
[simpleexaminecorrect]
("pw_showmessagebox");
runscript("pw_setnameboxtophoenix");
message("Here!");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemahappy");
runscript("setlipsynctochar");
message("All my brains are belong to you!");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("Um, thanks... I guess");
runscript("setlipsynctochar");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("Well, I guess it's time for a...");
message("POP QUIZ!");
runscript("pw_setnameboxtoema");
runscript("pw_enableemahappy");
message("Yay!");
jumptoscript("questionexample");
[simpleexaminewrong]
runscript("pw_showmessagebox");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("This is what proves... er...");
runscript("setlipsynctochar");
runscript("pw_setnameboxtoema");
runscript("pw_enableemanormal");
runscript("setlipsynctochar");
message("Sorry Mr. Wright.");
message("It looks like...");
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("I know, I know.");
message("You'll have to start again");
runscript("setlipsynctochar");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("You're learning");
jumptoscript("scene1");
[questionexample]
definevar([qreplysignal],"int");
messageauto("But, what was Trucy's \nlast name again?");
runscript("pw_showselectananswer");
setvar([pw_maxquestions],4);
setvar([pw_q1gfx],91000);
setvar([pw_q2gfx],91010);
setvar([pw_q3gfx],91020);
setvar([pw_q4gfx],91030);
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("questionexamplecorrect")>,<jumptoscript("questionexamplewrong")>);
[questionexamplewrong]
message("Sorry, thats incorrect.");
message("Obviously")
runscript("setlipsynctonoone");
runscript("pw_setnameboxtophoenix");
message("And I spent so long checking \nin random places too...");
jumptoscript("scene1");
[questionexamplecorrect]
message("You're winner!");
runscript("pw_setnameboxtotrucy");
runscript("pw_enabletrucynormal");
message("Anyway, I need to go back in my \ntime machine");
message("Catch you in a year or so Nick!");
message("Well, sorta. I'll be 8 at the time");
runscript("pw_setnameboxtoema");
runscript("pw_enableemaexcited");
message("Well, lets go and fight that case!");
message("The one we just got now!");
message("That they're not paying you for!");
message("I should stop now but I can't!");
fadescreen(120,"O");
stopmp3(0);
jumptoscript("court");
[court]
loadandplaymp3("music/03 Gyakuten Saiban 4 - Trial.mp3",0,"N");
runscript("showpwchar");
runscript("pw_showmessagebox");
runscript("pw_showattorneystand");
runscript("pw_setnameboxtoema");
runscript("pw_enableemaunsure");
message("Sound Off!");
setvar([sld_targetcharanim],"pw_enableemanormal");
runscript("pw_slideattoneytowitness");
message("One Potato");
setvar([sld_targetcharanim],"pw_enableemamad");
runscript("pw_slidewitnesstoprosecutor");
message("Two Potato");
runscript("pw_showattorneystand");
setvar([sld_targetcharanim],"pw_enableemaunsure");
runscript("pw_slideattoneytoprosecutor");
message("Three Potato");
setvar([sld_targetcharanim],"pw_enableemasurprised");
runscript("pw_slideprosecutortoattoney");
message("Four!");
setgenobjgraphic("pw_crowitness",-7000);
setgenobjgraphic("pw_crojudge",-7001);
setgenobjgraphic("pw_croprosecutor",-7002);
setgenobjgraphic("pw_croattorney",-7003);
runscript("pw_showcourtroomoverview");
messageauto("I'm the urban spaceman!");
wait(60);
runscript("pw_hidecourtroomoverview");
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgavelhit");
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgaveltriplehit");
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgavelhit");
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgaveltriplehit");
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgavelhit");
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgaveltriplehit");
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgaveltriplehit");
loadandplaysfx("sfx_gavel.wav",1);
runscript("pw_showgavelhit");
stopmp3(0);
runscript("witnesstestimonytest1");
[witnesstestimonytest1]
runscript("showpwchar");
runscript("pw_showwitnessstand");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
runscript("pw_enableemadown");
messageinstantauto("\n --The Knife--");
setmsgboxtextcolor(255,255,255,255);
runscript("pw_showwitnesstestimony");
runscript("pw_showtestimony");
loadandplaymp3("music/04 Questioning ~ Moderato 2007.mp3",0,"N");
runscript("pw_setnameboxtoema");
runscript("pw_enableemanormal");
message("I bought the knife from a \nlocal seller.");
message("It cost me about $4,59.");
runscript("pw_enableemadown");
message("But the handle broke when I used \nit the first time.");
runscript("pw_enableemanormal");
message("I didn't threw it away because its \ncutting was very good.");
wait(10);
stopmp3(0);
runscript("pw_hidetestimony");
jumptoscript("talks2");
[talks2]
runscript("pw_showjudgetable");
loadandplaymp3("music/10 Seeing Through ~ Surge, Glance.mp3",0,"N");
message("For millions of years, man thought \nthe moon was made of cheese.");
message("In 1969, we went there and \ndiscovered it was made of rock.");
message("We haven't been back since.");
stopmp3(0);
jumptoscript("crossstart");
[crossstart]
runscript("pw_showwitnessstand");
setvar([pw_crossexamattorneycode],36);
setvar([pw_crossexamprosecutorcode],35);
runscript("hidepwmenu");
runscript("pw_showmessagebox");
runscript("pw_setnameboxtonoone");
messageinstantauto("\n --The Knife--");
runscript("pw_showcrossexaminationvs");
runscript("pw_showpwmenubasicrec");
waitresponse();
jumptoscript("crossbegin");
[crossbegin]
runscript("hidepwmenu");
runscript("begincrossexamination");
setvar([pwcrossexamstages],4);
jumptoscript("cross1=1");
[cross1-1]
definevar([signal],"int");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_enableemanormal");
runscript("pw_setnameboxtoema");
message("I bought the knife from a local seller.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("cross1-1present")>,<null()>); //present if(<compare([signal],"equal",2)>,<jumptoscript("cross1-1press")>,<null()>); //press if(<compare([signal],"equal",4)>,<jumptoscript("cross1-2")>,<null()>); //next
[cross1-1press]
runscript("nextpwcrossexamsimple");
jumptoscript("cross1-2");
[cross1-1present]
jumptoscript("cross1-1");
[cross1-2]
definevar([signal],"int");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_enableemanormal");
runscript("pw_setnameboxtoema");
message("It cost me about U$D: 4,59.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("cross1-2present")>,<null()>); //present if(<compare([signal],"equal",2)>,<jumptoscript("cross1-2press")>,<null()>); //press if(<compare([signal],"equal",3)>,<jumptoscript("cross1-1")>,<null()>); //prev if(<compare([signal],"equal",4)>,<jumptoscript("cross1-3")>,<null()>); //next [cross1-2press] runscript("nextpwcrossexamsimple"); jumptoscript("cross1-3");
[cross1-2present]
jumptoscript("cross1-2");
[cross1-3] definevar([signal],"int");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_enableemadown");
runscript("pw_setnameboxtoema");
message("But the handle broke when I used it the first time.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("cross1-3present")>,<null()>); //present if(<compare([signal],"equal",2)>,<jumptoscript("cross1-3press")>,<null()>); //press if(<compare([signal],"equal",3)>,<jumptoscript("cross1-2")>,<null()>); //prev if(<compare([signal],"equal",4)>,<jumptoscript("cross1-4")>,<null()>); //next
[cross1-3press]
runscript("nextpwcrossexamsimple");
jumptoscript("cross1-4");
[cross1-3present]
jumptoscript("cross1-3");
[cross1-4]
definevar([signal],"int");
setmsgboxtextcolor(255,0,255,0);
runscript("pw_enableemanormal");
("pw_setnameboxtoema");
message("I didn't threw it away because its cutting was very good.");
waitsignal("advance",[signal]);
if(<compare([signal],"equal",1)>,<jumptoscript("cross1-4present")>,<null()>); //present if(<compare([signal],"equal",2)>,<jumptoscript("cross1-4press")>,<null()>); //press if(<compare([signal],"equal",3)>,<jumptoscript("cross1-3")>,<null()>); //prev if(<compare([signal],"equal",4)>,<jumptoscript("crossend")>,<null()>); //next
[cross1-4press]
runscript("nextpwcrossexamsimple");
jumptoscript("crossend");
[cross1-4present]
jumptoscript("cross1-4");
[crossend]
runscript("resumepwcrossexamsimple");
jumptoscript("cross1-1");
It happened after the Cross Examination bit was added so the problem should be there.