Exemplo n.º 1
0
        // ############# TRIGGER FUNCTIONS ###############

        /*
         *  //####### Available Conditions
         *
         *  //#### Test step
         *  && Dialogs.OnboardingStep == 0
         *
         *  //#### Test time
         *  && Dialogs.timeIs(65.0f)                   // Global Clock is 65s
         *  && TimeSinceLastDialogIs(15.0f)    // Time since last dialog ENDED is 15s
         *
         *  //#### Test Activity
         *  && Dialogs.isWaterTankActive()
         *  && Dialogs.isGeneratorActive()
         *  && Dialogs.isPotatoFieldActive()
         *
         *  //#### Test Module info
         *  && GetModuleHealth("water") >= 80.0f // Water module is at 80% health or more
         *  && GetAmount("potatoes") > 112       // Stock of potatoes is more than 112 units
         *
         *  //#### Test Player state
         *  && IsPlayerDead()
         *  && GetPlayerHunger() >= 95.0f        // Hunger is at 95% or MORE
         *  && GetPlayerThirst() < 50.0f         // Thirst is at 50% or LESS
         *
         */

        static bool WaitScreen()
        {
            return(Dialogs.OnboardingStep == 0 &&
                   Dialogs.timeIs(4.0f));
        }
Exemplo n.º 2
0
 static bool Step20()
 {
     return(Dialogs.OnboardingStep == 20 &&
            Dialogs.timeIs(1.0f));
 }
Exemplo n.º 3
0
 // Step 950 Drop5
 static bool Step950()
 {
     return(Dialogs.timeIs(380.0f));
 }
Exemplo n.º 4
0
 // Step 2000 PlayerVictory
 static bool Step2000()
 {
     return(Dialogs.timeIs(420.0f));
 }
Exemplo n.º 5
0
 // Step 940 Drop4
 static bool Step940()
 {
     return(Dialogs.timeIs(340.0f));
 }
Exemplo n.º 6
0
 // Step 930 Drop3
 static bool Step930()
 {
     return(Dialogs.timeIs(300.0f));
 }
Exemplo n.º 7
0
 // Step 920 Drop2
 static bool Step920()
 {
     return(Dialogs.timeIs(250.0f));
 }
Exemplo n.º 8
0
 // Step 910 Drop1
 static bool Step910()
 {
     return(Dialogs.timeIs(200.0f));
 }
Exemplo n.º 9
0
// ############# TRIGGER FUNCTIONS ###############

/*
 *  //####### Available Conditions
 *
 *  //#### Test step
 *  && OnboardingStep == 0
 *
 *  //#### Test time
 *  && Dialogs.timeIs(65.0f)                   // Global Clock is 65s
 *  && TimeSinceLastDialogIs(15.0f)    // Time since last dialog ENDED is 15s
 *
 *  //#### Test Activity
 *  && isWaterTankActive()
 *  && isGeneratorActive()
 *  && isPotatoFieldActive()
 *
 *  //#### Test Module info
 *  && GetModuleHealth("water") >= 80.0f // Water module is at 80% health or more
 *  && GetAmount("potatoes") > 112       // Stock of potatoes is more than 112 units
 *
 *  //#### Test Player state
 *  && IsPlayerDead()
 *  && GetPlayerHunger() >= 95.0f        // Hunger is at 95% or MORE
 *  && GetPlayerThirst() < 50.0f         // Thirst is at 50% or LESS
 *
 */



// Step 500 BeforeMarsStorm

        static bool TestStormIn()
        {
            return(Dialogs.timeIs(10.0f));
        }