Now here comes the fun part (sarcasm). If you know how to use variables to created a press-all to continue cross-examination, this is going to be easier. But, I'm going to try my best to explain it if your new anyways.
1. After the "Would You Like to Try Again" frame (I mentioned it in Step 1), create another frame after it. If the player selects No, make it goto frame 0 (which will just end the game entirely) and if they select Yes make it go to the frame that you created. (Frame # on the top left for those who are fairly new to the editor.)
2. Now here is where what you did in Step 2 is going to be put into good use. I'm going to attempt to explain what I think the editor does while teaching how to do it. Let's proceed.
EDIT: On the next frame after the "Would You Like To Try Again" frame, set the action to Set player's health points or Increase player's health points that way you won't have to do it later. Then set action to
Evaluate conditions to redirect the player and then create 1 more frame after it. If we assume that we named our variables via the # and we have only 3 testimonies in the trial, then in the
Expressions to test box, insert
testimony1 + testimony2 + testimony3 =
1.
Now you may be a little confused as to why we are making 3 variables equate to 1. Allow me to explain. When you lose during a cross-examination, a variable is already set. So if it's our first cross-examination,
testimony1 will be defined but nothing else will. When it evaluates the conditions, it's going to ignore the other 2 variables (that being
testimony2 and
testimony3) since it wasn't already defined. Since all of our variables are set to the value
1, the expression to test now becomes
testimony1 = 1 which it does, so it will go to the frame we set it (which we'll get to later.) Let's say your in the second cross-examination, and you lose. When you go here,
testimony1 and
testimony 2 will be defined.
testimony1 and 2 are both set to the value of one. Since
testimony3 wasn't defined, the expression becomes
testimony1 +
testimony2 =
1. But wait a second, 1 + 1 = 2 and NOT 1. It will then proceed to the failure frame which we will set later.
Here is an example, pay attention only to the expression to test box for now.
EDIT; This image is outdated, you should have the Healing Health frame first and then the Evaluate Conditions. Eveything else should fall be self-explanatory.
3. We have that completed, but we have 1 empty frame. What do we do with that?
Now on that, click Set Action, and put Proceed to Another Frame, you should then return to where your cross-examination is.
It should look a little something like this:
EDIT; This image is outdated, you should have the Healing Health frame first and then the Evaluate Conditions. Eveything else should fall be self-explanatory.
4. Now in your
Evaluate Conditions to Redirect the Player frame, set the
Target Frame #ID to the frame afterwards.
5. Now we have it for the first cross-examination, but what now? Now, we are going to do the exact same thing but with very small variations.
After your first
Proceed to another frame frame, you are going to create 2 more empty frames. The first being
Evaluate Conditions to redirect the player. Now instead of
testimony1 + testimony2 + testimony3 =
1, we make it
testimony1 +
testimony2 + testimony3 =
2. One number higher. Set the
Target Frame #ID to the frame afterwards. Then you set the next frame afterwards to
Proceed to Another Frame to the second cross-examination. Now, we must go back. In the first
Evaluate Conditions to Redirect the Player, set the
Failure Frame #ID to the frame of the second
Evaluate Conditions to Redirect the Player. Keep repeating the process with 3 and even 4 sets of these frames until all of your cross-examinations are completed.
Once your finished with everything, there should be a box on each of the frames with
Wait for. Set that to
1. That way, it will do all this as fast as it possibly can. Or if I'm wrong, 1 milliseconds to be more precise. Also make sure to playtest this just to make sure yoi didn't miss any steps.