So! I’ve been at this for days… I have tried every possible solution that I could think of, but nothing seems to work.
First of all. I want to create a system that would allow the player to change a variable in the stats that would take effect in the main game. But it doesn’t seem to be working. I searched for a bit in the forum, and found out that choicescript only registers the “variable change” after it goes through a page break in the main game (at least that’s how I think it works).
But I wanted immediate effect, so I found out about
Now I have this:
*label phone You pull out your phone. *label phoneoptions *choice #Call someone You search through your contacts. *goto contacts *goto navigation_menu *label contacts *choice *if (meettrevor) #Trevor *redirect_scene trevorcallsevents
This is in the stats.
Then it goes to this page:
*label trevorcalls *if (trevorphoneend) You tried calling him but he doesn't pick up. *page_break [DEAL WITH THIS LATER] *if (phone1alone) *set phone1aloneactivate true *goto_scene alone phone1
And if everything goes well:
*label phone1 *if (phone1aloneactivate) *set phone1aloneactivate true The phone rings… *page_break *set phonetrevor true [BLAH BLAH CONVERSATION] *if (nolocation) *label 1alone *choice *hide_reuse #Ask about a way to trace a call [BLAH BLAH CONVERSATION] *goto 1alone *hide_reuse #Ask what work is he doing [BLAH BLAH CONVERSATION] *goto 1alone #Time to hang up *set trevorphoneend true *set phonetrevor false “Thank you, Trevor. I’m going to hang up now.” You say. He hums. “Yes, hope to see you again.” “You too.” And you pull the phone away from your ear and hang up. *page_break *goto phone1finish *label phone1finish Actually... you really didn't need anyone. This was just a simple meeting, and if you told anyone down at the agency that you purposely got involved with a case that you weren't supposed to, they would be angry at you. Especially Trevor, he would probably 'fire' you.
This page is the main game page. I don’t know how to explain it well, but this whole event is triggered in this page at this moment. Then if the player goes to the stats, calls on the phone, they’ll end up on the same page as they were before. This time with this event.
After the label of “phone1finish” that’s the actual game without the event.
My problem is. During the “call/event”, if the player decides to go to the stats and then presses “return to game”, they’ll skip the whole event and go to the rest of the game (after the label “phone1finish”).
I don’t understand why and I would greatly appreciate help. I feel like I’m going crazy with this.