src/scenes/meeting-room/MeetingRoomDialogue.js
// However, if this scene is initialized with a dialogue, it will be bill's dialogue progress (28)
However, if this scene is initialized with a dialogue, it will be bill's dialogue progress (28)
However if this scene is initialized with a dialogue it will be bill ' s dialogue progress ( 28 )
init (data) {
        this.player = this.sys.game.player;
        this.nextDialogue = data.nextDialogue;
        if (this.nextDialogue == 36) {
            this.nextDialogue = 24;
        } 
        if (this.player['billDialogue'] == 1) {
            if (this.nextDialogue == 5 ) { 
                this.nextDialogue = 7;  
            } 
            else if (this.nextDialogue == 17) { 
                this.nextDialogue = 7;
            }
        } 
        else if (this.nextDialogue == 17) { 
            this.nextDialogue = 5;
        }
        this.dialogues = {
            1 : 'Hey, you looking for something?', 
            2 : 'Oh. She was mentioning about how she neeeded some GDPR help. Must be you, huh?',
            3 : 'I think she must still be in the lunch room taking her break. Off you go!',
            5 : 'Did you find Ada like you needed to?',
            6 : 'No problem! Just let me know if you need anything. See you around.',
            7: 'You need anything?',
            8: 'Just let me know if you need anything later. See you around.',
            24 : 'Hey! You need anything?',
            25: 'I have them here. You need to take a look at them?',
            26: 'Here you go.',
            27: 'Okay, feel free to come back if you decide to change your mind.',
            28: 'Still want a look at the case files?'
        } 
        this.choices = {
            '1-1' : 'Have you seen Ada?',
            '5-1' : 'Yeah I did. Thanks for your help.',
            '7-1' : 'Not really.',
            '24-1' : 'Ada mentioned something about her case files?',
            '25-1' : 'Yes, please.',
            '25-2' : 'No, maybe later. (Leave conversation)'
        }
    }
init ( data ) { this . player = this . sys . game . player ; this . nextDialogue = data . nextDialogue ; if ( this . nextDialogue == 36 ) { this . nextDialogue = 24 ; } if ( this . player [ 'billDialogue' ] == 1 ) { if ( this . nextDialogue == 5 ) { this . nextDialogue = 7 ; } else if ( this . nextDialogue == 17 ) { this . nextDialogue = 7 ; } } else if ( this . nextDialogue == 17 ) { this . nextDialogue = 5 ; } this . dialogues = { 1 : 'Hey, you looking for something?' , 2 : 'Oh. She was mentioning about how she neeeded some GDPR help. Must be you, huh?' , 3 : 'I think she must still be in the lunch room taking her break. Off you go!' , 5 : 'Did you find Ada like you needed to?' , 6 : 'No problem! Just let me know if you need anything. See you around.' , 7 : 'You need anything?' , 8 : 'Just let me know if you need anything later. See you around.' , 24 : 'Hey! You need anything?' , 25 : 'I have them here. You need to take a look at them?' , 26 : 'Here you go.' , 27 : 'Okay, feel free to come back if you decide to change your mind.' , 28 : 'Still want a look at the case files?' } this . choices = { '1-1' : 'Have you seen Ada?' , '5-1' : 'Yeah I did. Thanks for your help.' , '7-1' : 'Not really.' , '24-1' : 'Ada mentioned something about her case files?' , '25-1' : 'Yes, please.' , '25-2' : 'No, maybe later. (Leave conversation)' } }
However, if this scene is initialized with a dialogue, it will be bill's dialogue progress (28)
However if this scene is initialized with a dialogue it will be bill ' s dialogue progress ( 28 )
// Bill's dialogues is based on ada's progress // At progress 1, bill will direct the player to ada's location // At progress 5 and 17, bill asks whether the player has found ada's location and to come back later // At progress 24 and 36, bill will show the player ada's case files // If initialized with dialogue, bill will start talking at dialogue 28 // Ada's last dialogue always the same as 24th dialogue // If ada's dialogue has progressed and bill has not // Pretend this is our first time talking // 5 and 17 will give the player the same conversation // If bill has progressed past 1 in his dialogue (player has been here to find ada)