Board index » Present Evidence » Games

Page 3 of 3[ 88 posts ]
Go to page Previous  1, 2, 3
 


Re: CourtEngine Progress ThreadTopic%20Title
User avatar

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 :)
CourtEngine Prototype: 69%
Image
"XML is like violence: if it doesn't solve your problem, you're not using enough of it."
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

A tiger is not a lamb, mein Herr

Gender: Female

Rank: Suspect

Joined: Tue Dec 25, 2007 7:19 pm

Posts: 17

As someone with some experience doing markup (MediaWiki, HTML, CSS) and none doing for realz programming, I found this script very understandable. I feel like I could figure out how to work it based on examples like this.

I also asked Mr. Bacchus to give his professional opinion. He says:

Quote:
If you are going to use something so close to C-style, it makes sense to keep that pattern wherever possible. There are a couple of places that inexplicably deviate:

1) If statements. Why not use the C style:

if (getGlobalVar("gotEvidence1") == "false") setGlobalVar("inForensics", "true");

Then you can also support multiple consequents like:

if (getGlobalVar("gotEvidence1") == "false") {
setGlobalVar("inForensics", "true");
doSomethingElse();
}

2) Variable assignment and tests. Why not more like C:

if (gotEvidence1 == false) inForensics = true;


He thinks that will make it easier for people who are familiar with C.

I'm really looking forward to CourtEngine. I've got a script all set to go as soon as it's done! :edgy:
:eh?: "If I was kiddin' you, I'd be wearin' a fez and no pants." - Lennie Briscoe
Need a magic box to put stuff on the Internet? Try Dropbox!
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

CourtEngine Programmer

Gender: Male

Location: Kelowna, BC, Canada

Rank: Desk Jockey

Joined: Sun Apr 20, 2008 9:10 pm

Posts: 76

heh i thought someone would comment on the weird way the If statements were being displayed :)

The reason they exist liek that, is im trying to work with the limitations of Flash. If i could figure out how to make real If statements, boy you better believe it'll look something more traditional hehe, but as it stands, cs2 is a function based scripting language, basiaclly the if() statement is a function that processes two attributes, it takes the data from the left of the comma and compares it, and executes whats on the right of the comma if true. This obviously has the HUGEST limitation of there being no possible way to do "else" statements, thus effectively eliminating its power to 10% useful.


And curious, do you mean a script for CourtEngine1? if so, then thats very encouraging to me to get this sucker done :D
CourtEngine Prototype: 69%
Image
"XML is like violence: if it doesn't solve your problem, you're not using enough of it."
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

A tiger is not a lamb, mein Herr

Gender: Female

Rank: Suspect

Joined: Tue Dec 25, 2007 7:19 pm

Posts: 17

Back about December, when I first considered doing a fangame, I started a couple of dialogue-only scripts to use in teaching myself Flash and/or whatever casemaker got done first. One of them is extremely simple (non-interactive) and hopefully hilarious. My devious plot is to use CourtEngine to make it go, then use it as an advertisement to find an artist(s) for Turnabout Karma, a serious-business case requiring a ton of original art.

The script I have finished now is basically a Phoenix Wrong with writing. If you're interested in having a real test case that does all the standard PW stuff with no original art, I've got another one designed for exactly that purpose. It's plotted but not fully scripted. If you have a ballpark release date, I can try and get it done in time.
:eh?: "If I was kiddin' you, I'd be wearin' a fez and no pants." - Lennie Briscoe
Need a magic box to put stuff on the Internet? Try Dropbox!
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

CourtEngine Programmer

Gender: Male

Location: Kelowna, BC, Canada

Rank: Desk Jockey

Joined: Sun Apr 20, 2008 9:10 pm

Posts: 76

HMmmmmm i do not have a clue when itll be released. Recently ive been hit with the fact i need an animation demo reel and ive been hard at work on that lately. The CourtEngine prototype isn't far from release though, id say i need a solid week of pure development time and it should be about 99% good to go. Its just a matter of finding the timeslot to do this, ya know?

This "Real Life" crap is for the birds.
CourtEngine Prototype: 69%
Image
"XML is like violence: if it doesn't solve your problem, you're not using enough of it."
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

HeadHump!

Gender: Male

Location: Phillipines

Rank: Decisive Witness

Joined: Wed May 14, 2008 8:02 am

Posts: 273

omg i can't wait for this.
it's like an animated fan-fic.
:lol:
Image
The 11-year old prince of insanity.
Talk to me on Yahoo Messanger: Insani99999@yahoo.com

http://insanity-09.myminicity.com/
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

AAO English community manager

Gender: Male

Location: United Kingdom

Rank: Medium-in-training

Joined: Tue Jul 08, 2008 8:29 pm

Posts: 307

There's something I've been wondering for a while now. Why doesn't the text box stretch across the entire page, and why aren't you using the Phoenix Wright font?
Re: CourtEngine Progress ThreadTopic%20Title
User avatar

Otaku, #1 Machi fan, #2 Machi Fan

Gender: Male

Location: Engl- Ooh, over 3000 posts. (England)

Rank: Ace Attorney

Joined: Fri Sep 28, 2007 4:06 pm

Posts: 3781

(Wow the last post before the necromance was on my birthday...) On C-R, there was the GBA textbox, he must have used that. And there wasn't always the PW font.
Image
ALL GLORY TO THE HYPNOGANT
Page 3 of 3 [ 88 posts ] 
Go to page Previous  1, 2, 3
 
Display posts from previous:  Sort by  

 Board index » Present Evidence » Games

Who is online
Users browsing this forum: No registered users and 11 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cron
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB

phpBB SEO