How do I get a guilty verdict when the life bar is emptied?

Learn how to use AAO by reading tutorials, and seek help from the AAO community.

Moderator: EN - Forum Moderators

Post Reply
User avatar
ShadowEdgeworth
Posts: 4389
Joined: Sun Jun 07, 2009 9:27 pm
Gender: Male
Spoken languages: English
Location: The TARDIS

How do I get a guilty verdict when the life bar is emptied?

Post by ShadowEdgeworth »

How can I get the Judge to announce a verdict when the life bar is empty?
Image

Epic Rap Battles of AAO History: Meph VS Unas l Phoenix Wright VS Glase Canon l SuperGanondorf VS GotMLK7 l Mimi Mika VS Zeel1

Winner of the Golden Star Award 2010!
Creator of Commander Mika Cadenza and Admiral Kathryn Jayneway in Endless Time!
Currently RPing as The Doctor, Shadow The Hedgehog, and Spider-Man in Dimensional Chaos!
Currently RPing as Spider-Man and Black Cat in Crossover Central!
Creator of Alexis Calika in Vermillion Sunset and Alex Tazian in Final Warfare!
User avatar
Unas
Admin / Site programmer
Posts: 8850
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: How do I get a guilty verdict when the life bar is emptied?

Post by Unas »

There's an action to set a game over redirection : at the time it's executed, it sets the game over event to redirect to a particular message. So for example, use it at he beginning of your trial and put the id of your game over conversation's first message as parameter ;-)
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
ShadowEdgeworth
Posts: 4389
Joined: Sun Jun 07, 2009 9:27 pm
Gender: Male
Spoken languages: English
Location: The TARDIS

Re: How do I get a guilty verdict when the life bar is emptied?

Post by ShadowEdgeworth »

Ah, thanks a lot!
Image

Epic Rap Battles of AAO History: Meph VS Unas l Phoenix Wright VS Glase Canon l SuperGanondorf VS GotMLK7 l Mimi Mika VS Zeel1

Winner of the Golden Star Award 2010!
Creator of Commander Mika Cadenza and Admiral Kathryn Jayneway in Endless Time!
Currently RPing as The Doctor, Shadow The Hedgehog, and Spider-Man in Dimensional Chaos!
Currently RPing as Spider-Man and Black Cat in Crossover Central!
Creator of Alexis Calika in Vermillion Sunset and Alex Tazian in Final Warfare!
User avatar
E.D.Revolution
Posts: 5743
Joined: Mon Jul 26, 2010 9:00 pm
Gender: Male
Spoken languages: English and decent Spanish
Location: Across dimensions, transcending universes

Re: How do I get a guilty verdict when the life bar is empti

Post by E.D.Revolution »

Wait a sec.

Is it done by using the eval function after every time the player loses hp, and if it hits 0, it redirects to the Game Over sequence? Do I have to label a set of messages as Game Over for the trial to redirect to the Game Over sequence? :?:
Image
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: How do I get a guilty verdict when the life bar is empti

Post by henke37 »

There is no "eval function". There is an action that sets a message to jump to when the hp runs out. It requires no expressions or anything, just the frame number to jump to.
Currently working on a redesign of Court-records.net.
Mimi
Posts: 10382
Joined: Wed Jan 27, 2010 6:35 am
Gender: Female
Spoken languages: English: the only language I can brag about

Re: How do I get a guilty verdict when the life bar is empti

Post by Mimi »

So... if you want a message that says you're guilty, you just use this function and skip to the message where the guilty thing happens?
User avatar
Unas
Admin / Site programmer
Posts: 8850
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: How do I get a guilty verdict when the life bar is empti

Post by Unas »

Basically, when your life bar reaches zero, there are two possibilities :
- If the game over redirection is currently not set (or set to 0), you have an instant game over.
- If the game over redirection is currently set to the ID of a frame, then the player is sent to this frame.

Also, when the action "Set game over redirection" is executed, the game over redirection takes the value indicated by this action.


The simplest way to use it, then, is to use that action at the beginning of your trial, and give it for value the id of the first frame of your game over conversation, just like you would do with "Skip directly to a frame", except that this will only happen when the player's life is 0.
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
E.D.Revolution
Posts: 5743
Joined: Mon Jul 26, 2010 9:00 pm
Gender: Male
Spoken languages: English and decent Spanish
Location: Across dimensions, transcending universes

Re: How do I get a guilty verdict when the life bar is empti

Post by E.D.Revolution »

I see now. I had a hard time understanding what Henke meant but now I realize that "Set Game Over redirection" simply meant that it would activate the sequence the moment the HP hits zero. Thanks, guys.
:pearlhappy:
Image
Mimi
Posts: 10382
Joined: Wed Jan 27, 2010 6:35 am
Gender: Female
Spoken languages: English: the only language I can brag about

Re: How do I get a guilty verdict when the life bar is empti

Post by Mimi »

I understand it half way... but I guess the only way I can achieve this effect is to fool around with the trial player myself! Thanks for explaining though, Unas-sama!
User avatar
E.D.Revolution
Posts: 5743
Joined: Mon Jul 26, 2010 9:00 pm
Gender: Male
Spoken languages: English and decent Spanish
Location: Across dimensions, transcending universes

Re: How do I get a guilty verdict when the life bar is empti

Post by E.D.Revolution »

Normally, when I play a case straight until the end (no saves,) I can get a custom guilty verdict (if the case has one.) How come, though, if I play from a save state, I get the standard "Game Over?"
Image
Broocevelt
Moderator
Posts: 7319
Joined: Fri Sep 11, 2009 6:06 pm
Gender: Female
Spoken languages: ES/FR/EN/DE
Location: Spain
Contact:

Re: How do I get a guilty verdict when the life bar is empti

Post by Broocevelt »

Are you sure? Mmhh...
I am going to try it out. If it is as you said, hen it is a bug to report.

EDIT: You are right. I shall notify this. Thank you for your help! ;)
Post Reply