How do I make players collect evidence before advancing?
Moderator: EN - Forum Moderators
-
- Posts: 27
- Joined: Fri Oct 09, 2009 9:35 pm
- Gender: Male
How do I make players collect evidence before advancing?
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.
- 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
Variables are needed for that. However, I'm not very good with variables.
Turnabout Carjack | Secrets of a Turnabout
Unas's Birthday Bash (19th - 20th - 21st) | Franziska vs. Oldbag | Turnabout With a Theme
TGS Special Courtroom Session (2005 - 2006) | Turnabout Chill | Turnabout of the Wild West
- 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
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.
Re: Coming up: The Plot
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?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)
- Enthalpy
- Community Manager
- Posts: 5172
- 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?
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.
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
Re: How do I make players collect evidence before advancing?
Actually I just found it out right after trying this out. Sorry for the inconvenience...
-
- 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?
Need help with this, too. The code above doesn't work, all other tutorials/guides are either outdated or their links don't work.
-
- 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?
Whatcha talkin bout, Willis? I have a video tutorial on YouTube which is not outdated.punnypunypony wrote:all other tutorials/guides are either outdated
- Enthalpy
- Community Manager
- Posts: 5172
- 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?
Can you show me exactly what you tried?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.
[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