Using variables to turn your trial into a demo

Find detailed help from the AAO community, or write your own tutorials.

Moderator: EN - Forum Moderators

Post Reply
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Using variables to turn your trial into a demo

Post by Nevfx »

Most of us make demo versions of our trials. It lets others see the style of writing we are using, the characters, and yes, a chance to show of just a little bit of our trial making skills.

However, this usually involves the need to make a second trial soley for the demo version, in order to stop people seeing our work in progress.

Well... usually. You can use variables to easily make your trial a demo without needing to make a whole new trial and make evidence lists and profiles two times over.

How to do it

It's so easily. :) First, at the start of your trial, make a frame with a timer of just 1 defining a variable. For simplicities sake, name the variable "Demo" or "Demo check". Define it as anything, it doesnt matter what, putting in '1' will suffice.
Spoiler : EXAMPLE :
Image
Now, on the frame BEFORE your last one for your demo, read the variable. As demonstrated below, if the variable is 1, as you set it to in the very first frame, choose to take the player to a frame that has some sort of message on, for example "thank you for playing this demo" etc, then include the "end this trial" operation on the very same frame, and your done.Then, after that, simply continue the trial. In the read variable operation, set the "failure" frame as the one that continues the trial.

The picture below better explains.
Spoiler : EXAMPLE :
Image
It is by no means foolproof. When you go to testplay your trial, you will need to add something to the end to skip the first frame, and thereofore when it goes to read the variable it wont be successful and will carry on the trial.

The method to do this is very easy. Simply add the below phrase to your trials url when you play it.
Spoiler : Skip the demo variable :
&avancement=2


Keep in mind, that EVERYONE can do this. For example on my Mia Fey trial, you can put that at the end of the demo link and play my work-in-progress. But seeing as I don't mind that, there is no problem.

So there you go. If you dont mind the chance that someone might be able to skip the demo and therefore play yovr whole work in progress, use thbis method. Saves you needing to make a whole new trial just for a demo!
User avatar
Dypo deLina
Posts: 5528
Joined: Fri Apr 02, 2010 7:24 am
Gender: Male
Spoken languages: English, Dutch, German, French, Spanish, Al Bhed
Location: Exactly where you least expect me to be.
Contact:

Re: Using Variables to turn your trial into a demo [Tutorial

Post by Dypo deLina »

Seems like a sound method to do it if you've already finished a lot, and then suddenly decide to release a demo. But theoretically, wouldn't it be possible to to finish the demo first, get that trial cloned, and then resume work on the trial? :)
チラセ・マギタ
~Married to Evolina deLuna~ <3
~Loving father to ZetaAzuel~


Proud creator of Cynder Janice, Rex Gladiorum, and Raimpius in Endless Time.

Image Image
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Using Variables to turn your trial into a demo [Tutorial

Post by Nevfx »

Im sure you can just copy the trials code by doing a save test then recreate your trial yes.

But I was in the first category you mentioned - I had planned and made some of my trial, then wanted to do a demo. In fact, I recommend this method for someone who complted the trial and THEN wanted to do a demo, as you say.

I didn't think of copying the code etc until I just typed it up above.

Regardless, its a sound method if someone wants to use it. :)
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Using Variables to turn your trial into a demo [Tutorial

Post by Meph »

Dypo deLuna wrote:But theoretically, wouldn't it be possible to to finish the demo first, get that trial cloned, and then resume work on the trial? :)
You could, but it would be annoying if you wanted to make changes to things that are in both the demo and the original. It gets a bit messy that way.
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Using Variables to turn your trial into a demo [Tutorial

Post by Nevfx »

Meph wrote:
Dypo deLuna wrote:But theoretically, wouldn't it be possible to to finish the demo first, get that trial cloned, and then resume work on the trial? :)
You could, but it would be annoying if you wanted to make changes to things that are in both the demo and the original. It gets a bit messy that way.
Your right, but I suppose you wouldn't bother changing the demo would you?

Why am I arguing with Meph.... :sawhit:
User avatar
Zeel1™
Posts: 3747
Joined: Thu Jun 03, 2010 10:29 pm
Gender: Male
Spoken languages: English
Location: Nobody uses this for what it's intended for.

Re: Using Variables to turn your trial into a demo [Tutorial

Post by Zeel1™ »

Nevfx wrote:Why am I arguing with Meph.... :sawhit:
Because it's SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO fun...
Turnabout Ghost - 1400 Frames
Image
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Using variables to turn your trial into a demo

Post by Nevfx »

:O Oh I recognise your username. Your trials are great. :D Hope you recognise me.

So Meph will this get added to the list?
User avatar
Zeel1™
Posts: 3747
Joined: Thu Jun 03, 2010 10:29 pm
Gender: Male
Spoken languages: English
Location: Nobody uses this for what it's intended for.

Re: Using variables to turn your trial into a demo

Post by Zeel1™ »

Heh, thanks, and yes, I remember you~
Glad the ™ didn't trick you into thinking I was someone else... :awesome:
Turnabout Ghost - 1400 Frames
Image
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Using variables to turn your trial into a demo

Post by Nevfx »

No, Zeel1 instantly brough memories. Wasn't yovr avatar Luke Atmey before?
User avatar
Zeel1™
Posts: 3747
Joined: Thu Jun 03, 2010 10:29 pm
Gender: Male
Spoken languages: English
Location: Nobody uses this for what it's intended for.

Re: Using variables to turn your trial into a demo

Post by Zeel1™ »

Indeed it was.

This really isn't the place for reunions, though... :P
Turnabout Ghost - 1400 Frames
Image
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Using variables to turn your trial into a demo

Post by Meph »

Nevfx wrote:So Meph will this get added to the list?
It already is. ;)
User avatar
Nevfx
Posts: 693
Joined: Sun Jun 13, 2010 5:08 pm
Gender: Male
Spoken languages: English

Re: Using variables to turn your trial into a demo

Post by Nevfx »

Wahoo, I feel special. Like I contributed something.
User avatar
clcman
Posts: 1361
Joined: Tue Apr 26, 2011 3:40 pm
Gender: Male
Spoken languages: English
Location: Classified

Re: Using variables to turn your trial into a demo

Post by clcman »

Couldn't you just make the first frame password protected? So one password leads to the actual trial and any other leads to the demo?
What do REAL, NON-BRIBED people have to say about HTB!?
"This really changed the way I thought about Phoenix as a character. ...Wow." - Reecer6
"HTB! contains truths that might be hard to stomach, but had to be unveiled nonetheless." - Blackrune
"This deserves a best plot twist award." - Evo
"It changed my life, and it can change yours too. For the better, I mean." - Calvinball
"I will never look at Phoenix Wright the same way again" - PhoenixRises123
"omg best thing on aao" - AceAttorneyMaster111
DISCOVER THE TRUTH YOU NEVER KNEW YOU DIDN'T KNOW IN HTB! PROLOGUE AND PART 1, AVAILABLE NOW!!


"Those people who think they know everything are a great annoyance to those of us who do." -Isaac Asimov
"For every complex problem, there is an answer that is clear, simple and wrong." -H. L. Mencken
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: Using variables to turn your trial into a demo

Post by henke37 »

True, but it still has the same issues.
Currently working on a redesign of Court-records.net.
Post Reply