CourtEngine Programmer
Gender: Male
Location: Kelowna, BC, Canada
Rank: Desk Jockey
Joined: Sun Apr 20, 2008 9:10 pm
Posts: 76
Bored at work and thinking about what CourtScript2 would look like, so using my remaining 30 minutes at work, i cooke dup this prototype concept script.
There ALOT of things missing (objections, hello lol), its quite messy, but im pretty happy with the syntax so far, so as a sepcial treat im going to paste my 200 line concept script here for you today, to get a feel on what it could end up looking like (i suggest copying and pasting to Notepad or something to actually see it)
Code:
// CourtScript2 Prototype
// Episode 1-1 Defendants Lobby
new cinema "cin1";
new scene "1-1lobby";
new scene "1-2court"; // the new scenes get added to the sequence manifest
new forensic "1-1examine"; // new forensic type
new testimony "1-2t1";
// Global Vars
setGlobalVar("gotEvidence1", "false");
setGlobalVar("inForensics", "false);
setGlobalVar("myHoldIt", "anims/holdit.swf");
setGlobalVar("myObjection", "anims/Objection.swf");
setGlobalVar("myTakeThat", "anims/TakeThat.swf");
setGlobalVar("pObject", "characters/PhoenixWright/vox/en/objection.mp3");
setGlobalVar("pHoldIt", "characters/PhoenixWright/vox/en/holdit.mp3");
setGlobalVar("pTakeThat", "characters/PhoenixWright/vox/en/takethat.mp3");
setGlobalVar("eObject", "characters/MilesEdgeworth/vox/en/objection.mp3");
setGlobalVar("eHoldit", "characters/MilesEdgeworth/vox/en/holdit.mp3");
setGlobalVar("eTakeThat", "characters/MilesEdgeworth/vox/en/takethat.mp3");
1-1lobby
{
init
{
// inital settings, if any
setVar("music01", "music/mp3/mymusic.mp3"); // setVar(varName, Value);
charSwitch("maya", "sad"); // charSwitch(char, emotion, pan);
}
main
{
// list off the sequence of events to happen within the scene
fadeFromBlack();
speech("Maya", "sad", "Nick...");
// wait(); pauses playback and waits for user to hit "next", wait(##); waits a certain amount of milliseconds to pass before continuing
wait();
speech("Phoenix", "null", "Maya... dont... dont worry about it.");
wait();
speech("Maya", "concerned", "But nick i-");
wait(1250);
animation("maya", "shocked");
speech("Phoenix", "null", "I said dont worry about it.. its almost time to go");
wait();
animation("Maya", "headnod", true);
speech("Maya", "happy", "r-right. Lets go Nick! Good luck!");
wait();
fadeToBlack();
endScene();
}
}
1-2court
{
init
{
}
main
{
// playback automatically waits for the gavels and fades to finish playing
fadeFromBlack();
gavel();
charSwitch("Judge", "happy");
playMusic("music01", true);
speech("Judge", "Yo Wassap! Time for a testimony!");
crossex("1-2t1");
wait();
fadeToBlack();
endScene();
}
}
1-2t1
{
init
{
title("What i Saw");
setWitness("JoeAverage");
// setEvidenceNeeded(evidenceInstanceName, blockID);, if this evidence is presented at this statement, we progress in the current scene
setEvidenceNeeded("ev_mathbook", 2);
}
testimony
{
// block(blockID, statementText, animation);
block(1, "Im just your average Joe", "angry");
block(2, "I know that 2 and 2 make 5", "sad");
block(3, "I saw that thar defendent, the purdy one, shoot that sheriff", "crossarms");
block(4, "mmHmm, Square in the face", "nod");
}
crossexam
{
start
{
charSwitch("Judge", "thinking", "false");
speech("Judge", "thinking", "Hmm, you seem pretty sure of yourself here");
wait();
charSwitch("Joe", "crossarms", "false");
speech("Joe", "crossarms", "I only speak the truths");
wait();
charSwitch("Phoenix", "angry", "false");
speech("Phoenix", "angry", "[blue]Yeah well see about that[/blue]");
break();
}
press "1"
{
objection("myHoldIt", "pObject");
charSwitch("Phoenix", "fingerpoint", "true");
speech("Phoenix", "So, your just... average are you?");
wait();
charSwitch("Joe", "crossarms", "true");
speech("Joe", "Yep, cant get more average than i");
wait();
charSwitch("Phoenix", "sweating", "true");
speech("Phoenix", "i..i see..");
wait();
break();
}
pess "2"
{
objection("myHoldIt", "pObject");
charSwitch("Phoenix", "fingerpoint", "true");
animation("Phoenix", "deskslam", "true");
speech("Phoenix", "This isn't math class you know!");
wait();
charSwitch("Joe", "angry", "true");
speech("temper temper...");
wait();
objection("myObjection", "eObject");
charSwitch("edgeworth", "fingerpoint", "true");
speech("edgeworth", "Wright, i will not allow you to badger the witness on trivial matters such as this");
wait();
break();
}
press "3"
{
objection("myHoldIt", "pObject");
charSwitch("Phoenix", "fingerpoint", "true");
speech("Phoenix", "angry" ,"That... hasn't been proven yet!");
wait(250);
setGesture("Phoenix", "fingerpoint");
sound("mp3s/smack.mp3");
wait();
objection("myObjection", "eObject");
charSwitch("edgeworth", "fingerpoint", "true");
speech("edgeworth", "must i keep reminding you to not badger the witness with baseless jabber?");
wait();
charSwitch("Phoenix", "sweating", "true");
speech("Phoenix", "[blue]damnit... i cant respond to that[/blue]");
wait();
break();
}
press "4"
{
objection("myHoldIt", "pObject");
charSwitch("Phoenix", "fingerpoint", "true");
speech("Phoenix", "thinking", "like... directly in the face?");
wait();
charSwitch("Joe", "crossarms", "true");
speech("Joe", "crossarms", "Yep, cant get much deadr n im");
wait();
charSwitch("Judge", "surprised", "true");
speech("Judge", "surprised", "Wow thats pretty accurate... and reassuring!");
wait();
charSwitch("Phoenix", "angry", "false");
speech("Phoenix", "[blue]its no use denying it, it was closed casket for a reason[/blue]");
wait();
break();
}
end
{
charSwitch("Phoenix", "angry");
speech("Phoenix", "angry", "[blue]I cant let him get away with this...[/blue]");
speech("Phoenix", "angry", "[blue]theres got to be some[/blue] [red]evidence[/red] [blue]i can show to get me out of this one[/blue]");
break();
}
}
}
cin1
{
main
{
cinema("cinema/sequence01.flv");
}
}
1-1examine
{
init
{
if(getGlobalVar("gotEvidence1") == "false", setGlobalVar("inForensics", "true")); // if(condition, execute)
}
}
any comments on the script design would be appreciated, thanks :)