Exemple #1
0
    public override void PlayEvent()
    {
        Text       = "The vaper goes *shoop*";
        EventActor = Actors.AI_BaseStation();

        {
            var choice = NewChoice("[relieved] affirmative.");
            choice.OnChoiceSelected += (Choice c) =>
            {
                State.State_Vape = E_ThrowawayState.ThrownInHomeStation;

                var item_state_a = State.State_Phone_B_Jen;
                var item_state_b = State.State_Capsules_B;

                if (item_state_a == E_ThrowawayState.OnFloor || item_state_b == E_ThrowawayState.OnFloor && item_state_a != E_ThrowawayState.PickedUp && item_state_b != E_ThrowawayState.PickedUp)
                {
                    StoryManager.AddNextEvent <BaseStation_Go_Find_Trash_Bathroom_Hurry>();
                }
                else if (item_state_a == E_ThrowawayState.PickedUp || item_state_b == E_ThrowawayState.PickedUp ||
                         item_state_a == E_ThrowawayState.ThrownInHomeStation || item_state_b == E_ThrowawayState.ThrownInHomeStation)
                {
                    StoryManager.AddNextEvent <BaseStation_Interaction_Return>();
                }
            };
        }
    }
Exemple #2
0
    public override void PlayEvent()
    {
        Text       = "The shoes go *shoop*";
        EventActor = Actors.AI_BaseStation();

        {
            var choice = NewChoice("[relieved] affirmative.");
            choice.OnChoiceSelected += (Choice c) =>
            {
                State.State_Shoes = E_ThrowawayState.ThrownInHomeStation;

                var item_state_a = State.State_Headset;
                var item_state_b = State.State_Phone_A_Scott;

                if (item_state_a == E_ThrowawayState.OnFloor || item_state_b == E_ThrowawayState.OnFloor && item_state_a != E_ThrowawayState.PickedUp && item_state_b != E_ThrowawayState.PickedUp)
                {
                    StoryManager.AddNextEvent <BaseStation_Dispose_Bedroom_Half_1>();
                }
                else if (item_state_a == E_ThrowawayState.PickedUp || item_state_b == E_ThrowawayState.PickedUp ||
                         item_state_a == E_ThrowawayState.ThrownInHomeStation || item_state_b == E_ThrowawayState.ThrownInHomeStation)
                {
                    StoryManager.AddNextEvent <BaseStation_Interaction_Return>();
                }
            };
        }
    }
Exemple #3
0
    public override void PlayEvent()
    {
        Text       = "Despite me not experiencing time I still find you slow. ";
        EventActor = Actors.AI_Alinna();

        {
            var choice = NewChoice("[embarrassed] affirmative.");
            choice.OnChoiceSelected += (Choice c) =>
            {
                StoryManager.AddNextEvent <BaseStation_Interaction_Return>();
            };
        }
    }
Exemple #4
0
    public override void PlayEvent()
    {
        Text       = "Welcome home.";
        EventActor = Actors.AI_BaseStation();

        {
            var choice = NewChoice("DISPOSE WASTE");
            choice.OnChoiceSelected += (Choice c) =>
            {
                StoryManager.AddNextEvent <BaseStation_Dispose_Vape_2>();
            };
        }
    }
Exemple #5
0
    public override void PlayEvent()
    {
        Text       = "I believe you've missed something, little dancer.";
        EventActor = Actors.AI_Alinna();

        {
            var choice = NewChoice("[determined] affirmative.");
            choice.OnChoiceSelected += (Choice c) =>
            {
                StoryManager.AddNextEvent <BaseStation_Interaction_Return>();
            };
        }
    }
Exemple #6
0
    public override void PlayEvent()
    {
        Text       = "The capsules go *shoop*";
        EventActor = Actors.AI_BaseStation();

        {
            var choice = NewChoice("[relieved] affirmative.");
            choice.OnChoiceSelected += (Choice c) =>
            {
                State.State_Capsules_A = E_ThrowawayState.ThrownInHomeStation;
                StoryManager.AddNextEvent <BaseStation_Interaction_Return>();
            };
        }
    }
Exemple #7
0
    public override void PlayEvent()
    {
        Text       = "Dummy";
        EventActor = Actors.AI_Fridge();
        StoryManager.CloseCurrentEvent();

        switch (State.FridgeState)
        {
        case E_FridgeState.FirstInteract:
            StoryManager.AddNextEvent <Fridge_A_1>();
            break;

        case E_FridgeState.AccessUnlocked:
            StoryManager.AddNextEvent <Fridge_B_1_Access_Menu>();
            break;

        default:
            Debug.Log("Didn't Implement: " + State.FridgeState.ToString());
            break;
        }
    }
Exemple #8
0
    public override void PlayEvent()
    {
        Text       = "This is your Base Station, where the trash dies and you live.";
        EventActor = Actors.AI_Alinna();
        StoryManager.CloseCurrentEvent();

        if (State.State_Capsules_A == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Capsules_A_1>();
        }
        else if (State.State_Headset == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Headset_1>();
        }
        else if (State.State_Phone_A_Scott == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Phone_A_Scott_1>();
        }
        else if (State.State_Shoes == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Shoes_1>();
        }
        else if (State.State_Capsules_B == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Capsules_B_1>();
        }
        else if (State.State_Phone_B_Jen == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Phone_B_Jen_1>();
        }
        else if (State.State_Vape == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Vape_1>();
        }
        else if (State.IntroState == E_AlinnaState.PsychoAIRevealed)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Vacuum_1>();
        }
    }
Exemple #9
0
    /// <summary>
    /// This function is ran after any piece of story state changed
    /// </summary>
    private void OnStoryStateChanged()
    {
        // Ignore story state changes while resetting
        if (_isResetting)
        {
            return;
        }

        // Start of the game
        if (IntroState == E_AlinnaState.IntroductionsNotCompleted)
        {
            IntroState = E_AlinnaState.GivenTaskList;
            Story.AddNextEvent <Alinna_Introduction_1>();
        }

        // Thrown away Capsules_A
        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation)
        {
            if (Door_A_State == E_DoorState.Locked)
            {
                Door_A_State = E_DoorState.Unlocked;
                Story.AddNextEvent <Alinna_Door_A_Unlock_1>();
            }
        }

        // Threw away all the garbage in the bedroom
        if (State_Headset == E_ThrowawayState.ThrownInHomeStation && State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation && State_Shoes == E_ThrowawayState.ThrownInHomeStation)
        {
            if (Door_B_State == E_DoorState.Locked)
            {
                Door_B_State = E_DoorState.Unlocked;
                Story.AddNextEvent <Alinna_Door_B_Unlock_1>();
            }
        }

        // All the garbage is thrown away
        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation &&
            State_Headset == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation &&
            State_Capsules_B == E_ThrowawayState.PickedUp &&
            State_Shoes == E_ThrowawayState.PickedUp &&
            State_Phone_B_Jen == E_ThrowawayState.PickedUp &&
            State_Vape == E_ThrowawayState.PickedUp &&
            IntroState != E_AlinnaState.PsychoAIRevealed && IntroState != E_AlinnaState.Done)
        {
            IntroState = E_AlinnaState.PsychoAIRevealed;
            Story.AddNextEvent <Alinna_Congratulations_1>();
        }

        // Creepy reveal at the end
        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation &&
            State_Headset == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation &&
            State_Capsules_B == E_ThrowawayState.ThrownInHomeStation &&
            State_Shoes == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_B_Jen == E_ThrowawayState.ThrownInHomeStation &&
            State_Vape == E_ThrowawayState.ThrownInHomeStation &&
            IntroState != E_AlinnaState.Done)
        {
            IntroState = E_AlinnaState.Done;
            Story.AddNextEvent <Alinna_End_1>();
        }
    }
Exemple #10
0
    public override void PlayEvent()
    {
        Text       = "This is your Home Station, where the trash goes and you live.";
        EventActor = Actors.AI_Alinna();
        StoryManager.CloseCurrentEvent();

        if (State.State_Capsules_A == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Capsules_A_1>();
        }
        else if (State.State_Headset == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Headset_1>();
        }
        else if (State.State_Phone_A_Scott == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Phone_A_Scott_1>();
        }
        else if (State.State_Shoes == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Shoes_1>();
        }
        else if (State.State_Capsules_B == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Capsules_B_1>();
        }
        else if (State.State_Phone_B_Jen == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Phone_B_Jen_1>();
        }
        else if (State.State_Vape == E_ThrowawayState.PickedUp)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Vape_1>();
        }
        else if (State.IntroState == E_AlinnaState.PsychoAIRevealed)
        {
            StoryManager.AddNextEvent <BaseStation_Dispose_Vacuum_1>();
        }
        else
        {
            switch (State.CleanupState)
            {
            case E_CleanupState.LivingRoomDirty:
                StoryManager.AddNextEvent <BaseStation_Go_Find_Trash_Livingroom>();
                break;

            case E_CleanupState.BedroomDirty:
                StoryManager.AddNextEvent <BaseStation_Go_Find_Trash_Bedroom>();
                break;

            case E_CleanupState.BathroomDirty:
                StoryManager.AddNextEvent <BaseStation_Go_Find_Trash_Bathroom>();
                break;

            case E_CleanupState.EverythingClean:
                Debug.LogError("This should not be encountered.");
                break;

            default:
                break;
            }
        }
    }