How do I make players collect evidence before advancing?

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

Moderator: EN - Forum Moderators

Post Reply
Attorney at Law(l)
Posts: 27
Joined: Fri Oct 09, 2009 9:35 pm
Gender: Male

How do I make players collect evidence before advancing?

Post by Attorney at Law(l) »

How exactly do I make so that the player won't advance until some pieces of evidence are found? For example, if a player needs to find piece A and piece B he won't advance in the story (skip to a certain block) until both are in the court record regardless of the order in wich they were found. This probably has something to do with variables but I don't know anything beyond that.
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: Coming up: The Plot

Post by Meph »

Variables are needed for that. However, I'm not very good with variables.
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: Coming up: The Plot

Post by henke37 »

You can actually get away with only expressions, since it is possible to query what evidence is revealed in one.

Code: Select all

f:evidence_is_revealed("preuve",1) & f:evidence_is_revealed("preuve",2)
Currently working on a redesign of Court-records.net.
Freddi
Posts: 6
Joined: Mon Feb 05, 2018 9:22 am
Gender: Male
Spoken languages: English

Re: Coming up: The Plot

Post by Freddi »

henke37 wrote:You can actually get away with only expressions, since it is possible to query what evidence is revealed in one.

Code: Select all

f:evidence_is_revealed("preuve",1) & f:evidence_is_revealed("preuve",2)
I don't think everyone will understand it if you use the same word. And if I'm right, you mean that I replace the "preuve" with the evidence name?
User avatar
Enthalpy
Community Manager
Posts: 5169
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: How do I make players collect evidence before advancing?

Post by Enthalpy »

No. "preuve" is how the editor knows you want a piece of evidence, rather than a profile. The editor knows which piece of evidence you mean by the number, the evidence's ID.

If this worked off of evidence name, what if you needed to update evidence without changing its name? The game engine can't know which "Autopsy Report" you're talking about.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
Freddi
Posts: 6
Joined: Mon Feb 05, 2018 9:22 am
Gender: Male
Spoken languages: English

Re: How do I make players collect evidence before advancing?

Post by Freddi »

Actually I just found it out right after trying this out. Sorry for the inconvenience...
punnypunypony
Posts: 3
Joined: Wed Feb 20, 2019 9:56 pm
Gender: Female
Spoken languages: English

Re: How do I make players collect evidence before advancing?

Post by punnypunypony »

Need help with this, too. The code above doesn't work, all other tutorials/guides are either outdated or their links don't work. :(
123fendas
Posts: 305
Joined: Sat Mar 07, 2015 12:02 pm
Gender: Male
Spoken languages: Svenska, English
Location: Sweden
Contact:

Re: How do I make players collect evidence before advancing?

Post by 123fendas »

punnypunypony wrote:all other tutorials/guides are either outdated
Whatcha talkin bout, Willis? I have a video tutorial on YouTube which is not outdated.
User avatar
Enthalpy
Community Manager
Posts: 5169
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: How do I make players collect evidence before advancing?

Post by Enthalpy »

punnypunypony wrote:Need help with this, too. The code above doesn't work, all other tutorials/guides are either outdated or their links don't work. :(
Can you show me exactly what you tried?
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
Post Reply