Using variables to turn your trial into a demo

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

Modérateur: EN - Forum Moderators

Using variables to turn your trial into a demo 

Message par Nevfx » Mar Oct 25, 2011 1:26 pm

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!
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

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

Message par Dypo deLina » Mar Oct 25, 2011 6:12 pm

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
Avatar de l’utilisateur
Dypo deLina
 
Message(s) : 5528
Inscription : Ven Avr 02, 2010 7:24 am
Localisation : Exactly where you least expect me to be.
Genre: Masculin
Langues parlées: English, Dutch, German, French, Spanish, Al Bhed

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

Message par Nevfx » Mar Oct 25, 2011 6:22 pm

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. :)
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

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

Message par Meph » Mar Oct 25, 2011 10:38 pm

Dypo deLuna a écrit :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.
Avatar de l’utilisateur
Meph
 
Message(s) : 13439
Inscription : Lun Nov 10, 2008 10:07 pm
Localisation : Probably Disneyland Paris... or the UK
Genre: Masculin
Langues parlées: English

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

Message par Nevfx » Mer Oct 26, 2011 12:26 am

Meph a écrit :
Dypo deLuna a écrit :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:
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

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

Message par Zeel1™ » Mer Oct 26, 2011 12:48 am

Nevfx a écrit :Why am I arguing with Meph.... :sawhit:


Because it's SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO fun...
Turnabout Ghost - 1400 Frames
Image
Avatar de l’utilisateur
Zeel1™
 
Message(s) : 3747
Inscription : Jeu Juin 03, 2010 10:29 pm
Localisation : Nobody uses this for what it's intended for.
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Nevfx » Mer Oct 26, 2011 1:06 am

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

So Meph will this get added to the list?
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Zeel1™ » Mer Oct 26, 2011 1:23 am

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
Avatar de l’utilisateur
Zeel1™
 
Message(s) : 3747
Inscription : Jeu Juin 03, 2010 10:29 pm
Localisation : Nobody uses this for what it's intended for.
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Nevfx » Mer Oct 26, 2011 1:27 am

No, Zeel1 instantly brough memories. Wasn't yovr avatar Luke Atmey before?
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Zeel1™ » Mer Oct 26, 2011 1:28 am

Indeed it was.

This really isn't the place for reunions, though... :P
Turnabout Ghost - 1400 Frames
Image
Avatar de l’utilisateur
Zeel1™
 
Message(s) : 3747
Inscription : Jeu Juin 03, 2010 10:29 pm
Localisation : Nobody uses this for what it's intended for.
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Meph » Mer Oct 26, 2011 1:44 am

Nevfx a écrit :So Meph will this get added to the list?

It already is. ;)
Avatar de l’utilisateur
Meph
 
Message(s) : 13439
Inscription : Lun Nov 10, 2008 10:07 pm
Localisation : Probably Disneyland Paris... or the UK
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par Nevfx » Mer Oct 26, 2011 1:47 am

Wahoo, I feel special. Like I contributed something.
Avatar de l’utilisateur
Nevfx
 
Message(s) : 693
Inscription : Dim Juin 13, 2010 5:08 pm
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par clcman » Mar Nov 01, 2011 1:47 pm

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." -Issac Asimov
"For every complex problem, there is an answer that is clear, simple and wrong." -H. L. Mencken
Avatar de l’utilisateur
clcman
 
Message(s) : 1191
Inscription : Mar Avr 26, 2011 3:40 pm
Localisation : Classified
Genre: Masculin
Langues parlées: English

Re: Using variables to turn your trial into a demo 

Message par henke37 » Lun Nov 07, 2011 7:30 pm

True, but it still has the same issues.
Currently working on a redesign of Court-records.net.
Avatar de l’utilisateur
henke37
Security expert / tools programmer
 
Message(s) : 3031
Inscription : Mer Mars 04, 2009 9:42 pm
Localisation : Sweden
Genre: Masculin
Langues parlées: Swedish,English


Retour vers Tutorials

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 1 invité